hnza001 2007-1-27 19:55
OSPF虚链路扩充骨干区域
[size=3][font=宋体]实验[/font][font=Times New Roman]OSPF[/font][font=宋体]虚链路扩充骨干区域[/font][/size]
[font=Times New Roman][size=3] [/size][/font]
[size=3][font=Times New Roman]Ospf[/font][font=宋体]非骨干区域必须与骨干区域相连,所以[/font][font=宋体]我们采用虚链路,使[/font][font=Times New Roman]area1 ,area2[/font][font=宋体]为骨干区域[/font][font=Times New Roman]area 0[/font][font=宋体],非骨干区域[/font][font=Times New Roman]area 2 [/font][font=宋体]与之逻辑上相连,以达到扩充骨干区域的目的[/font][/size]
[size=3][font=宋体]以下为物理TOPO图[/font][/size]
[size=3][font=宋体][img]http://www.one-tom.com/bbs/uploads/Etian/2006-09-22_162817_11.jpg[/img][/font][/size]
[size=3][/size]
[size=3][font=宋体]以下为实际效果图[/font][font=Times New Roman]:[/font][/size]
[font=Times New Roman][size=3][img]http://www.one-tom.com/bbs/uploads/Etian/2006-09-22_162354_11.jpg[/img][/size][/font]
[size=3][font=宋体]配置如下[/font][font=Times New Roman]:[/font][/size]
[font=Times New Roman][size=3] [/size][/font]
[b][size=15pt][font=Times New Roman]r2#[/font][/size][/b]
[size=3][font=Times New Roman]interface Loopback0[/font][/size]
[size=3][font=Times New Roman] ip address 2.2.2.2 255.255.255.0[/font][/size]
[size=3][font=Times New Roman] ip ospf network point-to-point[/font][/size]
[size=3][font=Times New Roman]![/font][/size]
[size=3][font=Times New Roman]interface Serial2/0[/font][/size]
[size=3][font=Times New Roman] ip address 12.1.1.2 255.255.255.0[/font][/size]
[size=3][font=Times New Roman]![/font][/size]
[size=3][font=Times New Roman]router ospf 10[/font][/size]
[size=3][font=Times New Roman] router-id 2.2.2.2[/font][/size]
[size=3][font=Times New Roman] network 2.2.2.0 0.0.0.255 area 0[/font][/size]
[size=3][font=Times New Roman] network 12.1.1.0 0.0.0.255 area 0[/font][/size]
[font=Times New Roman][size=3] [/size][/font]
[font=Times New Roman][size=3] [/size][/font]
[b][size=15pt][font=Times New Roman]r1#[/font][/size][/b]
[size=3][font=Times New Roman]interface Loopback0[/font][/size]
[size=3][font=Times New Roman] ip address 1.1.1.1 255.255.255.0[/font][/size]
[size=3][font=Times New Roman] ip ospf network point-to-point[/font][/size]
[size=3][font=Times New Roman]![/font][/size]
[size=3][font=Times New Roman]interface Serial1/0[/font][/size]
[size=3][font=Times New Roman] ip address 12.1.1.1 255.255.255.0[/font][/size]
[size=3][font=Times New Roman]![/font][/size]
[size=3][font=Times New Roman]interface Serial2/0[/font][/size]
[size=3][font=Times New Roman] ip address 13.1.1.1 255.255.255.0[/font][/size]
[size=3][font=Times New Roman]![/font][/size]
[size=3][font=Times New Roman]router ospf 10[/font][/size]
[size=3][font=Times New Roman] router-id 1.1.1.1[/font][/size]
[size=3][font=Times New Roman] area 1 virtual-link 3.3.3.3[/font][/size]
[size=3][font=Times New Roman] network 1.1.1.0 0.0.0.255 area 0[/font][/size]
[size=3][font=Times New Roman] network 12.1.1.0 0.0.0.255 area 0[/font][/size]
[size=3][font=Times New Roman] network 13.1.1.0 0.0.0.255 area 1[/font][/size]
[font=Times New Roman][size=3]![/size][/font]
[b][size=15pt][font=Times New Roman]r3#[/font][/size][/b]
[size=3][font=Times New Roman]interface Loopback0[/font][/size]
[size=3][font=Times New Roman] ip address 3.3.3.3 255.255.255.0[/font][/size]
[size=3][font=Times New Roman] ip ospf network point-to-point[/font][/size]
[size=3][font=Times New Roman]![/font][/size]
[size=3][font=Times New Roman]interface Serial1/0[/font][/size]
[size=3][font=Times New Roman] ip address 13.1.1.3 255.255.255.0[/font][/size]
[size=3][font=Times New Roman]![/font][/size]
[size=3][font=Times New Roman]interface Serial2/0[/font][/size]
[size=3][font=Times New Roman] ip address 35.1.1.3 255.255.255.0[/font][/size]
[size=3][font=Times New Roman]![/font][/size]
[size=3][font=Times New Roman]router ospf 10[/font][/size]
[size=3][font=Times New Roman] router-id 3.3.3.3[/font][/size]
[size=3][font=Times New Roman] area 1 virtual-link 1.1.1.1[/font][/size]
[size=3][font=Times New Roman] area 3 virtual-link 5.5.5.5[/font][/size]
[size=3][font=Times New Roman] network 3.3.3.0 0.0.0.255 area 1[/font][/size]
[size=3][font=Times New Roman] network 13.1.1.0 0.0.0.255 area 1[/font][/size]
[size=3][font=Times New Roman] network 35.1.1.0 0.0.0.255 area 3[/font][/size]
[font=Times New Roman][size=3]![/size][/font]
[b][size=15pt][font=Times New Roman]r5#[/font][/size][/b]
[size=3][font=Times New Roman]interface Loopback0[/font][/size]
[size=3][font=Times New Roman] ip address 5.5.5.5 255.255.255.0[/font][/size]
[size=3][font=Times New Roman] ip ospf network point-to-point[/font][/size]
[size=3][font=Times New Roman]![/font][/size]
[size=3][font=Times New Roman]interface Serial1/0[/font][/size]
[size=3][font=Times New Roman] ip address 35.1.1.5 255.255.255.0[/font][/size]
[size=3][font=Times New Roman]![/font][/size]
[size=3][font=Times New Roman]interface Serial2/0[/font][/size]
[size=3][font=Times New Roman] ip address 45.1.1.5 255.255.255.0[/font][/size]
[size=3][font=Times New Roman]![/font][/size]
[size=3][font=Times New Roman]router ospf 10[/font][/size]
[size=3][font=Times New Roman] router-id 5.5.5.5[/font][/size]
[size=3][font=Times New Roman] area 3 virtual-link 3.3.3.3[/font][/size]
[size=3][font=Times New Roman] network 5.5.5.0 0.0.0.255 area 2[/font][/size]
[size=3][font=Times New Roman] network 35.1.1.0 0.0.0.255 area 3[/font][/size]
[size=3][font=Times New Roman] network 45.1.1.0 0.0.0.255 area 2[/font][/size]
[font=Times New Roman][size=3]![/size][/font]
[font=Times New Roman][size=3] [/size][/font]
[b][size=15pt][font=Times New Roman]r4#[/font][/size][/b]
[font=Times New Roman][size=3]interface Loopback0[/size][/font]
[font=Times New Roman][size=3] ip address 4.4.4.4 255.255.255.0[/size][/font]
[font=Times New Roman][size=3] ip ospf network point-to-point[/size][/font]
[font=Times New Roman][size=3]![/size][/font]
[font=Times New Roman][size=3]interface Serial1/0[/size][/font]
[font=Times New Roman][size=3] ip address 45.1.1.4 255.255.255.0[/size][/font]
[font=Times New Roman][size=3]![/size][/font]
[font=Times New Roman][size=3]router ospf 10[/size][/font]
[font=Times New Roman][size=3] router-id 4.4.4.4[/size][/font]
[font=Times New Roman][size=3] network 4.4.4.0 0.0.0.255 area 2[/size][/font]
[font=Times New Roman][size=3] network 45.1.1.0 0.0.0.255 area 2[/size][/font]
[font=Times New Roman][size=3]![/size][/font]
[size=3][font=宋体]正常情况下,无虚链路时,[/font][font=Times New Roman]R4[/font][font=宋体]的路由表为:[/font][/size]
[font=Times New Roman][size=3]r4#sh ip route[/size][/font]
[font=Times New Roman][size=3]Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP[/size][/font]
[font=Times New Roman][size=3] D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area [/size][/font]
[font=Times New Roman][size=3] N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2[/size][/font]
[font=Times New Roman][size=3] E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP[/size][/font]
[font=Times New Roman][size=3] i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area[/size][/font]
[font=Times New Roman][size=3] * - candidate default, U - per-user static route, o - ODR[/size][/font]
[font=Times New Roman][size=3] P - periodic downloaded static route[/size][/font]
[font=Times New Roman][size=3] [/size][/font]
[font=Times New Roman][size=3]Gateway of last resort is not set[/size][/font]
[font=Times New Roman][size=3] [/size][/font]
[font=Times New Roman][size=3] 4.0.0.0/24 is subnetted, 1 subnets[/size][/font]
[font=Times New Roman][size=3]C 4.4.4.0 is directly connected, Loopback0[/size][/font]
[font=Times New Roman][size=3] 5.0.0.0/24 is subnetted, 1 subnets[/size][/font]
[font=Times New Roman][size=3]O 5.5.5.0 [110/65] via 45.1.1.5, 00:01:44, Serial1/0[/size][/font]
[font=Times New Roman][size=3] 45.0.0.0/24 is subnetted, 1 subnets[/size][/font]
[font=Times New Roman][size=3]C 45.1.1.0 is directly connected, Serial1/0[/size][/font]
[font=Times New Roman][size=3] [/size][/font]
[size=3][font=宋体]增加虚链路后,看[/font][font=Times New Roman]R4[/font][font=宋体]路由表:[/font][/size]
[font=Times New Roman][size=3]r4# sh ip route[/size][/font]
[font=Times New Roman][size=3]Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP[/size][/font]
[font=Times New Roman][size=3] D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area [/size][/font]
[font=Times New Roman][size=3] N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2[/size][/font]
[font=Times New Roman][size=3] E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP[/size][/font]
[font=Times New Roman][size=3] i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area[/size][/font]
[font=Times New Roman][size=3] * - candidate default, U - per-user static route, o - ODR[/size][/font]
[font=Times New Roman][size=3] P - periodic downloaded static route[/size][/font]
[font=Times New Roman][size=3] [/size][/font]
[font=Times New Roman][size=3]Gateway of last resort is not set[/size][/font]
[font=Times New Roman][size=3] [/size][/font]
[font=Times New Roman][size=3] 1.0.0.0/24 is subnetted, 1 subnets[/size][/font]
[font=Times New Roman][size=3]O IA 1.1.1.0 [110/193] via 45.1.1.5, 00:06:24, Serial1/0[/size][/font]
[font=Times New Roman][size=3] 35.0.0.0/24 is subnetted, 1 subnets[/size][/font]
[font=Times New Roman][size=3]O IA 35.1.1.0 [110/128] via 45.1.1.5, 00:06:24, Serial1/0[/size][/font]
[font=Times New Roman][size=3] 2.0.0.0/24 is subnetted, 1 subnets[/size][/font]
[font=Times New Roman][size=3]O IA 2.2.2.0 [110/257] via 45.1.1.5, 00:06:24, Serial1/0[/size][/font]
[font=Times New Roman][size=3] 3.0.0.0/24 is subnetted, 1 subnets[/size][/font]
[font=Times New Roman][size=3]O IA 3.3.3.0 [110/129] via 45.1.1.5, 00:06:24, Serial1/0[/size][/font]
[font=Times New Roman][size=3] 4.0.0.0/24 is subnetted, 1 subnets[/size][/font]
[font=Times New Roman][size=3]C 4.4.4.0 is directly connected, Loopback0[/size][/font]
[font=Times New Roman][size=3] 5.0.0.0/24 is subnetted, 1 subnets[/size][/font]
[font=Times New Roman][size=3]O 5.5.5.0 [110/65] via 45.1.1.5, 00:06:24, Serial1/0[/size][/font]
[font=Times New Roman][size=3] 12.0.0.0/24 is subnetted, 1 subnets[/size][/font]
[font=Times New Roman][size=3]O IA 12.1.1.0 [110/256] via 45.1.1.5, 00:06:24, Serial1/0[/size][/font]
[font=Times New Roman][size=3] 13.0.0.0/24 is subnetted, 1 subnets[/size][/font]
[font=Times New Roman][size=3]O IA 13.1.1.0 [110/192] via 45.1.1.5, 00:06:24, Serial1/0[/size][/font]
[font=Times New Roman][size=3] 45.0.0.0/24 is subnetted, 1 subnets[/size][/font]
[font=Times New Roman][size=3]C 45.1.1.0 is directly connected, Serial1/0[/size][/font]
[font=Times New Roman][size=3] [/size][/font]
[font=宋体][size=3]可以看到:[/size][/font]
[size=3][font=Times New Roman]R4[/font][font=宋体]有其他区域的路由,而它与骨干区域相隔[/font][font=Times New Roman]2[/font][font=宋体]个区域,所以达到了扩充骨干区域的目的。[/font][/size]
[font=Times New Roman][size=3] [/size][/font]