14-高级路由:OSPF 5 种LSA(高级路由技术)

网友投稿 328 2022-09-28


14-高级路由:OSPF 5 种LSA(高级路由技术)

R1(config)#int lo1R1(config-if)#ip ospf network point-to-point 修改为点对点类型,这样Lo1发送到对面是24位的。2、3类LSA查看命令:R3#show ip ospf databaseR3#show ip route 可以看到3类LSA标记:O IAR3#show ip ospf database summary 查看3类LSA每一条的详细信息3、5类LSA:R3(config)#router ospf 110R3(config-router)#redistribute eigrp 90 subnets 重分发

R2#show ip ospf database external 可以看到OSPF区域内5类LSA通告者都是R34、4类LSAR4#show ip ospf border-routers 查看边界路由器

5、修改OE 2为OE 1R3(config)#router ospf 110R3(config-router)#redistribute eigrp 90 subnets metric-type 1 必须要在ASBR:R3路由器上做R3(config-router)#redistribute eigrp 90 subnets metric-type 1 metric 1 同时修改默认COST值为1

三、验证:1、1类、2类LSAR1#show ip ospf database

OSPF Router with ID (1.1.1.1) (Process ID 110) Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count1.1.1.1 1.1.1.1 428 0x80000003 0x00C332 22.2.2.2 2.2.2.2 428 0x80000003 0x00AA3E 2

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum12.1.1.1 1.1.1.1 428 0x80000001 0x004AD02、3类LSAR3#show ip ospf database Summary Net Link States (Area 1)

Link ID ADV Router Age Seq# Checksum1.1.1.0 1.1.1.1 215 0x80000001 0x0051E32.2.2.2 1.1.1.1 215 0x80000001 0x00230C4.4.4.4 1.1.1.1 32 0x80000001 0x00D05512.1.1.0 1.1.1.1 215 0x80000001 0x00C16824.1.1.0 1.1.1.1 32 0x80000003 0x002BEF

3、5类LSAR3#show ip ospf database Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag5.0.0.0 3.3.3.3 55 0x80000001 0x004C43 035.1.1.0 3.3.3.3 57 0x80000001 0x00ADC1 0R4#show ip routeO E2 5.0.0.0/8 [110/20] via 24.1.1.2, 00:03:15, FastEthernet0/024.0.0.0/24 is subnetted, 1 subnetsC 24.1.1.0 is directly connected, FastEthernet0/0

R4#show ip ospf database external

OSPF Router with ID (4.4.4.4) (Process ID 110)

Type-5 AS External Link States

Routing Bit Set on this LSALS age: 546Options: (No TOS-capability, DC)LS Type: AS External LinkLink State ID: 5.0.0.0 (External Network Number )Advertising Router: 3.3.3.3LS Seq Number: 80000001Checksum: 0x4C43Length: 36Network Mask: /8Metric Type: 2 (Larger than any link state path)TOS: 0 Metric: 20 Forward Address: 0.0.0.0External Route Tag: 04、4类LSAR4#show ip ospf border-routers

OSPF Process 110 internal Routing Table

Codes: i - Intra-area route, I - Inter-area route

i 2.2.2.2 [1] via 24.1.1.2, FastEthernet0/0, ABR, Area 2, SPF 4I 3.3.3.3 [3] via 24.1.1.2, FastEthernet0/0, ASBR, Area 2, SPF 4

R4#show ip ospf databaseSummary ASB Link States (Area 2)

Link ID ADV Router Age Seq# Checksum3.3.3.3 2.2.2.2 948 0x80000001 0x00C85D

5、修改OE 2为OE 1R1#show ip routeO E1 35.1.1.0 [110/21] via 13.1.1.3, 00:01:28, FastEthernet1/02.0.0.0/32 is subnetted, 1 subnetsO E1 5.0.0.0/8 [110/21] via 13.1.1.3, 00:01:30, FastEthernet1/0

R1#show ip routeO E1 35.1.1.0 [110/2] via 13.1.1.3, 00:00:36, FastEthernet1/02.0.0.0/32 is subnetted, 1 subnets

O E1 5.0.0.0/8 [110/2] via 13.1.1.3, 00:00:38, FastEthernet1/024.0.0.0/24 is subnetted, 1 subnets


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

上一篇:15-高级路由:OSPF区域间、区域×××总(ospf路由环路)
下一篇:13-高级路由:OSPF DR BDR实验(新路由3 极路由4)
相关文章

 发表评论

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