The device is running!
The device is running!
##
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR1
[AR1]int lo0
[AR1-LoopBack0]ip add 1.1.1.1 32
[AR1-LoopBack0]int g0/0/0
[AR1-GigabitEthernet0/0/0]ip add 10.0.12.1 24
Aug 12 2024 19:22:33-08:00 AR1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR1-GigabitEthernet0/0/0]q
[AR1]bgp 100
[AR1-bgp]peer 10.0.12.2 as
[AR1-bgp]peer 10.0.12.2 as-number 200
[AR1-bgp]net
[AR1-bgp]
Aug 12 2024 19:28:49-08:00 AR1 %%01BGP/3/STATE_CHG_UPDOWN(l)[1]:The status of th
e peer 10.0.12.2 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public,
StateChangeReason=Up)
[AR1-bgp]q
[AR1]int loo1
[AR1-LoopBack1]ip add 10.1.1.1 32
[AR1-LoopBack1]int loo2
[AR1-LoopBack2]ip add 10.2.2.2
[AR1-LoopBack2]int loo3
[AR1-LoopBack3]ip add 10.3.3.3
[AR1-LoopBack3]int loo4
[AR1-LoopBack4]ip add 10.4.4.4 32
[AR1-LoopBack4]q
[AR1]ip ip
[AR1]ip ip-prefix com1 per
[AR1]ip ip-prefix com1 permit node 10
^
Error: Wrong parameter found at '^' position.
[AR1]ip ip-prefix 1 i
[AR1]ip ip-prefix 1 index 10 p
[AR1]ip ip-prefix 1 index 10 permit 10.1.1.1 32
[AR1]ip ip-prefix 1 index 2
[AR1]rou
[AR1]route
[AR1]route-policy com1 per
[AR1]route-policy com1 permit n
[AR1]route-policy com1 permit node 10
Info: New Sequence of this List.
[AR1-route-policy]if
[AR1-route-policy]if-match ip
[AR1-route-policy]if-match ip
[AR1-route-policy]if-match ip-prefix 1
[AR1-route-policy]ap
[AR1-route-policy]apply c
[AR1-route-policy]apply comm-filter
[AR1-route-policy]apply community 100:1
[AR1-route-policy]q
[AR1]rou
[AR1]route-policy-change
[AR1]router
[AR1]route
[AR1]route-policy com1 p
[AR1]route-policy com1 permit n
[AR1]route-policy com1 permit node 20
Info: New Sequence of this List.
[AR1-route-policy]a
[AR1-route-policy]apply com
[AR1-route-policy]apply community 100:2
[AR1-route-policy]q
[AR1]bgp 100
[AR1-bgp]ip
[AR1-bgp]ipv4-family u
[AR1-bgp]ipv4-family unicast
[AR1-bgp-af-ipv4]un
[AR1-bgp-af-ipv4]undo sy
[AR1-bgp-af-ipv4]undo synchronization
[AR1-bgp-af-ipv4]q
[AR1-bgp]net
[AR1-bgp]network 10.1.1.1 32
[AR1-bgp]network 10.2.2.2
[AR1-bgp]network 10.3.3.3
[AR1-bgp]network 10.4.4.4
[AR1-bgp]peer 10.0.12.2 rou
[AR1-bgp]peer 10.0.12.2 route-limit
[AR1-bgp]peer 10.0.12.2 route-policy com1 ex
[AR1-bgp]peer 10.0.12.2 route-policy com1 export
[AR1-bgp]peer 10.0.12.2 ad
[AR1-bgp]peer 10.0.12.2 advertise-community
[AR1-bgp]q
[AR1]q
<AR1>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: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 0.0.0.0 0 0 i
*> 10.2.2.2/32 0.0.0.0 0 0 i
*> 10.3.3.3/32 0.0.0.0 0 0 i
*> 10.4.4.4/32 0.0.0.0 0 0 i
<AR1>display bgp routing-table 1.1.1.1
Info: The network does not exist.
<AR1>display bgp routing-table 1.1.1.1
Info: The network does not exist.
<AR1>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: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 0.0.0.0 0 0 i
*> 10.2.2.2/32 0.0.0.0 0 0 i
*> 10.3.3.3/32 0.0.0.0 0 0 i
*> 10.4.4.4/32 0.0.0.0 0 0 i
<AR1>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: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 0.0.0.0 0 0 i
*> 10.2.2.2/32 0.0.0.0 0 0 i
*> 10.3.3.3/32 0.0.0.0 0 0 i
*> 10.4.4.4/32 0.0.0.0 0 0 i
<AR1>sys
Enter system view, return user view with Ctrl+Z.
[AR1]dis th
[V200R003C00]
#
sysname AR1
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
ip ip-prefix 1 index 10 permit 10.1.1.1 32
ip ip-prefix 1 index 20 permit 10.2.2.2 32
#
return
[AR1]bgp 100
[AR1-bgp]dis th
[V200R003C00]
#
bgp 100
peer 10.0.12.2 as-number 200
#
ipv4-family unicast
undo synchronization
network 10.1.1.1 255.255.255.255
network 10.2.2.2 255.255.255.255
network 10.3.3.3 255.255.255.255
network 10.4.4.4 255.255.255.255
peer 10.0.12.2 enable
peer 10.0.12.2 route-policy com1 export
peer 10.0.12.2 advertise-community
#
return
[AR1-bgp]q
[AR1]rou
[AR1]route-policy com1 permit no
[AR1]route-policy com1 permit node 10
Info: You are overwriting this sequence.
[AR1-route-policy]dis th
[V200R003C00]
#
route-policy com1 permit node 10
if-match ip-prefix 1
apply community 100:1
#
route-policy com1 permit node 20
apply community 100:2
#
return
[AR1-route-policy]q
[AR1]bgp 100
[AR1-bgp]peer 10.0.12.2 ebgp-max-hop
[AR1-bgp]dis th
[V200R003C00]
#
bgp 100
peer 10.0.12.2 as-number 200
peer 10.0.12.2 ebgp-max-hop 255
#
ipv4-family unicast
undo synchronization
network 10.1.1.1 255.255.255.255
network 10.2.2.2 255.255.255.255
network 10.3.3.3 255.255.255.255
network 10.4.4.4 255.255.255.255
peer 10.0.12.2 enable
peer 10.0.12.2 route-policy com1 export
peer 10.0.12.2 advertise-community
#
return
[AR1-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
<AR1>dis bgp peer
BGP local router ID : 1.1.1.1
Local AS number : 100
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
10.0.12.2 4 200 52 56 0 00:44:21 Established
0
<AR1>
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<AR1>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: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 0.0.0.0 0 0 i
*> 10.2.2.2/32 0.0.0.0 0 0 i
*> 10.3.3.3/32 0.0.0.0 0 0 i
*> 10.4.4.4/32 0.0.0.0 0 0 i
<AR1>saave
^
Error: Unrecognized command found at '^' position.
<AR1>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
The device is running!
The device is running!
##
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR2
[AR2]int lo0
[AR2-LoopBack0]ip add 1.1.1.1 32
[AR2-LoopBack0]int g0/0/0
[AR2-GigabitEthernet0/0/0]ip add 10.0.12.1 24
Aug 12 2024 19:21:29-08:00 AR2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR2-GigabitEthernet0/0/0]ip add 10.0.12.2
[AR2-GigabitEthernet0/0/0]int lo0
[AR2-LoopBack0]ip add 2.2.2.2 32
[AR2-LoopBack0]dis th
[V200R003C00]
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
return
[AR2-LoopBack0]int g0/0/1
[AR2-GigabitEthernet0/0/1]ip add 10.0.23.2 24
Aug 12 2024 19:23:14-08:00 AR2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[AR2-GigabitEthernet0/0/1]q
[AR2]bgp 200
[AR2-bgp]peer 10.0.12.1 as
[AR2-bgp]peer 10.0.12.1 as-number 100
[AR2-bgp]peer 10.0.23.3 as 300
[AR2-bgp]
Aug 12 2024 19:28:49-08:00 AR2 %%01BGP/3/STATE_CHG_UPDOWN(l)[2]:The status of th
e peer 10.0.12.1 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public,
StateChangeReason=Up)
[AR2-bgp]
Aug 12 2024 19:30:14-08:00 AR2 %%01BGP/3/STATE_CHG_UPDOWN(l)[3]:The status of th
e peer 10.0.23.3 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public,
StateChangeReason=Up)
[AR2-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
<AR2>sys
Enter system view, return user view with Ctrl+Z.
[AR2]bgp 200
[AR2-bgp]dis th
[V200R003C00]
#
bgp 200
peer 10.0.12.1 as-number 100
peer 10.0.23.3 as-number 300
#
ipv4-family unicast
undo synchronization
peer 10.0.12.1 enable
peer 10.0.23.3 enable
#
return
[AR2-bgp]peer 10.0.23.3 rou
[AR2-bgp]peer 10.0.23.3 route-limit
[AR2-bgp]peer 10.0.23.3 route-policy com2 ex
[AR2-bgp]peer 10.0.23.3 route-policy com2 export
[AR2-bgp]peer 10.0.23.3 ad
[AR2-bgp]peer 10.0.23.3 advertise-community
[AR2-bgp]q
[AR2]q
<AR2>display bgp routing-table
BGP Local router ID is 10.0.12.2
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 10.0.12.1 0 0 100i
*> 10.2.2.2/32 10.0.12.1 0 0 100i
*> 10.3.3.3/32 10.0.12.1 0 0 100i
*> 10.4.4.4/32 10.0.12.1 0 0 100i
<AR2>display bgp routing-table 10.1.1.1
BGP local router ID : 10.0.12.2
Local AS number : 200
Paths: 1 available, 1 best, 1 select
BGP routing table entry information of 10.1.1.1/32:
From: 10.0.12.1 (1.1.1.1)
Route Duration: 00h06m14s
Direct Out-interface: GigabitEthernet0/0/0
Original nexthop: 10.0.12.1
Qos information : 0x0
Community:<100:1>
AS-path 100, origin igp, MED 0, pref-val 0, valid, external, best, select, acti
ve, pre 255
Advertised to such 1 peers:
10.0.23.3
<AR2>display bgp routing-table 10.1.1.1
BGP local router ID : 10.0.12.2
Local AS number : 200
Paths: 1 available, 1 best, 1 select
BGP routing table entry information of 10.1.1.1/32:
From: 10.0.12.1 (1.1.1.1)
Route Duration: 00h08m08s
Direct Out-interface: GigabitEthernet0/0/0
Original nexthop: 10.0.12.1
Qos information : 0x0
Community:<100:1>
AS-path 100, origin igp, MED 0, pref-val 0, valid, external, best, select, acti
ve, pre 255
Advertised to such 1 peers:
10.0.23.3
<AR2>
<AR2>display bgp routing-table
BGP Local router ID is 10.0.12.2
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 10.0.12.1 0 0 100i
*> 10.2.2.2/32 10.0.12.1 0 0 100i
*> 10.3.3.3/32 10.0.12.1 0 0 100i
*> 10.4.4.4/32 10.0.12.1 0 0 100i
<AR2>sys
Enter system view, return user view with Ctrl+Z.
[AR2]bgp 200
[AR2-bgp]dis th
[V200R003C00]
#
bgp 200
peer 10.0.12.1 as-number 100
peer 10.0.23.3 as-number 300
#
ipv4-family unicast
undo synchronization
peer 10.0.12.1 enable
peer 10.0.23.3 enable
peer 10.0.23.3 route-policy com2 export
peer 10.0.23.3 advertise-community
#
return
[AR2-bgp]q
[AR2]rou
[AR2]route-policy com2 per
[AR2]route-policy com2 permit n
[AR2]route-policy com2 permit node 10
Info: New Sequence of this List.
[AR2-route-policy]if
[AR2-route-policy]if-match c
[AR2-route-policy]if-match community-filter 1
[AR2-route-policy]ap
[AR2-route-policy]apply c
[AR2-route-policy]apply comm-filter
[AR2-route-policy]apply community no
[AR2-route-policy]apply community no-export-subconfed
[AR2-route-policy]apply community none
[AR2-route-policy]apply community no-advertise
[AR2-route-policy]apply community no-export add
[AR2-route-policy]apply community no-export additive
[AR2-route-policy]q
[AR2]rou
[AR2]route
[AR2]route-policy com2 per
[AR2]route-policy com2 permit n
[AR2]route-policy com2 permit node 20
Info: New Sequence of this List.
[AR2-route-policy]ip c
[AR2-route-policy]q
[AR2]co
[AR2]ip co
[AR2]ip community-filter 1 per
[AR2]ip community-filter 1 permit 100:2
[AR2]bgp 200
[AR2-bgp]peer 10.0.23.3 rou
[AR2-bgp]peer 10.0.23.3 route-limit
[AR2-bgp]peer 10.0.23.3 route-policy com2 ex
[AR2-bgp]peer 10.0.23.3 route-policy com2 export
[AR2-bgp]peer 10.0.23.3 ad
[AR2-bgp]peer 10.0.23.3 advertise-community
[AR2-bgp]q
[AR2]display bgp routing-table
BGP Local router ID is 10.0.12.2
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 10.0.12.1 0 0 100i
*> 10.2.2.2/32 10.0.12.1 0 0 100i
*> 10.3.3.3/32 10.0.12.1 0 0 100i
*> 10.4.4.4/32 10.0.12.1 0 0 100i
[AR2]dis th
[V200R003C00]
#
sysname AR2
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
ip community-filter 1 permit 100:2
#
return
[AR2]rou
[AR2]route-policy com2 per
[AR2]route-policy com2 permit n
[AR2]route-policy com2 permit node 10
Info: You are overwriting this sequence.
[AR2-route-policy]dis th
[V200R003C00]
#
route-policy com2 permit node 10
if-match community-filter 1
apply community no-export additive
#
route-policy com2 permit node 20
#
return
[AR2-route-policy]q
[AR2]bgp 200
[AR2-bgp]dis th
[V200R003C00]
#
bgp 200
peer 10.0.12.1 as-number 100
peer 10.0.23.3 as-number 300
#
ipv4-family unicast
undo synchronization
peer 10.0.12.1 enable
peer 10.0.23.3 enable
peer 10.0.23.3 route-policy com2 export
peer 10.0.23.3 advertise-community
#
return
[AR2-bgp]peer 10.0.12.1 e
[AR2-bgp]peer 10.0.12.1 ebgp-max-hop 255
[AR2-bgp]peer 10.0.23.3 e
[AR2-bgp]peer 10.0.23.3 enable
[AR2-bgp]peer 10.0.23.3 ebgp-max-hop 255
[AR2-bgp]dis th
[V200R003C00]
#
bgp 200
peer 10.0.12.1 as-number 100
peer 10.0.12.1 ebgp-max-hop 255
peer 10.0.23.3 as-number 300
peer 10.0.23.3 ebgp-max-hop 255
#
ipv4-family unicast
undo synchronization
peer 10.0.12.1 enable
peer 10.0.23.3 enable
peer 10.0.23.3 route-policy com2 export
peer 10.0.23.3 advertise-community
#
return
[AR2-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
<AR2>display bgp routing-table 10.3.3.3
BGP local router ID : 10.0.12.2
Local AS number : 200
Paths: 1 available, 1 best, 1 select
BGP routing table entry information of 10.3.3.3/32:
From: 10.0.12.1 (1.1.1.1)
Route Duration: 00h08m17s
Relay IP Nexthop: 0.0.0.0
Relay IP Out-Interface: GigabitEthernet0/0/0
Original nexthop: 10.0.12.1
Qos information : 0x0
Community:<100:2>
AS-path 100, origin igp, MED 0, pref-val 0, valid, external, best, select, acti
ve, pre 255
Advertised to such 1 peers:
10.0.23.3
<AR2>display bgp routing-table 10.1.1.1
BGP local router ID : 10.0.12.2
Local AS number : 200
Paths: 1 available, 1 best, 1 select
BGP routing table entry information of 10.1.1.1/32:
From: 10.0.12.1 (1.1.1.1)
Route Duration: 00h08m25s
Relay IP Nexthop: 0.0.0.0
Relay IP Out-Interface: GigabitEthernet0/0/0
Original nexthop: 10.0.12.1
Qos information : 0x0
Community:<100:1>
AS-path 100, origin igp, MED 0, pref-val 0, valid, external, best, select, acti
ve, pre 255
Advertised to such 1 peers:
10.0.23.3
<AR2>dis bgp peer
BGP local router ID : 10.0.12.2
Local AS number : 200
Total number of peers : 2 Peers in established state : 2
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
10.0.12.1 4 100 55 52 0 00:44:33 Established
4
10.0.23.3 4 300 46 56 0 00:43:07 Established
0
<AR2>
<AR2>
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<AR2>display bgp routing-table
BGP Local router ID is 10.0.12.2
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 10.0.12.1 0 0 100i
*> 10.2.2.2/32 10.0.12.1 0 0 100i
*> 10.3.3.3/32 10.0.12.1 0 0 100i
*> 10.4.4.4/32 10.0.12.1 0 0 100i
<AR2>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
The device is running!
The device is running!
##
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR3
[AR3]int lo0
[AR3-LoopBack0]ip add 3.3.3.3 32
[AR3-LoopBack0]int g0/0/1
[AR3-GigabitEthernet0/0/1]ip add 10.0.23.3 24
Aug 12 2024 19:23:54-08:00 AR3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[AR3-GigabitEthernet0/0/1]int g0/0/0
[AR3-GigabitEthernet0/0/0]ip add 10.0.34
Aug 12 2024 19:24:16-08:00 AR3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR3-GigabitEthernet0/0/0]q
[AR3]bgp 300
[AR3-bgp]peer 10.0.23.2 as 200
[AR3-bgp]peer 4.4.4.4 as 300
[AR3-bgp]peer 4.4.4.4 c
[AR3-bgp]peer 4.4.4.4 capability-advertise
[AR3-bgp]peer 4.4.4.4 connect-interface l
[AR3-bgp]peer 4.4.4.4 connect-interface LoopBack
Aug 12 2024 19:30:14-08:00 AR3 %%01BGP/3/STATE_CHG_UPDOWN(l)[2]:The status of th
e peer 10.0.23.2 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public,
StateChangeReason=Up)
[AR3-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[AR3-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
<AR3>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: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 10.0.23.2 0 200 100i
*> 10.2.2.2/32 10.0.23.2 0 200 100i
*> 10.3.3.3/32 10.0.23.2 0 200 100i
*> 10.4.4.4/32 10.0.23.2 0 200 100i
<AR3>sys
Enter system view, return user view with Ctrl+Z.
[AR3]bgp 300
[AR3-bgp]peer 4.4.4.4 n
[AR3-bgp]peer 4.4.4.4 next-hop-invariable
[AR3-bgp]peer 4.4.4.4 next-hop-local
[AR3-bgp]q
[AR3]q
<AR3>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: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 10.0.23.2 0 200 100i
*> 10.2.2.2/32 10.0.23.2 0 200 100i
*> 10.3.3.3/32 10.0.23.2 0 200 100i
*> 10.4.4.4/32 10.0.23.2 0 200 100i
<AR3>display bgp routing-table 10.1.1.1
BGP local router ID : 3.3.3.3
Local AS number : 300
Paths: 1 available, 1 best, 1 select
BGP routing table entry information of 10.1.1.1/32:
From: 10.0.23.2 (10.0.12.2)
Route Duration: 00h05m10s
Direct Out-interface: GigabitEthernet0/0/1
Original nexthop: 10.0.23.2
Qos information : 0x0
Community:<100:1>
AS-path 200 100, origin igp, pref-val 0, valid, external, best, select, active,
pre 255
Not advertised to any peer yet
<AR3>
<AR3>sys
Enter system view, return user view with Ctrl+Z.
[AR3]bgp 300
[AR3-bgp]peer 10.0.23.2 n
[AR3-bgp]peer 10.0.23.2 next-hop-invariable
[AR3-bgp]peer 10.0.23.2 next-hop-local
[AR3-bgp]display bgp routing-table 10.1.1.1
BGP local router ID : 3.3.3.3
Local AS number : 300
Paths: 1 available, 1 best, 1 select
BGP routing table entry information of 10.1.1.1/32:
From: 10.0.23.2 (10.0.12.2)
Route Duration: 00h07m01s
Direct Out-interface: GigabitEthernet0/0/1
Original nexthop: 10.0.23.2
Qos information : 0x0
Community:<100:1>
AS-path 200 100, origin igp, pref-val 0, valid, external, best, select, active,
pre 255
Not advertised to any peer yet
[AR3-bgp]
[AR3-bgp]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: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 10.0.23.2 0 200 100i
*> 10.2.2.2/32 10.0.23.2 0 200 100i
*> 10.3.3.3/32 10.0.23.2 0 200 100i
*> 10.4.4.4/32 10.0.23.2 0 200 100i
[AR3-bgp]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: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 10.0.23.2 0 200 100i
*> 10.2.2.2/32 10.0.23.2 0 200 100i
*> 10.3.3.3/32 10.0.23.2 0 200 100i
*> 10.4.4.4/32 10.0.23.2 0 200 100i
[AR3-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
<AR3>sys
Enter system view, return user view with Ctrl+Z.
[AR3]dis th
[V200R003C00]
#
sysname AR3
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
return
[AR3]bgp 300
[AR3-bgp]dis th
[V200R003C00]
#
bgp 300
peer 4.4.4.4 as-number 300
peer 4.4.4.4 connect-interface LoopBack0
peer 10.0.23.2 as-number 200
#
ipv4-family unicast
undo synchronization
peer 4.4.4.4 enable
peer 4.4.4.4 next-hop-local
peer 10.0.23.2 enable
peer 10.0.23.2 next-hop-local
#
return
[AR3-bgp]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: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 10.0.23.2 0 200 100i
*> 10.2.2.2/32 10.0.23.2 0 200 100i
*> 10.3.3.3/32 10.0.23.2 0 200 100i
*> 10.4.4.4/32 10.0.23.2 0 200 100i
[AR3-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
<AR3>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: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 10.0.23.2 0 200 100i
*> 10.2.2.2/32 10.0.23.2 0 200 100i
*> 10.3.3.3/32 10.0.23.2 0 200 100i
*> 10.4.4.4/32 10.0.23.2 0 200 100i
<AR3>
<AR3>sys
Enter system view, return user view with Ctrl+Z.
[AR3]bgp 300
[AR3-bgp]dis th
[V200R003C00]
#
bgp 300
peer 4.4.4.4 as-number 300
peer 4.4.4.4 connect-interface LoopBack0
peer 10.0.23.2 as-number 200
#
ipv4-family unicast
undo synchronization
peer 4.4.4.4 enable
peer 4.4.4.4 next-hop-local
peer 10.0.23.2 enable
peer 10.0.23.2 next-hop-local
#
return
[AR3-bgp]dis bgp peer
BGP local router ID : 3.3.3.3
Local AS number : 300
Total number of peers : 2 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
4.4.4.4 4 300 0 0 0 00:43:14 Idle
0
10.0.23.2 4 200 55 46 0 00:43:16 Established
4
[AR3-bgp]
[AR3-bgp]dis th
[V200R003C00]
#
bgp 300
peer 4.4.4.4 as-number 300
peer 4.4.4.4 connect-interface LoopBack0
peer 10.0.23.2 as-number 200
#
ipv4-family unicast
undo synchronization
peer 4.4.4.4 enable
peer 4.4.4.4 next-hop-local
peer 10.0.23.2 enable
peer 10.0.23.2 next-hop-local
#
return
[AR3-bgp] q
[AR3]ospf 1 rou 3.3.3.3
[AR3-ospf-1]area 0
[AR3-ospf-1-area-0.0.0.0]net
[AR3-ospf-1-area-0.0.0.0]network 3.3.3.3
^
Error:Incomplete command found at '^' position.
[AR3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[AR3-ospf-1-area-0.0.0.0]network 10.0.34.0 0.0.0.255
[AR3-ospf-1-area-0.0.0.0]q
[AR3-ospf-1]q
[AR3]
Aug 12 2024 20:20:55-08:00 AR3 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=4.34.0.10, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[AR3]
Aug 12 2024 20:21:01-08:00 AR3 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=4.34.0.10, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
[AR3]
Aug 12 2024 20:21:01-08:00 AR3 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=4.34.0.10, Neighbo
rEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exch
ange)
[AR3]
Aug 12 2024 20:21:01-08:00 AR3 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=4.34.0.10, Neighbo
rEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadin
g)
[AR3]
Aug 12 2024 20:21:01-08:00 AR3 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=4.34.0.10, Neighbo
rEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[AR3]dis bgp peer
BGP local router ID : 3.3.3.3
Local AS number : 300
Total number of peers : 2 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
4.4.4.4 4 300 0 0 0 00:50:56 Idle
0
10.0.23.2 4 200 62 53 0 00:50:58 Established
4
[AR3]dis bgp peer
BGP local router ID : 3.3.3.3
Local AS number : 300
Total number of peers : 2 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
4.4.4.4 4 300 0 0 0 00:51:01 Idle
0
10.0.23.2 4 200 63 54 0 00:51:03 Established
4
[AR3]
Aug 12 2024 20:21:27-08:00 AR3 %%01BGP/3/STATE_CHG_UPDOWN(l)[5]:The status of th
e peer 4.4.4.4 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, St
ateChangeReason=Up)
[AR3]dis bgp peer
BGP local router ID : 3.3.3.3
Local AS number : 300
Total number of peers : 2 Peers in established state : 2
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
4.4.4.4 4 300 2 4 0 00:00:05 Established
0
10.0.23.2 4 200 63 54 0 00:51:18 Established
4
[AR3]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: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.1/32 10.0.23.2 0 200 100i
*> 10.2.2.2/32 10.0.23.2 0 200 100i
*> 10.3.3.3/32 10.0.23.2 0 200 100i
*> 10.4.4.4/32 10.0.23.2 0 200 100i
[AR3]q
<AR3>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
The device is running!
The device is running!
##
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR4
[AR4]int lo0
[AR4-LoopBack0]ip add 4.4.4.4 32
[AR4-LoopBack0]int g0/0/0
[AR4-GigabitEthernet0/0/0]ip add 10.0.34.4 24
Aug 12 2024 19:25:36-08:00 AR4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR4-GigabitEthernet0/0/0]q
[AR4]bgp 300
[AR4-bgp]peer 3.3.3.3 as
[AR4-bgp]peer 3.3.3.3 as-number 300
[AR4-bgp]peer 3.3.3.3 co
[AR4-bgp]peer 3.3.3.3 connect-interface l
[AR4-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[AR4-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
<AR4>display bgp routing-table
<AR4>display bgp routing-table
<AR4>sys
Enter system view, return user view with Ctrl+Z.
[AR4]bgp 300
[AR4-bgp]peer 3.3.3.3 l
[AR4-bgp]peer 3.3.3.3 label-route-capability
[AR4-bgp]peer 3.3.3.3 listen-only
[AR4-bgp]peer 3.3.3.3 log-change
[AR4-bgp]peer 3.3.3.3 label-route-capability
[AR4-bgp]peer 3.3.3.3 listen-only
[AR4-bgp]peer 3.3.3.3 log-change
[AR4-bgp]peer 3.3.3.3 ?
advertise-community Send community attribute to this peer
advertise-ext-community Advertise extended community
allow-as-loop Configure permit of as-path loop
as-number AS number
as-path-filter Routes matching certain AS path filter
bfd Bidirectional forwarding detection
capability-advertise Advertise capability
connect-interface Set interface name to be used as session's output
interface
default-route-advertise Advertise default route to this peer
description Configure description information about peer
discard-ext-community Discard extended community
ebgp-max-hop EBGP Multihop
enable Enable peer
fake-as Configure a fake AS number for the peer
filter-policy BGP filter list
group Specify a peer-group
ignore Suspend the peer session for this peer
ip-prefix IP prefix filter
keep-all-routes Keep all original route's information from the peer
keychain Keychain authentication
label-route-capability Send labeled route to this peer
listen-only Only listen to connect request, not initiate connect
log-change Log any session status and event change information
next-hop-invariable Send original next hop for routes advertised to the
peer
next-hop-local Specify local address as the next hop of routes
advertised to the peer
out-delay
password Peer password
path-mtu Path MTU
preferred-value Set route PrefVal to this peer
public-as-only Remove private AS number from outbound updates
reflect-client Configure a peer as a route reflector client
route-limit Number of routes limited from this peer
route-policy Apply routing policy
route-update-interval Route update interval
timer Configure timers for a peer session
tracking Fast detect the unreachable destined for the peer and
reset the session
valid-ttl-hops Generalized TTL Security Mechanism hops
[AR4-bgp]peer 3.3.3.3
^
Error:Incomplete command found at '^' position.
[AR4-bgp]
[AR4-bgp]
[AR4-bgp]peer 3.3.3.3 n
[AR4-bgp]peer 3.3.3.3 next-hop-local
[AR4-bgp]q
[AR4]display bgp routing-table
[AR4]display bgp routing-table
[AR4]display bgp routing-table 10.1.1.1
Info: The network does not exist.
[AR4]
[AR4]display bgp routing-table
[AR4]display bgp routing-table
[AR4]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<AR4>sys
Enter system view, return user view with Ctrl+Z.
[AR4]dis th
[V200R003C00]
#
sysname AR4
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
return
[AR4]bgp 300
[AR4-bgp]dis th
[V200R003C00]
#
bgp 300
peer 3.3.3.3 as-number 300
peer 3.3.3.3 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
peer 3.3.3.3 enable
peer 3.3.3.3 next-hop-local
#
return
[AR4-bgp]q
[AR4]]display bgp routing-table
^
Error: Unrecognized command found at '^' position.
[AR4]
[AR4]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<AR4>display bgp routing-table
<AR4>
<AR4>dis bgp peer
BGP local router ID : 4.4.4.4
Local AS number : 300
Total number of peers : 1 Peers in established state : 0
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
3.3.3.3 4 300 0 0 0 00:42:38 Idle
0
<AR4>
<AR4>
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<AR4>sys
Enter system view, return user view with Ctrl+Z.
[AR4]ospf 1 rou 4.4.4.4
[AR4-ospf-1]area 0
[AR4-ospf-1-area-0.0.0.0]nrt
[AR4-ospf-1-area-0.0.0.0]n
[AR4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[AR4-ospf-1-area-0.0.0.0]net
[AR4-ospf-1-area-0.0.0.0]network 10.0.34.0 0.0.0.255
[AR4-ospf-1-area-0.0.0.0]q
[AR4-ospf-1]q
[AR4]
Aug 12 2024 20:21:01-08:00 AR4 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.34.0.10, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[AR4]
Aug 12 2024 20:21:01-08:00 AR4 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.34.0.10, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[AR4]
Aug 12 2024 20:21:01-08:00 AR4 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.34.0.10, Neighbo
rEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[AR4]
Aug 12 2024 20:21:01-08:00 AR4 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.34.0.10, Neighbo
rEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exch
ange)
[AR4]
Aug 12 2024 20:21:01-08:00 AR4 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.34.0.10, Neighbo
rEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadin
g)
[AR4]
Aug 12 2024 20:21:01-08:00 AR4 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.34.0.10, Neighbo
rEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[AR4]dis bgp peer
Aug 12 2024 20:21:27-08:00 AR4 %%01BGP/3/STATE_CHG_UPDOWN(l)[6]:The status of th
e peer 3.3.3.3 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, St
ateChangeReason=Up)
[AR4]dis bgp peer
BGP local router ID : 4.4.4.4
Local AS number : 300
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
3.3.3.3 4 300 4 3 0 00:00:00 Established
4
[AR4]display bgp routing-table
BGP Local router ID is 4.4.4.4
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 10.1.1.1/32 3.3.3.3 100 0 200 100i
*>i 10.2.2.2/32 3.3.3.3 100 0 200 100i
*>i 10.3.3.3/32 3.3.3.3 100 0 200 100i
*>i 10.4.4.4/32 3.3.3.3 100 0 200 100i
[AR4]q
<AR4>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:
<AR4>
<AR4>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated