18-高级路由:OSPF区域类型:Not-So-Stubby(ospf区域间路由和区域内路由)

网友投稿 360 2022-09-28


18-高级路由:OSPF区域类型:Not-So-Stubby(ospf区域间路由和区域内路由)

R3(config)#router ospf 110R3(config-router)#area 1 nssa

R1#show ip route ospfR1#show ip route ospf database 查看数据库R1#show ip ospf database nssa-external 查看nssa-external详细信息2、R4右边增加R6路由器:①查看R1、R3是否都有关于R6的O E2路由:R4(config)#router ospf 110R4(config-router)#redistribute rip subnets

②R1 ABR部署命令,使得R3获得1条静态路由R1(config)#router ospf 110R1(config-router)#area 1 nssa default-information-originateNote:后边可以修改为O N1、Metric 100等操作3、R1下方增加R7路由器,并重分发进入R1的OSPF 110①EIGRP部署和重分发:R1(config)#router eigrp 17R1(config-router)#no auto-summary R1(config-router)#network 17.1.1.0 0.0.0.255

R7(config)#router eigrp 17R7(config-router)#no auto-summary R7(config-router)#network 7.7.7.0 0.0.0.255R7(config-router)#network 17.1.1.0 0.0.0.255

R1(config)#router ospf 110R1(config-router)#redistribute eigrp 17 subnets

②R1上部署命令,不希望重分发的外部路由进入NSSA区域,即R3学习不到R7的路由条目:R1(config)#router ospf 110R1(config-router)#area 1 nssa no-redistribution

三、验证:1、将Area 1变为nssa区域:R1上是否默认都是O N1?查看database可以看到R1(ABR)将7类转换为了5类①R1#show ip route ospfO N1 35.1.1.0 [110/3] via 13.1.1.3, 00:01:55, FastEthernet1/0O N1 192.168.8.0/24 [110/3] via 13.1.1.3, 00:00:23O N1 192.168.9.0/24 [110/3] via 13.1.1.3, 00:00:23, FastEthernet1/0O N1 5.0.0.0/8 [110/3] via 13.1.1.3, 00:00:23, FastEthernet1/0O N1 192.168.10.0/24 [110/3] via 13.1.1.3, 00:00:23, FastEthernet1/0O N1 192.168.11.0/24 [110/3] via 13.1.1.3, 00:00:23, FastEthernet1/0

②R1#show ip ospf database

Type-7 AS External Link States (Area 1)

Link ID ADV Router Age Seq# Checksum Tag5.0.0.0 3.3.3.3 282 0x80000001 0x000C01 035.1.1.0 3.3.3.3 691 0x80000001 0x006D7F 0192.168.8.0 3.3.3.3 344 0x80000001 0x00435D 0192.168.9.0 3.3.3.3 344 0x80000001 0x003867 0192.168.10.0 3.3.3.3 344 0x80000001 0x002D71 0192.168.11.0 3.3.3.3 344 0x80000001 0x00227B 0

Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag5.0.0.0 202.100.11.1 343 0x80000001 0x006384 035.1.1.0 202.100.11.1 427 0x80000001 0x00C403 0192.168.8.0 202.100.11.1 343 0x80000001 0x009AE0 0192.168.9.0 202.100.11.1 343 0x80000001 0x008FEA 0192.168.10.0 202.100.11.1 343 0x80000001 0x0084F4 0192.168.11.0 202.100.11.1 343 0x80000001 0x0079FE 0

③R1#show ip ospf database nssa-external

OSPF Router with ID (202.100.11.1) (Process ID 110) Type-7 AS External Link States (Area 1)

