Spring中的aware接口详情
1073
2022-09-26
华为路由器OSPF虚链路配置(三)(华为配置ospf路由协议的基本功能)
1.路由器R1、R2在0区域,路由器R2、R3、R4在234区域,路由器R4、R5在45区域。2.45区域没有与骨干区域直接相连,因此在不引入外部路由的情况下,需要在路由R2、R4上配置虚链路。
第一步,实验基本配置如下:
R1system-viewsysname R1user-interface console 0idle-timeout 1000quitinterface GigabitEthernet0/0/2ip address 192.168.1.254 255.255.255.0interface GigabitEthernet0/0/1ip address 192.168.17.1 255.255.255.0interface GigabitEthernet0/0/0ip address 192.168.12.1 255.255.255.0quitR2system-viewsysname R2interface GigabitEthernet0/0/1ip address 192.168.12.2 255.255.255.0interface GigabitEthernet0/0/0ip address 192.168.23.2 255.255.255.0quitR3system-viewsysname R3interface GigabitEthernet0/0/1ip address 192.168.23.3 255.255.255.0interface GigabitEthernet0/0/0ip address 192.168.34.3 255.255.255.0quitR4system-viewsysname R4interface GigabitEthernet0/0/1ip address 192.168.34.4 255.255.255.0interface GigabitEthernet0/0/0ip address 192.168.45.4 255.255.255.0quitR5system-viewsysname R5interface GigabitEthernet0/0/1ip address 192.168.45.5 255.255.255.0interface GigabitEthernet0/0/2ip address 192.168.5.254 255.255.255.0interface GigabitEthernet0/0/0ip address 100.1.1.5 255.255.255.0quit
第二步,配置OSPF;
配置命令如下:R1ospf 1 router-id 1.1.1.1area 0network 192.168.12.0 0.0.0.255network 192.168.1.0 0.0.0.255R2ospf 1 router-id 2.2.2.2area 0network 192.168.12.0 0.0.0.255area 234network 192.168.23.0 0.0.0.255R3ospf 1 router-id 3.3.3.3area 234network 192.168.23.0 0.0.0.255network 192.168.34.0 0.0.0.255R4ospf 1 router-id 4.4.4.4area 234network 192.168.34.0 0.0.0.255area 45network 192.168.45.0 0.0.0.255R5ospf 1 router-id 5.5.5.5area 45network 192.168.45.0 0.0.0.255network 192.168.5.0 0.0.0.255quit
查看R1的路由表,如下:
[R1]display ip routing-table protocol ospf Route Flags: R - relay, D - download to fibPublic routing table : OSPFDestinations : 2 Routes : 2
OSPF routing table status :
Destination/Mask Proto Pre Cost Flags NextHop Interface
192.168.23.0/24 OSPF 10 2 D 192.168.12.2 GigabitEthernet0/0/0192.168.34.0/24 OSPF 10 3 D 192.168.12.2 GigabitEthernet0/0/0
分析:由于45区域没有与骨干0区域直接相连,因此R1上面没有45区域的路由信息。 第三步,配置虚链路,即vlink-peer。
分别在R2、R4上配置vlink-peer:R2ospf 1area 234vlink-peer 4.4.4.4R4ospf 1area 234vlink-peer 2.2.2.2
验证: 查看R1的路由表,如下:
[R1]display ip routing-table protocol ospf Route Flags: R - relay, D - download to fibPublic routing table : OSPFDestinations : 4 Routes : 4
OSPF routing table status :
Destination/Mask Proto Pre Cost Flags NextHop Interface
192.168.5.0/24 OSPF 10 5 D 192.168.12.2 GigabitEthernet
0/0/0192.168.23.0/24 OSPF 10 2 D 192.168.12.2 GigabitEthernet0/0/0192.168.34.0/24 OSPF 10 3 D 192.168.12.2 GigabitEthernet0/0/0192.168.45.0/24 OSPF 10 4 D 192.168.12.2 GigabitEthernet0/0/0
总结 查看R4的路由信息:
[R4]display ospf brief
OSPF Process 1 with Router ID 4.4.4.4 OSPF Protocol Information
RouterID: 4.4.4.4 Border Router: AREA Multi-×××-Instance is not enabledGlobal DS-TE Mode: Non-Standard IETF ModeGraceful-restart capability: disabledHelper support capability : not configuredApplications Supported: MPLS Traffic-Engineering Spf-schedule-interval: max 10000ms, start 500ms, hold 1000msDefault ASE parameters: Metric: 1 Tag: 1 Type: 2Route Preference: 10 ASE Route Preference: 150 SPF Computation Count: 14 RFC 1583 CompatibleRetransmission limitation is disabledArea Count: 3 Nssa Area Count: 0 ExChange/Loading Neighbors: 0Process total up interface count: 3Process valid up interface count: 2
分析得出: R4路由状态以变为区域ABR,即虚链路使得R4直接与骨干区域相连。
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~