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

華為OSPF 多區域配置

ges 步驟 rcu error: inf ora 1.2 2.3 [1]

實驗名稱:華為OSPF 多區域配置

實驗拓撲:技術分享圖片

所需設備:4臺路由器 AR1 AR2 AR3 AR4

地址規劃:AR1 G0/0/1 IP 192.168.1.1/24

      AR1 LoopBack 1  IP 10.10.10.1/24 (回環口地址)

      AR2 G0/0/0  IP  192.168.1.2/24
      AR2 G0/0/1  IP  192.168.2.1/24

      AR2 LoopBack 1  IP 10.10.20.2/24 (回環口地址)

      AR3 G0/0/0  IP  192.168.2.2/24
      AR3 G0/0/1  IP  192.168.3.1/24

      AR3 LoopBack 1  IP 10.10.30.3/24 (回環口地址)

      AR4 G0/0/0  IP  192.168.3.2/24   

      AR4 LoopBack 1  IP 10.10.40.4/24 (回環口地址)

實驗目的:
通過配置OSPF實現全網互通

實驗步驟:
1、 配置AR1

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

[Huawei]int g0/0/1

[Huawei-GigabitEthernet0/0/1]undo shutdown

Info: Interface GigabitEthernet0/0/1 is not shutdown.

[Huawei-GigabitEthernet0/0/1]

[Huawei-GigabitEthernet0/0/1]ip add 192.168.1.1 255.255.255.0

Jan 17 2018 10:50:40-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]int l

[Huawei]int LoopBack 1

[Huawei-LoopBack1]ip add 10.10.10.1 255.255.255.0

[Huawei-LoopBack1]q

[Huawei]ospf

[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]network 10.10.10.1 0.0.0.0

[Huawei-ospf-1-area-0.0.0.0]q

[Huawei-ospf-1]q

[Huawei]

Jan 17 2018 10:56:24-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]
Jan 17 2018 10:56:31-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]
Jan 17 2018 10:56:31-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]
Jan 17 2018 10:56:31-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]
Jan 17 2018 10:56:31-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]

2、 配置AR2

<Huawei>

<Huawei>sys
Enter system view, return user view with Ctrl+Z.

[Huawei]int g0/0/0

[Huawei-GigabitEthernet0/0/0]undo shutdown

Info: Interface GigabitEthernet0/0/0 is not shutdown.

[Huawei-GigabitEthernet0/0/0]

[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.2 255.255.255.0
Jan 17 2018 10:51:42-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]int g0/0/1

[Huawei-GigabitEthernet0/0/1]undo shutdown

Info: Interface GigabitEthernet0/0/1 is not shutdown.

[Huawei-GigabitEthernet0/0/1]ip add 192.168.2.1 255.255.255.0
Jan 17 2018 10:52:03-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]int l

[Huawei]int LoopBack 1

[Huawei-LoopBack1]ip add 10.10.20.2 255.255.255.0

[Huawei-LoopBack1]q

[Huawei]ospf

[Huawei-ospf-1]area 0

[Huawei-ospf-1-area-0.0.0.0]n

[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]

Jan 17 2018 10:56:31-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]

Jan 17 2018 10:56:31-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]

Jan 17 2018 10:56:31-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]

Jan 17 2018 10:56:31-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]

Jan 17 2018 10:56:31-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]

Jan 17 2018 10:56:31-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]

[Huawei-ospf-1-area-0.0.0.0]ne

[Huawei-ospf-1-area-0.0.0.0]network 10.10.20.2 0.0.0.0

[Huawei-ospf-1-area-0.0.0.0]q

[Huawei-ospf-1]area 34

[Huawei-ospf-1-area-0.0.0.34]ne

[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 10:58:01-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 10:58:10-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=2Way)

[Huawei-ospf-1-area-0.0.0.34]

Jan 17 2018 10:58:28-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.168.192, NeighborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)

[Huawei-ospf-1-area-0.0.0.34]

Jan 17 2018 10:58:38-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[11]: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 10:58:38-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[12]: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 10:58:38-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[13]: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]

3、 配置AR3

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

[Huawei]int g0/0/0

[Huawei-GigabitEthernet0/0/0]undo shutdown

Info: Interface GigabitEthernet0/0/0 is not shutdown.

[Huawei-GigabitEthernet0/0/0]

[Huawei-GigabitEthernet0/0/0]ip add 192.168.2.2 255.255.255.0

Jan 17 2018 10:52: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]q

[Huawei]int g0/0/1

[Huawei-GigabitEthernet0/0/1]undo shutdown

Info: Interface GigabitEthernet0/0/1 is not shutdown.

[Huawei-GigabitEthernet0/0/1]ip add 192.168.3.1 255.255.255.0

Jan 17 2018 10:53:05-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]int l

[Huawei]int LoopBack 1

[Huawei-LoopBack1]ip add 10.10.30.3
^
Error:Incomplete command found at ‘^‘ position.

[Huawei-LoopBack1]ip add 10.10.30.3 255.255.255.0

[Huawei-LoopBack1]q

[Huawei]ospf

[Huawei-ospf-1]area 34

[Huawei-ospf-1-area-0.0.0.34]ne

[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]ne

[Huawei-ospf-1-area-0.0.0.34]network

Jan 17 2018 10:58:05-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[2]: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

Jan 17 2018 10:58:05-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[3]: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 10.10.30.3
^
Error:Incomplete command found at ‘^‘ position.

[Huawei-ospf-1-area-0.0.0.34]network 10.10.30.3 0.0.0.0

[Huawei-ospf-1-area-0.0.0.34]

Jan 17 2018 10:58:39-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[4]: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]

Jan 17 2018 10:58:39-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[5]: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]

Jan 17 2018 10:58:39-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[6]: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]

Jan 17 2018 10:58:39-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[7]: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]n

[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]

Jan 17 2018 11:01:43-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[8]: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 11:01:43-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.3.168.192, NeighborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)

[Huawei-ospf-1-area-0.0.0.34]

Jan 17 2018 11:01:43-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=2.3.168.192, NeighborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)

[Huawei-ospf-1-area-0.0.0.34]

Jan 17 2018 11:01:43-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[11]: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 11:01:43-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[12]: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 11:01:43-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[13]: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]q

[Huawei-ospf-1]q

4、 配置AR4

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

[Huawei]int g0/0/0

[Huawei-GigabitEthernet0/0/0]undo shutdown

Info: Interface GigabitEthernet0/0/0 is not shutdown.

[Huawei-GigabitEthernet0/0/0]ip add 192.168.3.2 255.255.255.0

Jan 17 2018 10:53:33-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]int l

[Huawei]int LoopBack
^
Error:Incomplete command found at ‘^‘ position.

[Huawei]int LoopBack 1

[Huawei-LoopBack1]ip add 10.10.40.4 255.255.255.0

[Huawei-LoopBack1]q

[Huawei]

[Huawei]

[Huawei]ospf

[Huawei-ospf-1]area 34

[Huawei-ospf-1-area-0.0.0.34]ne

[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]n

[Huawei-ospf-1-area-0.0.0.34]network 10.10.40.1 0.0.0.0

[Huawei-ospf-1-area-0.0.0.34]q

[Huawei-ospf-1]q

[Huawei]

測試與驗證:
1、查看AR1鄰居表
技術分享圖片
2、查看AR1 路由表
技術分享圖片
3、查看AR2 鄰居表
技術分享圖片
4、查看AR2 路由表
技術分享圖片
5、查看AR3 鄰居表
技術分享圖片
6、查看AR3 路由表
技術分享圖片
7、查看AR4 鄰居表
技術分享圖片
8、查看AR4 路由表
技術分享圖片

華為OSPF 多區域配置