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

转载于:https://blog.51cto.com/13557045/2062220

OSPF 多区域配置相关推荐

  1. 数据通信技术(九:OSPF特殊区域配置(Cisco))

    OSPF单区域配置实验(Cisco) 一.知识准备 1.掌握了OSPF动态路由协议的定义和功能: 2.掌握了OSPF动态路由协议的特征和工作原理. 二.实验目的 1.掌握路由器中OSPF特殊区域STU ...

  2. 数据通信技术(八:OSPF单区域配置实验)

    OSPF单区域配置实验(Cisco) 一.知识准备 1.掌握了OSPF动态路由协议的定义和功能: 2.掌握了OSPF动态路由协议的特征和工作原理. 二.实验目的 掌握OSPF动态路由单区域的基本配置方 ...

  3. Cisco OSPF NSSA区域配置

    Cisco 路由器OSPF NSSA区域配置 R1(config)#interface loopback1 R1(config-if)#ip address 10.1.0.1 255.255.255. ...

  4. 华为路由器OSPF多区域配置

    华为路由器OSPF多区域配置 在OSPF单区域中,每台路由器都要收集其他所有路由器的链路状态信息,如果网路规模不断扩大,链路状态信息也会随之不断的增多,这将使得单台路由器上链路状态数据库非常庞大,导致 ...

  5. OSPF单区域配置实验

    OSPF单区域配置实验 一.实验目的   1.掌握OSPF动态路由单区域的基本配置方法和结果验证. 二.实验内容   1.完成中兴1800路由器OSPF动态路由单区域的基本配置和结果验证. 三.实验过 ...

  6. OSPF多区域配置实验

    一.实验目的 1.掌握路由器中OSPF动态路由多区域的基本配置方法和结果验证. 二.实验内容 1.完成中兴1800路由器ospf动态路由多区域的基本配置和结果验证. 三.实验过程 1.实验任务说明 如 ...

  7. 华为设备OSPF多区域配置

    实验拓扑: 理解: 划区域优点: # 提高设备利用资源   # 增强网络的特定性  1.OSPF 多区域配置     三种通信  :域内通信 .域间通信.外部通信 路由器类型:内部路由器.骨干路由器. ...

  8. 实验20:OSPF多区域配置

    目录 一,实验20:OSPF多区域配置 [实验目的] [实验环境] [实验过程] 步骤一:配置R1 步骤二:配置R2 步骤三:配置R3 步骤四:配置R4 步骤五:配置R5 步骤六:配置R6 [实验总结 ...

  9. OSPF单区域配置-ZTE中兴路由器

    实验名称 OSPF单区域配置实验(中兴路由器) 知识准备 掌握OSPF动态路由协议的定义和功能 掌握OSPF动态路由协议的特征和工作原理 实验目的 掌握OSPF动态路由单区域的基本配置方法和结果验证 ...

最新文章

  1. 使用alertmanager对监控对象进行报警(微信)三
  2. 图卷积神经网络(part3)--三个经典谱域图卷积模型
  3. 5G还没来,我的4G网速就变慢了!运营商到底有没有说实话?
  4. java中for循环快捷方式_IntelliJ IDEA(快捷键):快速生成各种for循环(示例代码)...
  5. icmp协议_计算机网络基础(七)网络层ICMP协议
  6. 作业车间调度问题特征与调度效率相关性的研究Correlation of job-shop scheduling problem features with scheduling efficiency
  7. Wine 开发版 4.6 发布,Windows 应用的兼容层
  8. 【TWVRP】基于matlab遗传算法求解送货且带时间窗的车辆路径规划问题【含Matlab源码 1074期】
  9. 淘宝商城和淘宝网有什么区别
  10. 在excel 同时冻结行和列
  11. 0-day漏洞,1-day漏洞,n-day漏洞各自是什么意思?
  12. 更改计算机名后金蝶无法登录,《金蝶KIS专业版登录时出现问题,请重新输入终极解决全过程》.doc...
  13. C++刷题知识点总结2
  14. Linux下的搜狗拼音输入法-fcitx sougopinyin
  15. Mysql数据库备份恢复
  16. 关于MySQL错误提示ERROR 1265 (01000)的问题分析及解决方案
  17. 2020ICPC上海E The Journey of Geor Autumn
  18. 如何去反编译一个ipa包
  19. 阿里云服务器DDoS防御方法免受攻击的详细内容
  20. linux 两个文件比较是否完全相同

热门文章

  1. Linux字符设备驱动框架
  2. 枚举操作的常用方法,包括获得枚举的value,name,description
  3. Ubuntu bitnami gitlab 安装
  4. Nodejs-express 4.0框架 简单介绍
  5. smarty+php+ajax 简单无刷新分页
  6. 关于mysql存储大数据的问题
  7. 数据库事务转载基础二:MySQL事务隔离级别详解
  8. 图数据库Neo4j的介绍与使用
  9. php mysql实现每日签到积分_php+mysql+jquery实现日历签到功能
  10. html中怎样调用xml,HTML中调用XML数据实例