题目要求
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r2
[r2]inter
[r2]interface f
[r2]interface g
[r2]interface GigabitEthernet 0/0/2
[r2-GigabitEthernet0/0/2]ip add 192.168.2.1 24
Jul 24 2021 17:00:42-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[r2-GigabitEthernet0/0/2]q
[r2]interf
[r2]interface l
[r2]interface LoopBack 0
[r2-LoopBack0]ip add 2.2.2.2 24
[r2-LoopBack0]q
[r2]interf
[r2]interface g
[r2]interface GigabitEthernet 0/0/1
[r2-GigabitEthernet0/0/1]ip add 12.1.1.2 24
Jul 24 2021 17:01:08-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r2-GigabitEthernet0/0/1]1
^
Error: Unrecognized command found at '^' position.
[r2-GigabitEthernet0/0/1]inter
[r2-GigabitEthernet0/0/1]int
[r2-GigabitEthernet0/0/1]q
[r2]interf
[r2]interface g
[r2]interface GigabitEthernet 0/0/0
[r2-GigabitEthernet0/0/0]ip add 23.1.1.1 24
[r2-GigabitEthernet0/0/0]
Jul 24 2021 17:01:29-08:00 r2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r2-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
<r2>
<r2>ping 23.1.1.2
PING 23.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 23.1.1.2: bytes=56 Sequence=1 ttl=255 time=40 ms
Reply from 23.1.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 23.1.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 23.1.1.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 23.1.1.2: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 23.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/26/40 ms
<r2>
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>sys
Enter system view, return user view with Ctrl+Z.
[r2]bgp 2
[r2-bgp]peer 12.1.1.1 as-num
[r2-bgp]peer 12.1.1.1 as-number 1
[r2-bgp]q
[r2]
Jul 24 2021 17:23:59-08:00 r2 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of the
peer 12.1.1.1 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, St
ateChangeReason=Up)
[r2]bgp 2
[r2-bgp]peer 3.3.3.3 as-nu
[r2-bgp]peer 3.3.3.3 as-number 2
[r2-bgp]peer 3.3.3.3 con
[r2-bgp]peer 3.3.3.3 connect-interface l
[r2-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[r2-bgp]q
[r2]disp
[r2]display bpg p
[r2]display bpg pee
[r2]display bpg peer
^
Error: Wrong parameter found at '^' position.
[r2]display bgp peer
BGP local router ID : 192.168.2.1
Local AS number : 2
Total number of peers : 2 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
3.3.3.3 4 2 0 0 0 00:03:36 Idle
0
12.1.1.1 4 1 6 6 0 00:04:38 Established
0
[r2]ospf 1 rou
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]netw
[r2-ospf-1]a 0
[r2-ospf-1-area-0.0.0.0]netw
[r2-ospf-1-area-0.0.0.0]network 12.1.1.2 255.255.255.255
[r2-ospf-1-area-0.0.0.0]netw
[r2-ospf-1-area-0.0.0.0]network 192.168.2.1 255.255.255.255
[r2-ospf-1-area-0.0.0.0]netw
[r2-ospf-1-area-0.0.0.0]network 2.2.2.2 255.255.255.255
[r2-ospf-1-area-0.0.0.0]netw
[r2-ospf-1-area-0.0.0.0]network 23.1.1.1 255.255.255.255
[r2-ospf-1-area-0.0.0.0]
Jul 24 2021 17:33:34-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[r2-ospf-1-area-0.0.0.0]
Jul 24 2021 17:33:42-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
[r2-ospf-1-area-0.0.0.0]
Jul 24 2021 17:33:42-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, NeighborE
vent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchan
ge)
[r2-ospf-1-area-0.0.0.0]
Jul 24 2021 17:33:42-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, NeighborE
vent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[r2-ospf-1-area-0.0.0.0]
Jul 24 2021 17:33:42-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, NeighborE
vent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[r2-ospf-1-area-0.0.0.0]
Jul 24 2021 17:34:36-08:00 r2 %%01BGP/3/STATE_CHG_UPDOWN(l)[6]:The status of the
peer 3.3.3.3 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, Sta
teChangeReason=Up)
[r2-ospf-1-area-0.0.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
<r2>sys
Enter system view, return user view with Ctrl+Z.
[r2]disp
[r2]display ospf p
[r2]display ospf peer b
[r2]display ospf peer brief
OSPF Process 1 with Router ID 2.2.2.2
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/0 3.3.3.3 Full
----------------------------------------------------------------------------
[r2]
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>sys
Enter system view, return user view with Ctrl+Z.
[r2]disp
[r2]display bgp
[r2]display bgp p
[r2]display bgp peer
BGP local router ID : 192.168.2.1
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
3.3.3.3 4 2 17 17 0 00:15:20 Established
0
12.1.1.1 4 1 27 27 0 00:25:58 Established
0
[r2]
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>
<r2>sys
Enter system view, return user view with Ctrl+Z.
[r2]dis
[r2]display bgp
[r2]display bgp rou
[r2]display bgp routing-table
BGP Local router ID is 192.168.2.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: 1
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 192.168.1.0 12.1.1.1 0 0 1i
[r2]peer 3.3.
^
Error: Unrecognized command found at '^' position.
[r2]bgp 2
[r2-bgp]peer 3.3.3.3 nex
[r2-bgp]peer 3.3.3.3 next-hop-l
[r2-bgp]peer 3.3.3.3 next-hop-local
[r2-bgp]peer 4.4.4.4 as-n
[r2-bgp]peer 4.4.4.4 as-number 2
[r2-bgp]peer 4.4.4.4 con
[r2-bgp]peer 4.4.4.4 connect-interface l
[r2-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[r2-bgp]
Jul 24 2021 18:05:30-08:00 r2 %%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)
[r2-bgp]netw
[r2-bgp]network 192.168.2.0
[r2-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