R1
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r1
[r1]interf
[r1]interface g
[r1]interface GigabitEthernet 0/0/0
[r1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
Jun 9 2021 18:19:20-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r1>
<r1>sys
Enter system view, return user view with Ctrl+Z.
[r1]interg
[r1]inter
[r1]interface g
[r1]interface l
[r1]interface LoopBack 0
[r1-LoopBack0]ip add 1.1.1.1 24
[r1-LoopBack0]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r1>sys
Enter system view, return user view with Ctrl+Z.
[r1]bgp 1
[r1-bgp]rout
[r1-bgp]route-id 1.1.1.1
^
Error: Unrecognized command found at '^' position.
[r1-bgp]route-s
[r1-bgp]route-select
^
Error:Incomplete command found at '^' position.
[r1-bgp]route-select
^
Error:Incomplete command found at '^' position.
[r1-bgp]rou
[r1-bgp]route-select
^
Error:Incomplete command found at '^' position.
[r1-bgp]bg
[r1-bgp]q
[r1]bg
[r1]bgp 1
[r1-bgp]router-i
[r1-bgp]router-id 1.1.1.1
[r1-bgp]p
[r1-bgp]peer 12.1.1.2 as
[r1-bgp]peer 12.1.1.2 as-nu
[r1-bgp]peer 12.1.1.2 as-number 2
[r1-bgp]q
[r1]disp
[r1]display bgp p
[r1]display bgp r
[r1]display bgp routing-table
[r1]
Jun 9 2021 19:29:18-08:00 r1 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of the
peer 12.1.1.2 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, St
ateChangeReason=Up)
[r1]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r1>
<r1>sys
Enter system view, return user view with Ctrl+Z.
[r1]bgp 1
[r1-bgp]netw
[r1-bgp]network 1.1.1.0 24
[r1-bgp]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r1>
<r1>sys
Enter system view, return user view with Ctrl+Z.
[r1]disp
[r1]display bg
[r1]display bgp ro
[r1]display bgp routing-table
BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 2
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.0/24 0.0.0.0 0 0 i
*> 5.5.5.0/24 12.1.1.2 0 2 3i
[r1]q
<r1>ping -a 1.1.1.1 5.5.5.5
PING 5.5.5.5: 56 data bytes, press CTRL_C to break
Reply from 5.5.5.5: bytes=56 Sequence=1 ttl=252 time=100 ms
Reply from 5.5.5.5: bytes=56 Sequence=2 ttl=252 time=60 ms
Reply from 5.5.5.5: bytes=56 Sequence=3 ttl=252 time=60 ms
Reply from 5.5.5.5: bytes=56 Sequence=4 ttl=252 time=50 ms
Reply from 5.5.5.5: bytes=56 Sequence=5 ttl=252 time=50 ms
--- 5.5.5.5 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 50/64/100 ms
<r1>sys
Enter system view, return user view with Ctrl+Z.
[r1]dis
[r1]display bgp r
[r1]display bgp routing-table
BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 3
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.0/24 0.0.0.0 0 0 i
*> 2.2.2.0/24 12.1.1.2 0 0 2i
*> 5.5.5.0/24 12.1.1.2 0 2 3i
[r1]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
R3
<r3>
<r3>
<r3>sys
Enter system view, return user view with Ctrl+Z.
[r3]disp
[r3]display ip
[r3]display ip in
[r3]display ip interface b
[r3]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 23.1.1.2/24 up up
GigabitEthernet0/0/1 unassigned up down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 3.3.3.3/24 up up(s)
NULL0 unassigned up up(s)
[r3]interf
[r3]interface g
[r3]interface GigabitEthernet 0/0/1
[r3-GigabitEthernet0/0/1]ip add 34.1.1.1 24
[r3-GigabitEthernet0/0/1]
Jun 9 2021 18:47:03-08:00 r3 %%01IFNET/4/LINK_STATE(l)[7]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r3-GigabitEthernet0/0/1]
Jun 9 2021 18:47:04-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.34, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[r3-GigabitEthernet0/0/1]
Jun 9 2021 18:47:04-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.34, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[r3-GigabitEthernet0/0/1]
Jun 9 2021 18:47:04-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.34, Neighbor
Event=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[r3-GigabitEthernet0/0/1]
Jun 9 2021 18:47:04-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.34, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge)
[r3-GigabitEthernet0/0/1]
Jun 9 2021 18:47:04-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.34, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading
)
[r3-GigabitEthernet0/0/1]
Jun 9 2021 18:47:04-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.34, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[r3-GigabitEthernet0/0/1]
[r3-GigabitEthernet0/0/1]
[r3-GigabitEthernet0/0/1]q
[r3]disp
[r3]display os
[r3]display ospf p
[r3]display ospf peer b
[r3]display ospf peer brief
OSPF Process 1 with Router ID 3.3.3.3
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/0 2.2.2.2 Full
0.0.0.0 GigabitEthernet0/0/1 4.4.4.4 Full
----------------------------------------------------------------------------
[r3]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r3>
<r3>sys
Enter system view, return user view with Ctrl+Z.
[r3]bgp 2
[r3-bgp]router-i
[r3-bgp]router-id 3.3.3.3
[r3-bgp]per
[r3-bgp]pe
[r3-bgp]peer 2.2.2.2 as-n
[r3-bgp]peer 2.2.2.2 as-number 2
[r3-bgp]p
[r3-bgp]peer 2.2.2.2 co
[r3-bgp]peer 2.2.2.2 connect-interface l
[r3-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[r3-bgp]q
[r3]peer 2.2.2.2 connect-interface LoopBack 0
^
Error: Unrecognized command found at '^' position.
[r3]bgp
[r3]bgp 2
[r3-bgp]rout
[r3-bgp]router-i
[r3-bgp]router-id 3.3.
Jun 9 2021 19:32:17-08:00 r3 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of the
peer 2.2.2.2 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, Sta
teChangeReason=Up)
[r3-bgp]router-id 3.3.3.3
[r3-bgp]per
[r3-bgp]pe
[r3-bgp]peer 4.4.4.4 as
[r3-bgp]peer 4.4.4.4 as-number 2
[r3-bgp]peer 4.4.4.4 c
[r3-bgp]peer 4.4.4.4 connect-interface l
[r3-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[r3-bgp]
Jun 9 2021 19:34:54-08:00 r3 %%01BGP/3/STATE_CHG_UPDOWN(l)[1]:The status of the
peer 4.4.4.4 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, Sta
teChangeReason=Up)
[r3-bgp]q
[r3]disp
[r3]display bgp p
[r3]display bgp pe
[r3]display bgp peer b
[r3]display bgp peer
BGP local router ID : 3.3.3.3
Local AS number : 2
Total number of peers : 2 Peers in established state : 2
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
2.2.2.2 4 2 5 5 0 00:03:19 Established
0
4.4.4.4 4 2 2 4 0 00:00:41 Established
0
[r3]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r3>
<r3>sys
Enter system view, return user view with Ctrl+Z.
[r3]disp
[r3]display b
[r3]display bg
[r3]display bgp r
[r3]display bgp routing-table
BGP Local router ID is 3.3.3.3
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 1
Network NextHop MED LocPrf PrefVal Path/Ogn
i 1.1.1.0/24 12.1.1.1 0 100 0 1i
[r3]display bgp routing-table
BGP Local router ID is 3.3.3.3
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 1
Network NextHop MED LocPrf PrefVal Path/Ogn
i 1.1.1.0/24 12.1.1.1 0 100 0 1i
[r3]
[r3]display bgp routing-table
BGP Local router ID is 3.3.3.3
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 1
Network NextHop MED LocPrf PrefVal Path/Ogn
i 1.1.1.0/24 12.1.1.1 0 100 0 1i
[r3]display bgp routing-table
BGP Local router ID is 3.3.3.3
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 1
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 1.1.1.0/24 2.2.2.2 0 100 0 1i
[r3]bgp 2
[r3-bgp]peer 4.4.4.4 ne
[r3-bgp]peer 4.4.4.4 next-
[r3-bgp]peer 4.4.4.4 next-hop-local
[r3-bgp]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r3>
<r3>sys
Enter system view, return user view with Ctrl+Z.
[r3]bgp
[r3]dis
[r3]displaybg
[r3]display
[r3]display bg
[r3]display bgp r
[r3]display bgp routing-table
BGP Local router ID is 3.3.3.3
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 3
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 1.1.1.0/24 2.2.2.2 0 100 0 1i
*>i 2.2.2.0/24 2.2.2.2 0 100 0 i
*>i 5.5.5.0/24 4.4.4.4 0 100 0 3i
[r3]bgp 2
[r3-bgp]netw
[r3-bgp]network 3.3.3.0 24
[r3-bgp]q
[r3]q
<r3>ping -a 3.3.3.3 5.5.5.5
PING 5.5.5.5: 56 data bytes, press CTRL_C to break
Reply from 5.5.5.5: bytes=56 Sequence=1 ttl=254 time=50 ms
Reply from 5.5.5.5: bytes=56 Sequence=2 ttl=254 time=40 ms
Reply from 5.5.5.5: bytes=56 Sequence=3 ttl=254 time=20 ms
Reply from 5.5.5.5: bytes=56 Sequence=4 ttl=254 time=30 ms
Reply from 5.5.5.5: bytes=56 Sequence=5 ttl=254 time=30 ms
--- 5.5.5.5 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/34/50 ms
<r3>
R5
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r5
[r5]interf
[r5]interface g
[r5]interface GigabitEthernet 0/0/0
[r5-GigabitEthernet0/0/0]ip add
[r5-GigabitEthernet0/0/0]ip address 45.1.1.2 24
Jun 9 2021 18:23:29-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r5-GigabitEthernet0/0/0]q
[r5]interf
[r5]interface g
[r5]interface GigabitEthernet 0/0/1
[r5-GigabitEthernet0/0/1]ip add 54.1.1.2 24
Jun 9 2021 18:23:54-08:00 r5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r5-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
<r5>
<r5>sys
Enter system view, return user view with Ctrl+Z.
[r5]interf
[r5]interface l
[r5]interface LoopBack 0
[r5-LoopBack0]ip add 5.5.5.5 24
[r5-LoopBack0]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r5>
<r5>sys
Enter system view, return user view with Ctrl+Z.
[r5]ip rou
[r5]ip route-s
[r5]ip route-static 4.4.4.0 24 45.1.1.1
[r5]ip route-static 4.4.4.0 24 54.1.1.1
[r5]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r5>
<r5>sys
Enter system view, return user view with Ctrl+Z.
[r5]bgp 3
[r5-bgp]rou
[r5-bgp]router-i
[r5-bgp]router-id 5.5.5.5
[r5-bgp]p
[r5-bgp]peer 4.4.4.4 p
[r5-bgp]peer 4.4.4.4 as-n
[r5-bgp]peer 4.4.4.4 as-number 2
[r5-bgp]pee
[r5-bgp]peer 4.4.4.4 c
[r5-bgp]peer 4.4.4.4 co
[r5-bgp]peer 4.4.4.4 connect-interface l
[r5-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[r5-bgp]p
[r5-bgp]peer 4.4.4.4 ex
[r5-bgp]peer 4.4.4.4 bg
[r5-bgp]peer 4.4.4.4 eb
[r5-bgp]peer 4.4.4.4 ebgp-max-hop 2
[r5-bgp]
Jun 9 2021 19:48:02-08:00 r5 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of the
peer 4.4.4.4 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, Sta
teChangeReason=Up)
[r5-bgp]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r5>ys
^
Error: Unrecognized command found at '^' position.
<r5>sys
Enter system view, return user view with Ctrl+Z.
[r5]diss
[r5]dis
[r5]display bgp p
[r5]display bgp ro
[r5]display bgp routing-table
BGP Local router ID is 5.5.5.5
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 1
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.0/24 4.4.4.4 0 2 1i
[r5]bgp 3
[r5-bgp]netw
[r5-bgp]network 5.5.5.0 24
[r5-bgp]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r5>
<r5>sys
Enter system view, return user view with Ctrl+Z.
[r5]dsi
[r5]dis
[r5]display bg
[r5]display bgp r
[r5]display bgp routing-table
BGP Local router ID is 5.5.5.5
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 3
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.0/24 4.4.4.4 0 2 1i
*> 2.2.2.0/24 4.4.4.4 0 2i
*> 5.5.5.0/24 0.0.0.0 0 0 i
[r5]