OSPF实验

该博客详细记录了配置OSPF的过程,包括在R1、R2和R3上设置路由器ID、区域和网络,以及邻居状态变化的日志。通过这些配置,设备间实现了OSPF邻居关系并建立了全连接状态,确保了网络通信。
摘要由CSDN通过智能技术生成

 

 

R1

[Huawei]int lo0

[Huawei-LoopBack0]ip add 1.1.1.1 24

[Huawei-LoopBack0]int g  0/0/1

[Huawei-GigabitEthernet0/0/1]ip add 12.1.1.1 24

Apr 26 2021 20:32:16-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]

 

  Please check whether system data has been changed, and save data in time

 

  Configuration console time out, please press any key to log on

 

<Huawei>sys

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

[Huawei]ospf 10 router        

[Huawei]ospf 10 router-id 91.1.1.1

[Huawei-ospf-10]area 1

[Huawei-ospf-10-area-0.0.0.1]net        

[Huawei-ospf-10-area-0.0.0.1]network 1.1.1.0 0.0.0.255

[Huawei-ospf-10-area-0.0.0.1]network 12.1.1.1 0.0.0.0

[Huawei-ospf-10-area-0.0.0.1]

Apr 26 2021 20:44:11-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes

 event: neighbor status changed. (ProcessId=2560, NeighborAddress=2.1.1.12, Neig

hborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)

 

[Huawei-ospf-10-area-0.0.0.1]

Apr 26 2021 20:44:17-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes

 event: neighbor status changed. (ProcessId=2560, NeighborAddress=2.1.1.12, Neig

hborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart

)

[Huawei-ospf-10-area-0.0.0.1]

Apr 26 2021 20:44:17-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes

 event: neighbor status changed. (ProcessId=2560, NeighborAddress=2.1.1.12, Neig

hborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=E

xchange)

[Huawei-ospf-10-area-0.0.0.1]

Apr 26 2021 20:44:17-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes

 event: neighbor status changed. (ProcessId=2560, NeighborAddress=2.1.1.12, Neig

hborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loa

ding)

[Huawei-ospf-10-area-0.0.0.1]

Apr 26 2021 20:44:17-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes

 event: neighbor status changed. (ProcessId=2560, NeighborAddress=2.1.1.12, Neig

hborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)

 

[Huawei-ospf-10-area-0.0.0.1]

 

  Please check whether system data has been changed, and save data in time

 

  Configuration console time out, please press any key to log on

 

 

R2

The device is running!

 

<Huawei>

<Huawei>sys

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

[Huawei]int g 0/0/0

[Huawei-GigabitEthernet0/0/0]ip add 12.1.1.2 24

Apr 26 2021 20:33:07-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]int g 0/0/1

[Huawei-GigabitEthernet0/0/1]ip add 23.1.1.1 24

[Huawei-GigabitEthernet0/0/1]

Apr 26 2021 20:33:31-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]int lo0

[Huawei-LoopBack0]ip add 2.2.2.2 24

[Huawei-LoopBack0]q

[Huawei]

 

  Please check whether system data has been changed, and save data in time

 

  Configuration console time out, please press any key to log on

 

<Huawei>sys

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

[Huawei]ospf 10 router-id 92.2.2.2

[Huawei-ospf-10]area 1

[Huawei-ospf-10-area-0.0.0.1]netwo        

[Huawei-ospf-10-area-0.0.0.1]network 12.1.1.2 0.0.0.0

[Huawei-ospf-10-area-0.0.0.1]

Apr 26 2021 20:44:17-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes

 event: neighbor status changed. (ProcessId=2560, NeighborAddress=1.1.1.12, Neig

hborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)

 

[Huawei-ospf-10-area-0.0.0.1]

Apr 26 2021 20:44:17-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes

 event: neighbor status changed. (ProcessId=2560, NeighborAddress=1.1.1.12, Neig

hborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)

[Huawei-ospf-10-area-0.0.0.1]

Apr 26 2021 20:44:17-08:00 Huawei %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes

 event: neighbor status changed. (ProcessId=2560, NeighborAddress=1.1.1.12, Neig

hborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)

[Hua

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值