码迷,mamicode.com
首页 > 其他好文 > 详细

华为OSPF 多区域配置

时间:2018-01-17 13:41:03      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:color   测试   complete   分享图片   实验   water   not   -o   2.3   

实验名称:华为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 多区域配置

标签:color   测试   complete   分享图片   实验   water   not   -o   2.3   

原文地址:http://blog.51cto.com/13467772/2061998

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!