OSPF 多区域配置
ABR:area border router ,区域边界路由器
-作用
实现不同区域之间的互通;
-定义
同时连接骨干区域和非骨干区域的路由器;
OSPF:
划分区域以后,可以带来以下好处:
1、节省区域中的每一个设备的系统资源
(大区域被划分以后,小区域中的数据库内容就会变少)
(同一个区域中的所有的路由器,数据库是完全相同)
2、增强 OSPF 网络的稳定性
(一个不稳定链路造成的不良影响,仅在同一个区域)
(中传播,不会影响到其他区域)
拓扑配置内容:
1、OSPF建立邻居;(手动指定了 OSPF RID )
display ospf peer brief
2、验证邻居表和路由表
display ospf peer brief
display ip routing-table
R7(边界路由器)
<Huawei>SYS 进入系统视图
Enter system view, return user view with Ctrl+Z.
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/0 进入端口
[Huawei-GigabitEthernet0/0/0]ip add
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 24 配置IP地址
Jan 17 2018 18:41:11-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]quit 退出端口模式
[Huawei]interface l
[Huawei]interface LoopBack 0 进入虚拟端口
[Huawei-LoopBack0]ip add
[Huawei-LoopBack0]ip address 172.168.4.1 24 虚拟端口配置ip
[Huawei]ospf rou
[Huawei]ospf router-id 1.1.1.1 进入ospf 配置ID
[Huawei-ospf-1]area 0 创建区域
[Huawei-ospf-1-area-0.0.0.0]net
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.1 0.0.0.0 创建邻居
[Huawei-ospf-1-area-0.0.0.0]q
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]net
[Huawei-ospf-1-area-0.0.0.0]network 172.168.4.1 0.0.0.0 虚拟创建邻居
[Huawei-ospf-1-area-0.0.0.0]q
[Huawei-ospf-1]
Jan 17 2018 18:51:32-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, NeighborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[Huawei-ospf-1]
Jan 17 2018 18:51:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, NeighborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
[Huawei-ospf-1]
Jan 17 2018 18:51:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, NeighborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchange)
[Huawei-ospf-1]
Jan 17 2018 18:51:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, NeighborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[Huawei-ospf-1]
Jan 17 2018 18:51:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, NeighborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[Huawei-ospf-1]
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip add
[Huawei-GigabitEthernet0/0/1]ip address 192.168.4.1 24
Jan 17 2018 19:04:26-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]q
[Huawei]ospf
[Huawei-ospf-1]area 66 创建第二区域
[Huawei-ospf-1-area-0.0.0.66]net
[Huawei-ospf-1-area-0.0.0.66]network 192.168.4.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.66]
Jan 17 2018 19:05:03-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.4.168.192, NeighborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[Huawei-ospf-1-area-0.0.0.66]
Jan 17 2018 19:05:03-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.4.168.192, NeighborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[Huawei-ospf-1-area-0.0.0.66]
Jan 17 2018 19:05:03-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.4.168.192, NeighborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[Huawei-ospf-1-area-0.0.0.66]
Jan 17 2018 19:05:03-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.4.168.192, NeighborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchange)
[Huawei-ospf-1-area-0.0.0.66]
Jan 17 2018 19:05:03-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.4.168.192, NeighborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[Huawei-ospf-1-area-0.0.0.66]
Jan 17 2018 19:05:03-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.4.168.192, NeighborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[Huawei-ospf-1-area-0.0.0.66]
R8(边界路由器)
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.2 24
Jan 17 2018 18:41:47-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]q
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip add
[Huawei-GigabitEthernet0/0/1]ip address 192.168.2.1 24
Jan 17 2018 18:42:10-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]q
[Huawei]interface l
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip add
[Huawei-LoopBack0]ip address 172.168.1.1 24
[Huawei-LoopBack0]
[Huawei-LoopBack0]q
[Huawei]ospf rou
[Huawei]ospf router-id 2.2.2.2
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]net
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.2 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]net
[Huawei-ospf-1-area-0.0.0.0]network 172.168.1.1
Jan 17 2018 18:51:49-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, NeighborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[Huawei-ospf-1-area-0.0.0.0]network 172.168.1.1 0
Jan 17 2018 18:51:49-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, NeighborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[Huawei-ospf-1-area-0.0.0.0]network 172.168.1.1 0
Jan 17 2018 18:51:49-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, NeighborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[Huawei-ospf-1-area-0.0.0.0]network 172.168.1.1 0
Jan 17 2018 18:51:49-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, NeighborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchange)
[Huawei-ospf-1-area-0.0.0.0]network 172.168.1.1 0.
Jan 17 2018 18:51:50-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, NeighborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[Huawei-ospf-1-area-0.0.0.0]network 172.168.1.1 0.
Jan 17 2018 18:51:50-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, NeighborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[Huawei-ospf-1-area-0.0.0.0]network 172.168.1.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]q
[Huawei-ospf-1]q
[Huawei]ospf
[Huawei-ospf-1]ar
[Huawei-ospf-1]area 34
[Huawei-ospf-1-area-0.0.0.34]net
[Huawei-ospf-1-area-0.0.0.34]network 192.168.2.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.34]
Jan 17 2018 18:53:49-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.168.192, NeighborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[Huawei-ospf-1-area-0.0.0.34]
Jan 17 2018 18:53:57-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.168.192, NeighborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
[Huawei-ospf-1-area-0.0.0.34]
Jan 17 2018 18:53:57-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.168.192, NeighborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchange)
[Huawei-ospf-1-area-0.0.0.34]
Jan 17 2018 18:53:57-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.168.192, NeighborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[Huawei-ospf-1-area-0.0.0.34]
Jan 17 2018 18:53:57-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.168.192, NeighborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[Huawei-ospf-1-area-0.0.0.34]
R9
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip add
[Huawei-GigabitEthernet0/0/1]ip address 192.168.2.2 24
Jan 17 2018 18:42:53-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]q
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add
[Huawei-GigabitEthernet0/0/0]ip address 192.168.3.1 24
Jan 17 2018 18:43:11-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]q
[Huawei]interface l
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip add
[Huawei-LoopBack0]ip address 172.168.2.1 24
[Huawei-LoopBack0]q
[Huawei]ospf rou
[Huawei]ospf router-id 3.3.3.3
[Huawei-ospf-1]ar
[Huawei-ospf-1]area 34
[Huawei-ospf-1-area-0.0.0.34]net
[Huawei-ospf-1-area-0.0.0.34]network 192.168.2.2 0.0.0.0
[Huawei-ospf-1-area-0.0.0.34]net
[Huawei-ospf-1-area-0.0.0.34]network 192.
Jan 17 2018 18:53:58-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.168.192, NeighborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[Huawei-ospf-1-area-0.0.0.34]network 192.
Jan 17 2018 18:53:58-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.168.192, NeighborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[Huawei-ospf-1-area-0.0.0.34]network 192.
Jan 17 2018 18:53:58-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.168.192, NeighborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[Huawei-ospf-1-area-0.0.0.34]network 192.
Jan 17 2018 18:53:58-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.168.192, NeighborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchange)
[Huawei-ospf-1-area-0.0.0.34]network 192.
Jan 17 2018 18:53:58-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.168.192, NeighborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[Huawei-ospf-1-area-0.0.0.34]network 192.
Jan 17 2018 18:53:58-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.168.192, NeighborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[Huawei-ospf-1-area-0.0.0.34]network 192.168.3.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.34]net
[Huawei-ospf-1-area-0.0.0.34]network 172.168.2.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.34]
Jan 17 2018 18:55:39-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.3.168.192, NeighborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[Huawei-ospf-1-area-0.0.0.34]
Jan 17 2018 18:55:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.3.168.192, NeighborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
[Huawei-ospf-1-area-0.0.0.34]
Jan 17 2018 18:55:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.3.168.192, NeighborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchange)
[Huawei-ospf-1-area-0.0.0.34]
Jan 17 2018 18:55:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.3.168.192, NeighborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[Huawei-ospf-1-area-0.0.0.34]
Jan 17 2018 18:55:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.3.168.192, NeighborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[Huawei-ospf-1-area-0.0.0.34]
R10
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add
[Huawei-GigabitEthernet0/0/0]ip address 192.168.3.2 24
Jan 17 2018 18:43:50-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]
[Huawei-GigabitEthernet0/0/0]q
[Huawei]interface l
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip add
[Huawei-LoopBack0]ip address 172.168.3.1 24
[Huawei-LoopBack0]q
Enter system view, return user view with Ctrl+Z.
[Huawei]inter
[Huawei]ospf rou
[Huawei]ospf router-id 4.4.4.4
[Huawei-ospf-1]ar
[Huawei-ospf-1]area 34
[Huawei-ospf-1-area-0.0.0.34]net
[Huawei-ospf-1-area-0.0.0.34]network 192.168.3.2 0.0.0.0
[Huawei-ospf-1-area-0.0.0.34]net
[Huawei-ospf-1-area-0.0.0.34]network
Jan 17 2018 18:55:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.3.168.192, NeighborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[Huawei-ospf-1-area-0.0.0.34]network
Jan 17 2018 18:55:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.3.168.192, NeighborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[Huawei-ospf-1-area-0.0.0.34]network
Jan 17 2018 18:55:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.3.168.192, NeighborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[Huawei-ospf-1-area-0.0.0.34]network
Jan 17 2018 18:55:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.3.168.192, NeighborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchange)
[Huawei-ospf-1-area-0.0.0.34]network
Jan 17 2018 18:55:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.3.168.192, NeighborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[Huawei-ospf-1-area-0.0.0.34]network
Jan 17 2018 18:55:41-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.3.168.192, NeighborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[Huawei-ospf-1-area-0.0.0.34]network 172.168.3.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.34]q
[Huawei-ospf-1]q
[Huawei]ping 192.168.1.1
PING 192.168.1.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.1: bytes=56 Sequence=1 ttl=253 time=60 ms
Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=253 time=40 ms
Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=253 time=40 ms
Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=253 time=40 ms
Reply from 192.168.1.1: bytes=56 Sequence=5 ttl=253 time=20 ms
--- 192.168.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/40/60 ms
[Huawei]ping 172.168.4.1 ping虚拟验证
PING 172.168.4.1: 56 data bytes, press CTRL_C to break
Reply from 172.168.4.1: bytes=56 Sequence=1 ttl=253 time=30 ms
Reply from 172.168.4.1: bytes=56 Sequence=2 ttl=253 time=50 ms
Reply from 172.168.4.1: bytes=56 Sequence=3 ttl=253 time=30 ms
Reply from 172.168.4.1: bytes=56 Sequence=4 ttl=253 time=30 ms
Reply from 172.168.4.1: bytes=56 Sequence=5 ttl=253 time=40 ms
--- 172.168.4.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/36/50 ms
R11
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]inter
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip add
[Huawei-GigabitEthernet0/0/1]ip address 192.168.4.2 24
Jan 17 2018 18:58:17-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]q
[Huawei]inter
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add
[Huawei-GigabitEthernet0/0/0]ip address 192.168.5.1 24
Jan 17 2018 18:58:38-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]q
[Huawei]l
[Huawei]inter
[Huawei]interface l
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip add
[Huawei-LoopBack0]ip address 172.168.5.1 24
[Huawei-LoopBack0]q
[Huawei]ospf rou
[Huawei]ospf router-id 6.6.6.6
[Huawei-ospf-1]a
[Huawei-ospf-1]area 66
[Huawei-ospf-1-area-0.0.0.66]net
[Huawei-ospf-1-area-0.0.0.66]network 192.168.5.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.66]net
[Huawei-ospf-1-area-0.0.0.66]network 192.168.
R12
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]inter
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add
[Huawei-GigabitEthernet0/0/0]ip address 192.168.5.2 24
Jan 17 2018 18:59:44-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]q
[Huawei]inter
[Huawei]interface l
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip ad
[Huawei-LoopBack0]ip address 172.168.6.1 24
[Huawei-LoopBack0]q
[Huawei]ospf rou
[Huawei]ospf router-id 7.7.7.7
[Huawei-ospf-1]ar
[Huawei-ospf-1]area 66
[Huawei-ospf-1-area-0.0.0.66]net
[Huawei-ospf-1-area-0.0.0.66]network 192.168.5.2 0.0.0.0
[Huawei-ospf-1-area-0.0.0.66]net
[Huawei-ospf-1-area-0.0.0.66]network 172.168.6.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.66]
Jan 17 2018 19:02:06-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.5.168.192, NeighborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[Huawei-ospf-1-area-0.0.0.66]
Jan 17 2018 19:02:11-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.5.168.192, NeighborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
[Huawei-ospf-1-area-0.0.0.66]
Jan 17 2018 19:02:12-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.5.168.192, NeighborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchange)
[Huawei-ospf-1-area-0.0.0.66]
Jan 17 2018 19:02:12-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.5.168.192, NeighborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[Huawei-ospf-1-area-0.0.0.66]
Jan 17 2018 19:02:12-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=1.5.168.192, NeighborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[Huawei-ospf-1-area-0.0.0.66]q
[Huawei-ospf-1]q
[Huawei]ping 192.168.3.1 ping 验证
PING 192.168.3.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.3.1: bytes=56 Sequence=1 ttl=252 time=80 ms
Reply from 192.168.3.1: bytes=56 Sequence=2 ttl=252 time=40 ms
Reply from 192.168.3.1: bytes=56 Sequence=3 ttl=252 time=50 ms
Reply from 192.168.3.1: bytes=56 Sequence=4 ttl=252 time=50 ms
Reply from 192.168.3.1: bytes=56 Sequence=5 ttl=252 time=70 ms
--- 192.168.3.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/58/80 ms
原文地址:http://blog.51cto.com/13557045/2062220