- 积分
- 198
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2011-7-5
- 最后登录
- 1970-1-1
- 阅读权限
- 20
- 听众
- 收听
助理工程师
|
本帖最后由 小乔 于 2011-7-16 09:37 编辑
实验环境:模拟器dynamips
IOS :c3640-jk9o3s-mz.124-7a.bin
SW用一台路由器模拟实现
简单拓扑
R1
e2/0
|
|
R2-e2/0---------SW----------e2/0-R3-s0/0--------------s0/0-R5
R1配置:
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
interface FastEthernet2/0
no switchport
ip address 10.1.1.1 255.0.0.0
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 10.1.1.1 0.0.0.0 area 0
R2配置:
interface Loopback0
ip address 2.2.2.2 255.255.255.0
ip ospf network point-to-point
interface FastEthernet2/0
no switchport
ip address 10.2.2.2 255.0.0.0
ip ospf priority 0
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 10.2.2.2 0.0.0.0 area 0
R3配置:
interface Loopback0
ip address 3.3.3.3 255.255.255.0
ip ospf network point-to-point
interface Serial0/0
ip address 11.1.1.1 255.255.0.0
serial restart-delay 0
no dce-terminal-timing-enable
interface FastEthernet2/0
no switchport
ip address 10.3.3.3 255.0.0.0
ip ospf priority 0
router ospf 1
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 10.3.3.3 0.0.0.0 area 0
!
router ospf 2
log-adjacency-changes
network 11.1.1.1 0.0.0.0 area 1
SW配置:
no ip routing
R5配置:
!
interface Loopback0
ip address 5.5.5.5 255.255.255.0
ip ospf network point-to-point
!
interface Serial0/0
ip address 11.1.2.2 255.255.0.0
serial restart-delay 0
no dce-terminal-timing-enable
router ospf 2
log-adjacency-changes
network 5.5.5.5 0.0.0.0 area 1
network 11.1.2.2 0.0.0.0 area 1
以上是我在模拟器上的配置,请留意以下的信息,我从这些信息中发现R3是一个ABR却不能通告3类LSA,请各位高手指点一下为什么会这样,是我哪里出错了,还是我的理解有误呢:
r3#sh ip ospf database
OSPF Router with ID (11.1.1.1) (Process ID 2)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
5.5.5.5 5.5.5.5 327 0x80000002 0x0070C0 3
11.1.1.1 11.1.1.1 323 0x80000004 0x00480F 2
OSPF Router with ID (3.3.3.3) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 540 0x80000003 0x005C9E 2
2.2.2.2 2.2.2.2 540 0x80000002 0x007578 2
3.3.3.3 3.3.3.3 539 0x80000002 0x008C53 2
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
10.1.1.1 1.1.1.1 540 0x80000001 0x0033D9
R5也没有学到MA网络中的路由由于它没有收到3类LSA,所以没有MA网络的路由。
r5#sh ip ospf database
OSPF Router with ID (5.5.5.5) (Process ID 2)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
5.5.5.5 5.5.5.5 423 0x80000002 0x0070C0 3
11.1.1.1 11.1.1.1 421 0x80000004 0x00480F 2
下面是在R1、R3、R5路由表的情况
r1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
O 2.2.2.0 [110/2] via 10.2.2.2, 00:00:09, FastEthernet2/0
3.0.0.0/24 is subnetted, 1 subnets
O 3.3.3.0 [110/2] via 10.3.3.3, 00:00:09, FastEthernet2/0
C 10.0.0.0/8 is directly connected, FastEthernet2/0
r3#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
O 1.1.1.0 [110/2] via 10.1.1.1, 00:01:12, FastEthernet2/0
2.0.0.0/24 is subnetted, 1 subnets
O 2.2.2.0 [110/2] via 10.2.2.2, 00:01:12, FastEthernet2/0
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
5.0.0.0/24 is subnetted, 1 subnets
O 5.5.5.0 [110/65] via 11.1.2.2, 00:01:35, Serial0/0
C 10.0.0.0/8 is directly connected, FastEthernet2/0
11.0.0.0/16 is subnetted, 1 subnets
C 11.1.0.0 is directly connected, Serial0/0
r5#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
5.0.0.0/24 is subnetted, 1 subnets
C 5.5.5.0 is directly connected, Loopback0
11.0.0.0/16 is subnetted, 1 subnets
C 11.1.0.0 is directly connected, Serial0/0
在这里我们可以看到R5并没有学到MA网络的路由,我认为主要原因是因为ABR没有将MA网络的路由用3类LSA通告给区域1,可是什么原因导致,R3不产生3类LSA呢?其实我这个实验就是想验证一下3类LSA的发布和通告的。 |
|