Routing Bit Set on this LSALS age: 619Options: (No TOS-capability, Type 7/5 translation, DC)LS Type: AS External LinkLink State ID: 192.168.10.0 (External Network Number )Advertising Router: 3.3.3.3LS Seq Number: 80000001Checksum: 0x2D71Length: 36Network Mask: /24Metric Type: 1 (Comparable directly to link state metric)TOS: 0 Metric: 1 Forward Address: 3.3.3.3External Route Tag: 02、增加R6,查看R1、R3是否有路由条目:①R1有2条O E2,R3没有关于R6的路由条目R1#show ip route ospfO E2 6.0.0.0/8 [110/20] via 12.1.1.2, 00:00:48, FastEthernet0/0O E2 46.1.1.0 [110/20] via 12.1.1.2, 00:00:48, FastEthernet0/0R3#show ip route ospf1.0.0.0/24 is subnetted, 1 subnetsO IA 1.1.1.0 [110/2] via 13.1.1.1, 00:12:53, FastEthernet0/02.0.0.0/32 is subnetted, 1 subnetsO IA 2.2.2.2 [110/3] via 13.1.1.1, 00:12:53, FastEthernet0/04.0.0.0/32 is subnetted, 1 subnetsO IA 4.4.4.4 [110/4] via 13.1.1.1, 00:12:53, FastEthernet0/024.0.0.0/24 is subnetted, 1 subnetsO IA 24.1.1.0 [110/3] via 13.1.1.1, 00:12:53, FastEthernet0/0O IA 202.100.10.0/24 [110/2] via 13.1.1.1, 00:12:53, FastEthernet0/012.0.0.0/24 is subnetted, 1 subnetsO IA 12.1.1.0 [110/2] via 13.1.1.1, 00:12:53, FastEthernet0/0O IA 202.100.11.0/24 [110/2] via 13.1.1.1, 00:12:53, FastEthernet0/0②R1(ABR)部署命令后:R3上有1条:Seed Metric 1的ON 2的默认路由R3#show ip route ospfO*N2 0.0.0.0/0 [110/1] via 13.1.1.1, 00:02:25, FastEthernet0/0

3、R1下方增加R7路由器:①查看R3、R2和R4关于R7路由条目的区别:R3是O N1路由,R2和R4是O E2路由;因为只有当R1是ASBR时,才具备将7类转为5类。R2#show ip route ospfO E2 17.1.1.0 [110/20] via 12.1.1.1, 00:02:40, FastEthernet0/0O E2 7.7.7.0 [110/20] via 12.1.1.1, 00:02:40, FastEthernet0/0

R3#show ip route ospfO N2 17.1.1.0 [110/20] via 13.1.1.1, 00:03:56, FastEthernet0/0O N2 7.7.7.0 [110/20] via 13.1.1.1, 00:03:56, FastEthernet0/0

②R1上部署命令,不希望重分发的外部路由进入NSSA区域,即R3学习不到R7的路由条目。R3#show ip route ospf1.0.0.0/24 is subnetted, 1 subnetsO IA 1.1.1.0 [110/2] via 13.1.1.1, 00:23:23, FastEthernet0/02.0.0.0/32 is subnetted, 1 subnetsO IA 2.2.2.2 [110/3] via 13.1.1.1, 00:23:23, FastEthernet0/04.0.0.0/32 is subnetted, 1 subnetsO IA 4.4.4.4 [110/4] via 13.1.1.1, 00:23:23, FastEthernet0/024.0.0.0/24 is subnetted, 1 subnetsO IA 24.1.1.0 [110/3] via 13.1.1.1, 00:23:23, FastEthernet0/0O IA 202.100.10.0/24 [110/2] via 13.1.1.1, 00:23:23, FastEthernet0/012.0.0.0/24 is subnetted, 1 subnetsO IA 12.1.1.0 [110/2] via 13.1.1.1, 00:23:23, FastEthernet0/0O IA 202.100.11.0/24 [110/2] via 13.1.1.1, 00:23:23, FastEthernet0/0O*N2 0.0.0.0/0 [110/1] via 13.1.1.1, 00:14:12, FastEthernet0/0


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:19-高级路由:OSPF区域类型:Totally Not-So-Stubby(哪个ospf区域需要通过默认路由)
下一篇:深入浅出理解Java泛型的使用
相关文章

 发表评论

暂时没有评论,来抢沙发吧~