1. 程式人生 > >OSPF 多區域配置

OSPF 多區域配置

ip add 5.1 out got ini view image from net

技術分享圖片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
技術分享圖片

OSPF 多區域配置