OSPF 多区域配置

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

时间: 2024-10-07 07:16:44

OSPF 多区域配置的相关文章

中小型企业网络构建 OSPF 多区域配置

1,实验名称:OSPF多区域配置 2,实验目的:OSPF多区域配置实现全网互通 3,实验拓扑: 4,实验步骤: R1: <Huawei>system-view //进入系统视图[Huawei]sysname R1 //更改设备名称[R1]interface gi 0/0/0 //进入端口[R1-GigabitEthernet0/0/0]ip address 192.168.12.1 255.255.255.0//设置IP地址[R1-GigabitEthernet0/0/0]undo shutd

OSPF多区域配置和划分特殊与普通(华为)

实验名称:OSPF多区域配置(华为) 作用:增强OSPF网络的稳定性:节省每一个设备的资源:重要:骨干区域只能为"0" !!! 环境:路由器6台: 步骤如下:一:分别设置不同IP网段和LoopBack回环端口: IP和回环端口地址 如下: 骨干区域R1:GE 0/0/0 IP:192.168.1.1: GE 0/0/1 IP:192.168.4.1:回环端口:IP:192.168.10.1: 骨干区域R2:GE 0/0/0 IP:192.168.1.2: GE 0/0/1 IP:192

划分OSPF多区域配置

|1,实验名称:OSPF多区域配置 |2,实验目的:OSPF多区域配置实现全网互通 |3,实验拓扑: : |4,实验步骤: |R1: |[Huawei]sysname R1 |[R1]interface gi0/0/0 |[R1-GigabitEthernet0/0/0]ip add 192.168.12.1 255.255.255.0 |[R1-GigabitEthernet0/0/0]undo shutdown |[R1-GigabitEthernet0/0/0]interface gi0/

华为 OSPF多区域配置

OSPF多区域配置: 思路及步骤: 1.配置R1:将0端口ip 192.168.10.1 255.255.255.0 创建lookback 1  配置ip:10.10.1.1 255.255.255.0 2.配置R2:将0端口ip 192.168.10.2 255.255.255.0 将1端口ip 192.168.20.1 255.255.255.0 创建lookback 1  配置ip:10.10.2.2 255.255.255.0 3.配置R3:将0端口ip 192.168.30.1 255

OSPF多区域配置

![](http://i2.51cto.com/images/blog/201802/01/cb71bba70a8828fdc454a228f77bb7db.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk实验需求: 普通区域与完全末节区域互通实验思路: 1. 首先配置普通区域路由端

笔记 OSPF多区域配置 STUB区域 路由重分发 NSSA区域配置

主题:OSPF 多区域配置 ABR:area border router ,区域边界路由器 -作用 实现不同区域之间的互通: -定义 同时连接骨干区域和非骨干区域的路由器: OSPF为什么会引入/划分区域? 划分区域以后,可以带来以下好处: 1.节省区域中的每一个设备的系统资源 (大区域被划分以后,小区域中的数据库内容就会变少) (同一个区域中的所有的路由器,数据库是完全相同) 2.增强 OSPF 网络的稳定性 (一个不稳定链路造成的不良影响,仅在同一个区域) (中传播,不会影响到其他区域) 验

超详细OSPF的基本概念;OSPF多区域配置和综合实验

理论: ·OSPF大致有以下几个特点: 1·可适应大规模网络 2·路由变化l收敛速度很快 3·无路由环 4·支持可变长子网掩码 5·支持区域划分 6·支持以组播地址发送协议报 ? ·OSPF的路由器类型: 1·区域边界路由器(ABR):用来连接Area0和其他区域的路由器 2·内部路由器:保存自己区域的链路状态信息 3·自治边界路由器(ASBR):用来连接ospf的AS与外部其他的路由器,也就是说连接不是ospf协议的路由器 ? ·OSPF的路由表的形成:路由器会发送它的直连网段告诉对方形成邻居

OSPF多区域配置实操

OSPF理论 OSPF(Open Shortest Path First开放式最短路径优先)是一个内部网关协议(Interior Gateway Protocol,简称IGP),用于在单一自治系统(autonomous system,AS)内决策路由.是对链路状态路由协议的一种实现,隶属内部网关协议(IGP),故运作于自治系统内部.著名的迪克斯加算法(Dijkstra)被用来计算最短路径树.OSPF分为OSPFv2和OSPFv3两个版本,其中OSPFv2用在IPv4网络,OSPFv3用在IPv6

OSPF单区域配置

OSPF单区域配置 OSPF(Open Shortest Path First,开放式最短路径优先) 划分ospf区域可以缩小路由器的范围,减少流量的使用.区域将路由器划分为不同的组,每个组用Area ID标识. 每个接口都要指明属于哪一个区域,area 0 为骨干区域,骨干区域负责在非骨干区域之间发布区域间的路由信息.一个OSPF区域中有且只有一个骨干区域. 设置area区域是,子网掩码是反向掩码./24  0.0.0.255 OSPF单区域配置实验: 一.实验拓扑图 二.实验编址 按照以上地