R1:
The device is running!
un t m
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn R1
[R1]user-in con 0
[R1-ui-console0]I
[R1-ui-console0]idle-timeout 0 0
[R1-ui-console0]q
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[R1-GigabitEthernet0/0/0]un shut
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R1-GigabitEthernet0/0/0]int loop 0
[R1-LoopBack0]ip add 1.1.1.1 32
[R1-LoopBack0]
[R1]ospf 100 r
[R1]ospf 100 router-id 1.1.1.1
[R1-ospf-100]ne
[R1-ospf-100]nex
[R1-ospf-100]area 0
[R1-ospf-100-area-0.0.0.0]ne
[R1-ospf-100-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R1-ospf-100-area-0.0.0.0]ne
[R1-ospf-100-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[R1-ospf-100-area-0.0.0.0]q
[R1-ospf-100]q
[R1]disp osf peer
^
Error: Unrecognized command found at '^' position.
[R1]disp ospf peer
OSPF Process 100 with Router ID 1.1.1.1
Neighbors
Area 0.0.0.0 interface 12.1.1.1(GigabitEthernet0/0/0)'s neighbors
Router ID: 2.2.2.2 Address: 12.1.1.2
State: Full Mode:Nbr is Master Priority: 1
DR: 12.1.1.1 BDR: 12.1.1.2 MTU: 0
Dead timer due in 38 sec
Retrans timer interval: 5
Neighbor is up for 00:01:36
Authentication Sequence: [ 0 ]
[R1]disp ip r
[R1]disp ip rou
[R1]disp ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 6 Routes : 6
Destination/Mask Proto Pre Cost Flags NextHop Interface
1.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack0
2.2.2.2/32 OSPF 10 1 D 12.1.1.2 GigabitEthernet
0/0/0
12.1.1.0/24 Direct 0 0 D 12.1.1.1 GigabitEthernet
0/0/0
12.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
[R1]bgp 100 r
[R1]bgp 100
[R1-bgp]rou
[R1-bgp]router-id 1.1.1.1
[R1-bgp]peer 2.2.2.2 as
[R1-bgp]peer 2.2.2.2 as-
[R1-bgp]peer 2.2.2.2 as-n
[R1-bgp]peer 2.2.2.2 as-number 100
[R1-bgp]peer 2.2.2.2 c
[R1-bgp]peer 2.2.2.2 con
[R1-bgp]peer 2.2.2.2 connect-interface l
[R1-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[R1-bgp]net
[R1-bgp]network 1.1.1.1 32
[R1-bgp]ne
[R1-bgp]network 12.1.1.0 24
[R1-bgp]ne
[R1-bgp]network 2.2.2.2 32
[R1-bgp]net
[R1-bgp]network 3.3.3.3 32
Info: The network does not exist.
[R1-bgp]disp 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
2.2.2.2 4 100 57 41 0 00:35:07 Established
17
[R1-bgp]disp bgp rou
[R1-bgp]disp 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: 20
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.1/32 0.0.0.0 0 0 i
*> 2.2.2.2/32 0.0.0.0 1 0 i
i 2.2.2.2 0 100 0 i
*>i 3.3.3.3/32 2.2.2.2 0 100 0 i
*>i 4.4.4.4/32 2.2.2.2 1 100 0 200i
*>i 5.5.5.5/32 2.2.2.2 0 100 0 200i
*>i 6.6.6.6/32 2.2.2.2 0 100 0 200i
*>i 7.7.7.7/32 2.2.2.2 1 100 0 300i
*>i 8.8.8.8/32 2.2.2.2 0 100 0 i
*> 12.1.1.0/24 0.0.0.0 0 0 i
* i 2.2.2.2 0 100 0 i
*>i 23.1.1.0/24 2.2.2.2 0 100 0 i
*>i 28.1.1.0/24 2.2.2.2 0 100 0 300i
*>i 34.1.1.0/24 2.2.2.2 0 100 0 200i
*>i 35.1.1.0/24 2.2.2.2 0 100 0 200i
*>i 36.1.1.0/24 2.2.2.2 0 100 0 200i
*>i 45.1.1.0/24 2.2.2.2 100 0 200i
*>i 56.1.1.0/24 2.2.2.2 100 0 300i
*>i 67.1.1.0/24 2.2.2.2 100 0 300i
*>i 78.1.1.0/24 2.2.2.2 0 100 0 300i
[R1-bgp]disp bgp r
[R1-bgp]disp 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: 21
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.1/32 0.0.0.0 0 0 i
* i 2.2.2.2 1 100 0 i
*> 2.2.2.2/32 0.0.0.0 1 0 i
i 2.2.2.2 0 100 0 i
*>i 3.3.3.3/32 2.2.2.2 0 100 0 i
*>i 4.4.4.4/32 2.2.2.2 1 100 0 200i
*>i 5.5.5.5/32 2.2.2.2 0 100 0 200i
*>i 6.6.6.6/32 2.2.2.2 0 100 0 200i
*>i 7.7.7.7/32 2.2.2.2 1 100 0 300i
*>i 8.8.8.8/32 2.2.2.2 0 100 0 i
*> 12.1.1.0/24 0.0.0.0 0 0 i
* i 2.2.2.2 0 100 0 i
*>i 23.1.1.0/24 2.2.2.2 0 100 0 i
*>i 28.1.1.0/24 2.2.2.2 0 100 0 300i
*>i 34.1.1.0/24 2.2.2.2 0 100 0 200i
*>i 35.1.1.0/24 2.2.2.2 0 100 0 200i
*>i 36.1.1.0/24 2.2.2.2 0 100 0 200i
*>i 45.1.1.0/24 2.2.2.2 100 0 200i
*>i 56.1.1.0/24 2.2.2.2 100 0 300i
*>i 67.1.1.0/24 2.2.2.2 100 0 300i
*>i 78.1.1.0/24 2.2.2.2 0 100 0 300i
[R1-bgp]
tracert 5.5.5.5
traceroute to 5.5.5.5(5.5.5.5), max hops: 30 ,packet length: 40,press CTRL_C t
o break
1 12.1.1.2 30 ms 70 ms 60 ms
2 28.1.1.8 < AS=300 > 90 ms 80 ms 90 ms
3 78.1.1.7 < AS=300 > 160 ms 170 ms 160 ms
4 67.1.1.6 < AS=300 > 140 ms 150 ms 190 ms
5 56.1.1.5 < AS=300 > 210 ms 210 ms 140 ms
R2:
The device is running!
UN T M
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn R2
[R2]user-in con 0
[R2-ui-console0]id
[R2-ui-console0]idle-timeout 0 0
[R2-ui-console0]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[R2-GigabitEthernet0/0/0]un shut
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 28.1.1.2 24
[R2-GigabitEthernet0/0/1]un shut
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[R2-GigabitEthernet0/0/1]int g0/0/2
[R2-GigabitEthernet0/0/2]ip add 23.1.1.2 24
[R2-GigabitEthernet0/0/2]un shut
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[R2-GigabitEthernet0/0/2]int loop 0
[R2-LoopBack0]ip add 2.2.2.2 32
[R2-LoopBack0]q
[R2]ping 12.1.1.1
PING 12.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 12.1.1.1: bytes=56 Sequence=1 ttl=255 time=60 ms
Reply from 12.1.1.1: bytes=56 Sequence=2 ttl=255 time=40 ms
Reply from 12.1.1.1: bytes=56 Sequence=3 ttl=255 time=60 ms
Reply from 12.1.1.1: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 12.1.1.1: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 12.1.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/44/60 ms
[R2]ping 28.1.1.8
PING 28.1.1.8: 56 data bytes, press CTRL_C to break
Reply from 28.1.1.8: bytes=56 Sequence=1 ttl=255 time=50 ms
Reply from 28.1.1.8: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 28.1.1.8: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 28.1.1.8: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 28.1.1.8: bytes=56 Sequence=5 ttl=255 time=60 ms
--- 28.1.1.8 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/34/60 ms
[R2]ping 23.1.1.3
PING 23.1.1.3: 56 data bytes, press CTRL_C to break
Reply from 23.1.1.3: bytes=56 Sequence=1 ttl=255 time=60 ms
Reply from 23.1.1.3: bytes=56 Sequence=2 ttl=255 time=40 ms
Reply from 23.1.1.3: bytes=56 Sequence=3 ttl=255 time=70 ms
Reply from 23.1.1.3: bytes=56 Sequence=4 ttl=255 time=60 ms
Reply from 23.1.1.3: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 23.1.1.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/52/70 ms
[R2]
[R2]bgp 100
[R2-bgp]ro
[R2-bgp]router-id 2.2.2.2
[R2-bgp]rou
[R2-bgp]peer 1.1.1.1 as
[R2-bgp]peer 1.1.1.1 as-n
[R2-bgp]peer 1.1.1.1 as-number 100
[R2-bgp]peer 1.1.1.1 con
[R2-bgp]peer 1.1.1.1 connect-interface l
[R2-bgp]peer 1.1.1.1 connect-interface LoopBack 0
[R2-bgp]peer 1.1.1.1 ne
[R2-bgp]peer 1.1.1.1 next-hop-l
[R2-bgp]peer 1.1.1.1 next-hop-local
[R2-bgp]peer 8.8.8.8 as
[R2-bgp]peer 8.8.8.8 as-
[R2-bgp]peer 8.8.8.8 as-n
[R2-bgp]peer 8.8.8.8 as-number 300
[R2-bgp]peer 8.8.8.8 as
[R2-bgp]peer 8.8.8.8 con
[R2-bgp]peer 8.8.8.8 connect-interface l
[R2-bgp]peer 8.8.8.8 connect-interface LoopBack 0
[R2-bgp]peer 8.8.8.8 eb
[R2-bgp]peer 8.8.8.8 ebgp-max-hop 255
[R2-bgp]peer 3.3.3.3 as
[R2-bgp]peer 3.3.3.3 as-n
[R2-bgp]peer 3.3.3.3 as-number 200
[R2-bgp]peer c
[R2-bgp]peer 3.3.3.3 c
[R2-bgp]peer 3.3.3.3 con
[R2-bgp]peer 3.3.3.3 connect-interface loo 0
[R2-bgp]peer 3.3.3.3 eb
[R2-bgp]peer 3.3.3.3 ebgp-max-hop 255
[R2-bgp]net
[R2-bgp]network 2.2.2.2 32
[R2-bgp]ne
[R2-bgp]network 12.1.1.0 24
[R2-bgp]ne
[R2-bgp]network 23.1.1.0 24
[R2-bgp]ne
[R2-bgp]network 3.3.3.3 32
[R2-bgp]ne
[R2-bgp]network 8.8.8.8 32
[R2-bgp]disp bgp peer
BGP local router ID : 2.2.2.2
Local AS number : 100
Total number of peers : 3 Peers in established state : 3
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
1.1.1.1 4 100 40 57 0 00:35:21 Established
3
3.3.3.3 4 200 52 54 0 00:30:38 Established
15
8.8.8.8 4 300 34 35 0 00:11:33 Established
15
[R2-bgp]disp bgp routing-table
BGP Local router ID is 2.2.2.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: 39
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.1/32 0.0.0.0 1 0 i
i 1.1.1.1 0 100 0 i
*> 2.2.2.2/32 0.0.0.0 0 0 i
* i 1.1.1.1 1 100 0 i
* 8.8.8.8 0 0 300i
* 3.3.3.3 0 200 300i
*> 3.3.3.3/32 0.0.0.0 0 0 i
* 8.8.8.8 0 300i
3.3.3.3 0 0 200i
*> 4.4.4.4/32 3.3.3.3 1 0 200i
* 8.8.8.8 0 300 200i
*> 5.5.5.5/32 3.3.3.3 0 0 200i
* 8.8.8.8 0 300i
*> 6.6.6.6/32 3.3.3.3 0 0 200i
* 8.8.8.8 2 0 300i
*> 7.7.7.7/32 8.8.8.8 1 0 300i
* 3.3.3.3 0 200 300i
*> 8.8.8.8/32 0.0.0.0 0 0 i
8.8.8.8 0 0 300i
*> 12.1.1.0/24 0.0.0.0 0 0 i
* i 1.1.1.1 0 100 0 i
*> 23.1.1.0/24 0.0.0.0 0 0 i
* 3.3.3.3 0 0 200i
*> 28.1.1.0/24 8.8.8.8 0 0 300i
* 3.3.3.3 0 200 300i
*> 34.1.1.0/24 3.3.3.3 0 0 200i
* 8.8.8.8 0 300 200i
*> 35.1.1.0/24 3.3.3.3 0 0 200i
* 8.8.8.8 0 300 200i
*> 36.1.1.0/24 3.3.3.3 0 0 200i
* 8.8.8.8 0 300i
*> 45.1.1.0/24 3.3.3.3 0 200i
* 8.8.8.8 0 300 200i
*> 56.1.1.0/24 8.8.8.8 0 300i
* 3.3.3.3 0 200 400i
*> 67.1.1.0/24 8.8.8.8 0 300i
* 3.3.3.3 0 200 300i
*> 78.1.1.0/24 8.8.8.8 0 0 300i
* 3.3.3.3 0 200 300i
[R2-bgp]
[R2-bgp]disp co
[R2-bgp]disp cu
[R2-bgp]disp current-configuration
#
sysname R2
#
router id 2.2.2.2
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw#
local-user admin service-type http
#
firewall zone Local
priority 16
#
interface Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Serial0/0/0
link-protocol ppp
#
interface Serial0/0/1
link-protocol ppp
#
interface Serial0/0/2
link-protocol ppp
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
ip address 12.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 28.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 23.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
bgp 100
router-id 2.2.2.2
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface LoopBack0
peer 3.3.3.3 as-number 200
peer 3.3.3.3 ebgp-max-hop 255
peer 3.3.3.3 connect-interface LoopBack0
peer 8.8.8.8 as-number 300
peer 8.8.8.8 ebgp-max-hop 255
peer 8.8.8.8 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
network 2.2.2.2 255.255.255.255
network 3.3.3.3 255.255.255.255
network 8.8.8.8 255.255.255.255
network 12.1.1.0 255.255.255.0
network 23.1.1.0 255.255.255.0
peer 1.1.1.1 enable
peer 1.1.1.1 next-hop-local
peer 3.3.3.3 enable
peer 8.8.8.8 enable
#
ospf 100 router-id 2.2.2.2
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 12.1.1.0 0.0.0.255
#
ip route-static 3.3.3.3 255.255.255.255 23.1.1.3
ip route-static 8.8.8.8 255.255.255.255 28.1.1.8
#
user-interface con 0
idle-timeout 0 0
user-interface vty 0 4
user-interface vty 16 20
#
return
[R2-bgp]net
[R2-bgp]network 1.1.1.1 32
[R2-bgp]
[R2-bgp]q
[R2]rou
[R2]route-p
[R2]route-policy as pe
[R2]route-policy as permit n
[R2]route-policy as permit node 10
Info: New Sequence of this List.
[R2-route-policy]app
[R2-route-policy]apply as-m
[R2-route-policy]apply as-p
[R2-route-policy]apply as-path 222 333 444 a
[R2-route-policy]apply as-path 222 333 444 additive
[R2-route-policy]q
[R2]beg
^
Error: Unrecognized command found at '^' position.
[R2]bgp 100
[R2-bgp]peer 8.8.8.8 ro
[R2-bgp]peer 8.8.8.8 route-p
[R2-bgp]peer 8.8.8.8 route-policy as
[R2-bgp]peer 8.8.8.8 route-policy as e
[R2-bgp]peer 8.8.8.8 route-policy as export
[R2-bgp]q
[R2]q
reset bgp all
disp bgp ro
disp bgp routing-table
BGP Local router ID is 2.2.2.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: 6
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.1/32 0.0.0.0 1 0 i
*> 2.2.2.2/32 0.0.0.0 0 0 i
*> 3.3.3.3/32 0.0.0.0 0 0 i
*> 8.8.8.8/32 0.0.0.0 0 0 i
*> 12.1.1.0/24 0.0.0.0 0 0 i
*> 23.1.1.0/24 0.0.0.0 0 0 i
disp bgp routing-table
BGP Local router ID is 2.2.2.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: 6
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.1/32 0.0.0.0 1 0 i
*> 2.2.2.2/32 0.0.0.0 0 0 i
*> 3.3.3.3/32 0.0.0.0 0 0 i
*> 8.8.8.8/32 0.0.0.0 0 0 i
*> 12.1.1.0/24 0.0.0.0 0 0 i
*> 23.1.1.0/24 0.0.0.0 0 0 i
disp bgp routing-table
BGP Local router ID is 2.2.2.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: 39
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.1/32 0.0.0.0 1 0 i
i 1.1.1.1 0 100 0 i
*> 2.2.2.2/32 0.0.0.0 0 0 i
* i 1.1.1.1 1 100 0 i
* 8.8.8.8 0 0 300i
* 3.3.3.3 0 200 300i
*> 3.3.3.3/32 0.0.0.0 0 0 i
* 8.8.8.8 0 300i
3.3.3.3 0 0 200i
*> 4.4.4.4/32 3.3.3.3 1 0 200i
* 8.8.8.8 0 300 200i
*> 5.5.5.5/32 3.3.3.3 0 0 200i
* 8.8.8.8 0 300i
*> 6.6.6.6/32 3.3.3.3 0 0 200i
* 8.8.8.8 2 0 300i
*> 7.7.7.7/32 8.8.8.8 1 0 300i
* 3.3.3.3 0 200 300i
*> 8.8.8.8/32 0.0.0.0 0 0 i
8.8.8.8 0 0 300i
*> 12.1.1.0/24 0.0.0.0 0 0 i
* i 1.1.1.1 0 100 0 i
*> 23.1.1.0/24 0.0.0.0 0 0 i
* 3.3.3.3 0 0 200i
* 8.8.8.8 0 300 200i
*> 28.1.1.0/24 8.8.8.8 0 0 300i
*> 34.1.1.0/24 3.3.3.3 0 0 200i
* 8.8.8.8 0 300 200i
*> 35.1.1.0/24 3.3.3.3 0 0 200i
* 8.8.8.8 0 300 200i
*> 36.1.1.0/24 3.3.3.3 0 0 200i
* 8.8.8.8 0 300i
*> 45.1.1.0/24 3.3.3.3 0 200i
* 8.8.8.8 0 300 200i
*> 56.1.1.0/24 8.8.8.8 0 300i
* 3.3.3.3 0 200 400i
*> 67.1.1.0/24 8.8.8.8 0 300i
* 3.3.3.3 0 200 300i
*> 78.1.1.0/24 8.8.8.8 0 0 300i
* 3.3.3.3 0 200 300i
R3:
The device is running!
un t m
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn R3
[R3]user-in con 0
[R3-ui-console0]i
[R3-ui-console0]idle-timeout 0 0
[R3-ui-console0]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 23.1.1.3 24
[R3-GigabitEthernet0/0/0]un shut
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 35.1.1.3 24
[R3-GigabitEthernet0/0/1]un shut
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[R3-GigabitEthernet0/0/1]int g0/0/2
[R3-GigabitEthernet0/0/2]ip add 34.1.1.3 24
[R3-GigabitEthernet0/0/2]un shut
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[R3-GigabitEthernet0/0/2]int g0/0/3
[R3-GigabitEthernet0/0/3]ip add 36.1.1.3 24
[R3-GigabitEthernet0/0/3]int loop 0
[R3-LoopBack0]ip add 3.3.3.3 32
[R3-LoopBack0]q
[R3]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=50 ms
Reply from 23.1.1.2: bytes=56 Sequence=2 ttl=255 time=10 ms
Reply from 23.1.1.2: bytes=56 Sequence=3 ttl=255 time=60 ms
Reply from 23.1.1.2: bytes=56 Sequence=4 ttl=255 time=30 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 = 10/36/60 ms
[R3]ping 36.1.1.6
PING 36.1.1.6: 56 data bytes, press CTRL_C to break
Reply from 36.1.1.6: bytes=56 Sequence=1 ttl=255 time=80 ms
Reply from 36.1.1.6: bytes=56 Sequence=2 ttl=255 time=40 ms
Reply from 36.1.1.6: bytes=56 Sequence=3 ttl=255 time=50 ms
Reply from 36.1.1.6: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 36.1.1.6: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 36.1.1.6 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/46/80 ms
[R3]ping 35.1.1.5
PING 35.1.1.5: 56 data bytes, press CTRL_C to break
Reply from 35.1.1.5: bytes=56 Sequence=1 ttl=255 time=90 ms
Reply from 35.1.1.5: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 35.1.1.5: bytes=56 Sequence=3 ttl=255 time=70 ms
Reply from 35.1.1.5: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 35.1.1.5: bytes=56 Sequence=5 ttl=255 time=40 ms
--- 35.1.1.5 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/52/90 ms
[R3]ping 34.1.1.4
PING 34.1.1.4: 56 data bytes, press CTRL_C to break
Reply from 34.1.1.4: bytes=56 Sequence=1 ttl=255 time=60 ms
Reply from 34.1.1.4: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 34.1.1.4: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 34.1.1.4: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 34.1.1.4: bytes=56 Sequence=5 ttl=255 time=10 ms
--- 34.1.1.4 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/32/60 ms
[R3]ospf 200 r
[R3]ospf 200 router-id 3.3.3.3
[R3-ospf-200]area 0
[R3-ospf-200-area-0.0.0.0]ne
[R3-ospf-200-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-200-area-0.0.0.0]ne
[R3-ospf-200-area-0.0.0.0]network 34.1.1.0 0.0.0.255
[R3-ospf-200-area-0.0.0.0]q
[R3-ospf-200]q
[R3]ip rou
[R3]ip route
[R3]ip route-static 2.2.2.2 32 23.1.1.2
[R3]ip rou
[R3]ip route
[R3]ip route-static 6.6.6.6 32 36.1.1.6
[R3]ip rou
[R3]ip route
[R3]ip route-static 5.5.5.5 32 35.1.1.5
[R3]disp ospf peer
OSPF Process 200 with Router ID 3.3.3.3
Neighbors
Area 0.0.0.0 interface 34.1.1.3(GigabitEthernet0/0/2)'s neighbors
Router ID: 4.4.4.4 Address: 34.1.1.4
State: Full Mode:Nbr is Master Priority: 1
DR: 34.1.1.3 BDR: 34.1.1.4 MTU: 0
Dead timer due in 39 sec
Retrans timer interval: 5
Neighbor is up for 00:14:35
Authentication Sequence: [ 0 ]
[R3]bgp 200
[R3-bgp]r
[R3-bgp]rou
[R3-bgp]router-id 3.3.3.3
[R3-bgp]peer 2.2.2.2 as-nu
[R3-bgp]peer 2.2.2.2 as-number 100
[R3-bgp]peer 2.2.2.2 con
[R3-bgp]peer 2.2.2.2 connect-interface loop 0
[R3-bgp]peer 2.2.2.2 ne
[R3-bgp]peer 2.2.2.2 eb
[R3-bgp]peer 2.2.2.2 ebgp-max-hop 255
[R3-bgp]peer 4.4.4.4 as
[R3-bgp]peer 4.4.4.4 as-n
[R3-bgp]peer 4.4.4.4 as-number 200
[R3-bgp]peer 4.4.4.4 con
[R3-bgp]peer 4.4.4.4 connect-interface loop 0
[R3-bgp]peer 4.4.4.4 ne
[R3-bgp]peer 4.4.4.4 next-hop-l
[R3-bgp]peer 4.4.4.4 next-hop-local
[R3-bgp]peer 5.5.5.5 as
[R3-bgp]peer 5.5.5.5 as-n
[R3-bgp]peer 5.5.5.5 as-number 400
[R3-bgp]peer 5.5.5.5 con
[R3-bgp]peer 5.5.5.5 connect-interface loop 0
[R3-bgp]peer 5.5.5.5 eb
[R3-bgp]peer 5.5.5.5 ebgp-max-hop
[R3-bgp]peer 6.6.6.6 as
[R3-bgp]peer 6.6.6.6 as-nu
[R3-bgp]peer 6.6.6.6 as-number 300
[R3-bgp]peer con
[R3-bgp]peer con
[R3-bgp]peer 6.6.6.6 con
[R3-bgp]peer 6.6.6.6 connect-interface loop 0
[R3-bgp]peer 6.6.6.6 eb
[R3-bgp]peer 6.6.6.6 ebgp-max-hop
[R3-bgp]peer 6.6.6.6 ebgp-max-hop 255
[R3-bgp]peer 5.5.5.5 ebgp-max-hop 255
[R3-bgp]net
[R3-bgp]network 3.3.3.3 32
[R3-bgp]ne
[R3-bgp]network 23.1.1.0 24
[R3-bgp]ne
[R3-bgp]network 34.1.1.0 24
[R3-bgp]ne
[R3-bgp]network 35.1.1.0 24
[R3-bgp]ne
[R3-bgp]network 36.1.1.0 24
[R3-bgp]ne
[R3-bgp]network 4.4.4.4 32
[R3-bgp]ne
[R3-bgp]network 5.5.5.5 32
[R3-bgp]ne
[R3-bgp]network 6.6.6.6 32
[R3-bgp]disp bgp peer
BGP local router ID : 3.3.3.3
Local AS number : 200
Total number of peers : 4 Peers in established state : 4
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
2.2.2.2 4 100 52 52 0 00:30:41 Established
10
4.4.4.4 4 200 43 51 0 00:27:00 Established
6
5.5.5.5 4 400 46 42 0 00:18:23 Established
12
6.6.6.6 4 300 44 40 0 00:16:35 Established
11
[R3-bgp]disp 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: 49
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.1/32 2.2.2.2 1 0 100i
* 6.6.6.6 0 300 100i
*> 2.2.2.2/32 6.6.6.6 0 300i
* 5.5.5.5 0 400 300i
2.2.2.2 0 0 100i
*> 3.3.3.3/32 0.0.0.0 0 0 i
* i 4.4.4.4 1 100 0 i
* 2.2.2.2 0 0 100i
* 5.5.5.5 0 0 400i
* 6.6.6.6 0 0 300i
*> 4.4.4.4/32 0.0.0.0 1 0 i
* 5.5.5.5 0 0 400i
i 4.4.4.4 0 100 0 i
*> 5.5.5.5/32 0.0.0.0 0 0 i
* i 4.4.4.4 0 100 0 i
* 6.6.6.6 0 0 300i
5.5.5.5 0 0 400i
*> 6.6.6.6/32 0.0.0.0 0 0 i
* 5.5.5.5 0 0 400i
6.6.6.6 0 0 300i
*> 7.7.7.7/32 6.6.6.6 1 0 300i
* 2.2.2.2 0 100 300i
* 5.5.5.5 0 400 300i
*> 8.8.8.8/32 2.2.2.2 0 0 100i
*> 12.1.1.0/24 2.2.2.2 0 0 100i
* 6.6.6.6 0 300 100i
*> 23.1.1.0/24 0.0.0.0 0 0 i
* 2.2.2.2 0 0 100i
*> 28.1.1.0/24 6.6.6.6 0 300i
* 2.2.2.2 0 100 300i
* 5.5.5.5 0 400 300i
*> 34.1.1.0/24 0.0.0.0 0 0 i
* i 4.4.4.4 0 100 0 i
*> 35.1.1.0/24 0.0.0.0 0 0 i
* 5.5.5.5 0 0 400i
*> 36.1.1.0/24 0.0.0.0 0 0 i
* 6.6.6.6 0 0 300i
*>i 45.1.1.0/24 4.4.4.4 0 100 0 i
* 5.5.5.5 0 0 400i
*> 56.1.1.0/24 5.5.5.5 0 0 400i
* 6.6.6.6 0 0 300i
* i 4.4.4.4 0 100 0 400i
* 2.2.2.2 0 100 300i
*> 67.1.1.0/24 6.6.6.6 0 0 300i
* 2.2.2.2 0 100 300i
* 5.5.5.5 0 400 300i
*> 78.1.1.0/24 6.6.6.6 0 300i
* 2.2.2.2 0 100 300i
* 5.5.5.5 0 400 300i
[R3-bgp]
[R3]rou
[R3]route-p
[R3]route-policy as
[R3]route-policy asp
[R3]route-policy as p
[R3]route-policy as permit node 30
Info: New Sequence of this List.
[R3-route-policy]app
[R3-route-policy]apply as-path 444 555 666 a
[R3-route-policy]apply as-path 444 555 666 additive
[R3-route-policy]q
[R3]bgp 200
[R3-bgp]peer 2.2.2.2 rou
[R3-bgp]peer 2.2.2.2 route-p
[R3-bgp]peer 2.2.2.2 route-policy as e
[R3-bgp]peer 2.2.2.2 route-policy as export
[R3-bgp]ret
reset bgp all
disp bgp ro
disp 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: 8
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 3.3.3.3/32 0.0.0.0 0 0 i
*> 4.4.4.4/32 0.0.0.0 1 0 i
*> 5.5.5.5/32 0.0.0.0 0 0 i
*> 6.6.6.6/32 0.0.0.0 0 0 i
*> 23.1.1.0/24 0.0.0.0 0 0 i
*> 34.1.1.0/24 0.0.0.0 0 0 i
*> 35.1.1.0/24 0.0.0.0 0 0 i
*> 36.1.1.0/24 0.0.0.0 0 0 i
disp 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: 8
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 3.3.3.3/32 0.0.0.0 0 0 i
*> 4.4.4.4/32 0.0.0.0 1 0 i
*> 5.5.5.5/32 0.0.0.0 0 0 i
*> 6.6.6.6/32 0.0.0.0 0 0 i
*> 23.1.1.0/24 0.0.0.0 0 0 i
*> 34.1.1.0/24 0.0.0.0 0 0 i
*> 35.1.1.0/24 0.0.0.0 0 0 i
*> 36.1.1.0/24 0.0.0.0 0 0 i
disp 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: 8
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 3.3.3.3/32 0.0.0.0 0 0 i
*> 4.4.4.4/32 0.0.0.0 1 0 i
*> 5.5.5.5/32 0.0.0.0 0 0 i
*> 6.6.6.6/32 0.0.0.0 0 0 i
*> 23.1.1.0/24 0.0.0.0 0 0 i
*> 34.1.1.0/24 0.0.0.0 0 0 i
*> 35.1.1.0/24 0.0.0.0 0 0 i
*> 36.1.1.0/24 0.0.0.0 0 0 i
disp 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: 51
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.1/32 2.2.2.2 1 0 100 222 33
3 444i
*> 2.2.2.2/32 6.6.6.6 0 300i
* 5.5.5.5 0 400 300i
2.2.2.2 0 0 100 222 33
3 444i
*> 3.3.3.3/32 0.0.0.0 0 0 i
* i 4.4.4.4 1 100 0 i
* 5.5.5.5 0 0 400i
* 6.6.6.6 0 0 300i
* 2.2.2.2 0 0 100 222 33
3 444i
*> 4.4.4.4/32 0.0.0.0 1 0 i
* 5.5.5.5 0 0 400i
i 4.4.4.4 0 100 0 i
*> 5.5.5.5/32 0.0.0.0 0 0 i
* i 4.4.4.4 0 100 0 i
* 6.6.6.6 0 0 300i
* 2.2.2.2 0 100 222 33
3 444 300i
5.5.5.5 0 0 400i
*> 6.6.6.6/32 0.0.0.0 0 0 i
* 5.5.5.5 0 0 400i
* 2.2.2.2 0 100 222 33
3 444 300i
6.6.6.6 0 0 300i
*> 7.7.7.7/32 6.6.6.6 1 0 300i
* 5.5.5.5 0 400 300i
* 2.2.2.2 0 100 222 33
3 444 300i
*> 8.8.8.8/32 2.2.2.2 0 0 100 222 33
3 444i
*> 12.1.1.0/24 2.2.2.2 0 0 100 222 33
3 444i
* 6.6.6.6 0 300 100 22
2 333 444i
*> 23.1.1.0/24 0.0.0.0 0 0 i
* 2.2.2.2 0 0 100 222 33
3 444i
*> 28.1.1.0/24 6.6.6.6 0 300i
* 5.5.5.5 0 400 300i
* 2.2.2.2 0 100 222 33
3 444 300i
*> 34.1.1.0/24 0.0.0.0 0 0 i
* i 4.4.4.4 0 100 0 i
*> 35.1.1.0/24 0.0.0.0 0 0 i
* 5.5.5.5 0 0 400i
*> 36.1.1.0/24 0.0.0.0 0 0 i
* 6.6.6.6 0 0 300i
* 2.2.2.2 0 100 222 33
3 444 300i
*>i 45.1.1.0/24 4.4.4.4 0 100 0 i
* 5.5.5.5 0 0 400i
*> 56.1.1.0/24 5.5.5.5 0 0 400i
* 6.6.6.6 0 0 300i
* i 4.4.4.4 0 100 0 400i
* 2.2.2.2 0 100 222 33
3 444 300i
*> 67.1.1.0/24 6.6.6.6 0 0 300i
* 5.5.5.5 0 400 300i
* 2.2.2.2 0 100 222 33
3 444 300i
*> 78.1.1.0/24 6.6.6.6 0 300i
* 5.5.5.5 0 400 300i
* 2.2.2.2 0 100 222 33
3 444 300i
sys
Enter system view, return user view with Ctrl+Z.
[R3]rou
[R3]route-p
[R3]route-policy as pe
[R3]route-policy as permit n
[R3]route-policy as permit node 40
Info: New Sequence of this List.
[R3-route-policy]app as-p
[R3-route-policy]app as-path 555 666 777
^
Error:Incomplete command found at '^' position.
[R3-route-policy]app as-path 555 666 777 a
[R3-route-policy]app as-path 555 666 777 additive
[R3-route-policy]q
[R3]bgp 200
[R3-bgp]peer 6.6.6.6 ro
[R3-bgp]peer 6.6.6.6 route-p
[R3-bgp]peer 6.6.6.6 route-policy a
[R3-bgp]peer 6.6.6.6 route-policy as e
[R3-bgp]peer 6.6.6.6 route-policy as export
[R3-bgp]ret
reset bgp all
R4:
The device is running!
un t m
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn R4
[R4]USER-IN
[R4]user-interface CON 0
[R4-ui-console0]ID
[R4-ui-console0]idle-timeout 0 0
[R4-ui-console0]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 34.1.1.4 24
[R4-GigabitEthernet0/0/0]un shut
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R4-GigabitEthernet0/0/0]int g0/0/1
[R4-GigabitEthernet0/0/1]ip add 45.1.1.4 24
[R4-GigabitEthernet0/0/1]un shut
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[R4-GigabitEthernet0/0/1]int loop 0
[R4-LoopBack0]ip add 4.4.4.4 32
[R4-LoopBack0]
[R4-LoopBack0]q
[R4]ping 45.1.1.5
PING 45.1.1.5: 56 data bytes, press CTRL_C to break
Reply from 45.1.1.5: bytes=56 Sequence=1 ttl=255 time=60 ms
Reply from 45.1.1.5: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 45.1.1.5: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 45.1.1.5: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 45.1.1.5: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 45.1.1.5 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/36/60 ms
[R4]
[R4]ospf 200 r
[R4]ospf 200 router-id 4.4.4.4
[R4-ospf-200]area 0
[R4-ospf-200-area-0.0.0.0]ne
[R4-ospf-200-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[R4-ospf-200-area-0.0.0.0]ne
[R4-ospf-200-area-0.0.0.0]network 34.1.1.0 0.0.0.255
[R4-ospf-200-area-0.0.0.0]q
[R4-ospf-200]q
[R4]ip r
[R4]ip rou
[R4]ip route
[R4]ip route-static 5.5.5.5 32 45.1.1.5
[R4]disp ospf peer
OSPF Process 200 with Router ID 4.4.4.4
Neighbors
Area 0.0.0.0 interface 34.1.1.4(GigabitEthernet0/0/0)'s neighbors
Router ID: 3.3.3.3 Address: 34.1.1.3
State: Full Mode:Nbr is Slave Priority: 1
DR: 34.1.1.3 BDR: 34.1.1.4 MTU: 0
Dead timer due in 35 sec
Retrans timer interval: 5
Neighbor is up for 00:14:39
Authentication Sequence: [ 0 ]
[R4]bgp 200
[R4-bgp]r
[R4-bgp]rou
[R4-bgp]router-id 4.4.4.4
[R4-bgp]peer 3.3.3.3 as-num 200
[R4-bgp]peer 3.3.3.3 con-in loop 0
^
Error: Unrecognized command found at '^' position.
[R4-bgp]peer 3.3.3.3 con
[R4-bgp]peer 3.3.3.3 connect-interface loop 0
[R4-bgp]peer 3.3.3.3 ne
[R4-bgp]peer 3.3.3.3 next-hop-l
[R4-bgp]peer 3.3.3.3 next-hop-local
[R4-bgp]peer 5.5.5.5 as-num 400
[R4-bgp]peer con
[R4-bgp]peer con
[R4-bgp]peer 5.5.5.5 con
[R4-bgp]peer 5.5.5.5 connect-interface loop 0
[R4-bgp]peer 5.5.5.5 eb
[R4-bgp]peer 5.5.5.5 ebgp-max-hop 255
[R4-bgp]net
[R4-bgp]network 3.3.3.3 32
[R4-bgp]ne
[R4-bgp]network 34.1.1.1 24
[R4-bgp]ne
[R4-bgp]network 4.4.4.4 32
[R4-bgp]ne
[R4-bgp]network 45.1.1.0 24
[R4-bgp]ne
[R4-bgp]network 5.5.5.5 32
[R4-bgp]un network 34.1.1.1 24
[R4-bgp]ne
[R4-bgp]network 34.1.1.0 24
[R4-bgp]disp bgp peer
BGP local router ID : 4.4.4.4
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
3.3.3.3 4 200 49 44 0 00:27:45 Established
16
5.5.5.5 4 400 47 47 0 00:19:38 Established
12
[R4-bgp]disp 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: 34
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 1.1.1.1/32 3.3.3.3 1 100 0 100i
*>i 2.2.2.2/32 3.3.3.3 100 0 300i
* 5.5.5.5 0 400 300i
*> 3.3.3.3/32 0.0.0.0 1 0 i
* 5.5.5.5 0 0 400i
i 3.3.3.3 0 100 0 i
*> 4.4.4.4/32 0.0.0.0 0 0 i
* i 3.3.3.3 1 100 0 i
* 5.5.5.5 0 0 400i
*> 5.5.5.5/32 0.0.0.0 0 0 i
* i 3.3.3.3 0 100 0 i
5.5.5.5 0 0 400i
*>i 6.6.6.6/32 3.3.3.3 0 100 0 i
* 5.5.5.5 0 0 400i
*>i 7.7.7.7/32 3.3.3.3 1 100 0 300i
* 5.5.5.5 0 400 300i
*>i 8.8.8.8/32 3.3.3.3 0 100 0 100i
*>i 12.1.1.0/24 3.3.3.3 0 100 0 100i
*>i 23.1.1.0/24 3.3.3.3 0 100 0 i
*>i 28.1.1.0/24 3.3.3.3 100 0 300i
* 5.5.5.5 0 400 300i
*> 34.1.1.0/24 0.0.0.0 0 0 i
* i 3.3.3.3 0 100 0 i
*>i 35.1.1.0/24 3.3.3.3 0 100 0 i
* 5.5.5.5 0 0 400i
*>i 36.1.1.0/24 3.3.3.3 0 100 0 i
*> 45.1.1.0/24 0.0.0.0 0 0 i
* 5.5.5.5 0 0 400i
*> 56.1.1.0/24 5.5.5.5 0 0 400i
* i 3.3.3.3 0 100 0 400i
*>i 67.1.1.0/24 3.3.3.3 0 100 0 300i
* 5.5.5.5 0 400 300i
*>i 78.1.1.0/24 3.3.3.3 100 0 300i
* 5.5.5.5 0 400 300i
[R4-bgp]
R5:
The device is running!
un t m
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn R5
[R5]user-in con 0
[R5-ui-console0]id
[R5-ui-console0]idle-timeout 0 0
[R5-ui-console0]q
[R5]
[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip add 56.1.1.5 24
[R5-GigabitEthernet0/0/0]un shut
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R5-GigabitEthernet0/0/0]int g0/0/1
[R5-GigabitEthernet0/0/1]ip add 35.1.1.5 24
[R5-GigabitEthernet0/0/1]un shut
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[R5-GigabitEthernet0/0/1]int g0/0/2
[R5-GigabitEthernet0/0/2]ip add 45.1.1.5 24
[R5-GigabitEthernet0/0/2]un shut
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[R5-GigabitEthernet0/0/2]int loop 0
[R5-LoopBack0]ip add 5.5.5.5 32
[R5-LoopBack0]
[R5]ospf 400 r
[R5]ip rou
[R5]ip route
[R5]ip route-static 4.4.4.4 45.1.1.4
^
Error:Incomplete command found at '^' position.
[R5]ip route-static 4.4.4.4 32 45.1.1.4
[R5]op rou
[R5]op rou
[R5]ip
[R5]ip rou
[R5]ip route
[R5]ip route-static 3.3.3.3 32 35.1.1.3
[R5]ip rou
[R5]ip route
[R5]ip route-static 6.6.6.6 32 56.1.1.6
[R5]bgp 400
[R5-bgp]rou
[R5-bgp]router-id 5.5.5.5
[R5-bgp]peer 4.4.4.4 as-num 200
[R5-bgp]peer 4.4.4.4 con
[R5-bgp]peer 4.4.4.4 connect-interface loop 0
[R5-bgp]peer 4.4.4.4 net
[R5-bgp]peer 4.4.4.4 eb
[R5-bgp]peer 4.4.4.4 ebgp-max-hop 255
[R5-bgp]peer 3.3.3.3 as-nu
[R5-bgp]peer 3.3.3.3 as-number 200
[R5-bgp]peer 3.3.3.3 con
[R5-bgp]peer 3.3.3.3 connect-interface loop 0
[R5-bgp]peer 3.3.3.3 eb
[R5-bgp]peer 3.3.3.3 ebgp-max-hop 255
[R5-bgp]peer 6.6.6.6 as-num 300
[R5-bgp]peer 6.6.6.6 con
[R5-bgp]peer 6.6.6.6 connect-interface loop 0
[R5-bgp]peer 6.6.6.6 eb
[R5-bgp]peer 6.6.6.6 ebgp-max-hop
[R5-bgp]peer 6.6.6.6 ebgp-max-hop 255
[R5-bgp]net
[R5-bgp]network 4.4.4.4 32
[R5-bgp]ne
[R5-bgp]network 3.3.3.3 32
[R5-bgp]ne
[R5-bgp]network 5.5.5.5 32
[R5-bgp]ne
[R5-bgp]network 6.6.6.6 32
[R5-bgp]ne
[R5-bgp]network 45.1.1.0 24
[R5-bgp]ne
[R5-bgp]network 35.1.1.0 24
[R5-bgp]ne
[R5-bgp]network 56.1.1.0 24
[R5-bgp]disp bgp peer
BGP local router ID : 5.5.5.5
Local AS number : 400
Total number of peers : 3 Peers in established state : 3
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
3.3.3.3 4 200 41 47 0 00:19:16 Established
16
4.4.4.4 4 200 45 47 0 00:19:46 Established
16
6.6.6.6 4 300 44 46 0 00:16:48 Established
17
[R5-bgp]disp 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: 59
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.1/32 3.3.3.3 0 200 100i
* 4.4.4.4 0 200 100i
* 6.6.6.6 0 300 100i
*> 2.2.2.2/32 6.6.6.6 0 300i
* 3.3.3.3 0 200 300i
* 4.4.4.4 0 200 300i
*> 3.3.3.3/32 0.0.0.0 0 0 i
* 4.4.4.4 1 0 200i
* 6.6.6.6 0 0 300i
3.3.3.3 0 0 200i
*> 4.4.4.4/32 0.0.0.0 0 0 i
* 3.3.3.3 1 0 200i
* 6.6.6.6 0 300 200i
4.4.4.4 0 0 200i
*> 5.5.5.5/32 0.0.0.0 0 0 i
* 3.3.3.3 0 0 200i
* 4.4.4.4 0 0 200i
* 6.6.6.6 0 0 300i
*> 6.6.6.6/32 0.0.0.0 0 0 i
* 3.3.3.3 0 0 200i
* 4.4.4.4 0 200i
6.6.6.6 0 0 300i
*> 7.7.7.7/32 6.6.6.6 1 0 300i
* 3.3.3.3 0 200 300i
* 4.4.4.4 0 200 300i
*> 8.8.8.8/32 3.3.3.3 0 200 100i
* 4.4.4.4 0 200 100i
* 6.6.6.6 0 300 200 10
0i
*> 12.1.1.0/24 3.3.3.3 0 200 100i
* 4.4.4.4 0 200 100i
* 6.6.6.6 0 300 100i
*> 23.1.1.0/24 3.3.3.3 0 0 200i
* 4.4.4.4 0 200i
* 6.6.6.6 0 300 200i
*> 28.1.1.0/24 6.6.6.6 0 300i
* 3.3.3.3 0 200 300i
* 4.4.4.4 0 200 300i
*> 34.1.1.0/24 3.3.3.3 0 0 200i
* 4.4.4.4 0 0 200i
* 6.6.6.6 0 300 200i
*> 35.1.1.0/24 0.0.0.0 0 0 i
* 3.3.3.3 0 0 200i
* 4.4.4.4 0 200i
* 6.6.6.6 0 300 200i
*> 36.1.1.0/24 3.3.3.3 0 0 200i
* 4.4.4.4 0 200i
* 6.6.6.6 0 0 300i
*> 45.1.1.0/24 0.0.0.0 0 0 i
* 3.3.3.3 0 200i
* 4.4.4.4 0 0 200i
* 6.6.6.6 0 300 200i
*> 56.1.1.0/24 0.0.0.0 0 0 i
* 6.6.6.6 0 0 300i
*> 67.1.1.0/24 6.6.6.6 0 0 300i
* 3.3.3.3 0 200 300i
* 4.4.4.4 0 200 300i
*> 78.1.1.0/24 6.6.6.6 0 300i
* 3.3.3.3 0 200 300i
* 4.4.4.4 0 200 300i
[R5-bgp]
R6:
The device is running!
un t m
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn R6
[R6]user-in con 0
[R6-ui-console0]id
[R6-ui-console0]idle-timeout 0 0
[R6-ui-console0]q
[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 67.1.1.6 24
[R6-GigabitEthernet0/0/0]un shut
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R6-GigabitEthernet0/0/0]int g0/0/1
[R6-GigabitEthernet0/0/1]ip add 56.1.1.6 24
[R6-GigabitEthernet0/0/1]un shut
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[R6-GigabitEthernet0/0/1]int g0/0/2
[R6-GigabitEthernet0/0/2]ip add 36.1.1.6 24
[R6-GigabitEthernet0/0/2]int loop 0
[R6-LoopBack0]ip add 6.6.6.6 32
[R6-LoopBack0]q
[R6]
disp bgp routing-table
BGP Local router ID is 6.6.6.6
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 45
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 1.1.1.1/32 8.8.8.8 1 100 0 100i
* 3.3.3.3 0 200 100i
* 5.5.5.5 0 400 200 10
0i
*>i 2.2.2.2/32 8.8.8.8 0 100 0 i
*> 3.3.3.3/32 0.0.0.0 0 0 i
* 5.5.5.5 0 0 400i
3.3.3.3 0 0 200i
*> 4.4.4.4/32 3.3.3.3 1 0 200i
* 5.5.5.5 0 0 400i
*> 5.5.5.5/32 0.0.0.0 0 0 i
* 3.3.3.3 0 0 200i
5.5.5.5 0 0 400i
*> 6.6.6.6/32 0.0.0.0 0 0 i
* i 8.8.8.8 2 100 0 i
* 3.3.3.3 0 0 200i
* 5.5.5.5 0 0 400i
*> 7.7.7.7/32 0.0.0.0 1 0 i
* i 8.8.8.8 1 100 0 i
i 7.7.7.7 0 100 0 i
*> 8.8.8.8/32 3.3.3.3 0 200 100i
* 5.5.5.5 0 400 200 10
0i
i 8.8.8.8 0 100 0 i
*>i 12.1.1.0/24 8.8.8.8 0 100 0 100i
* 3.3.3.3 0 200 100i
* 5.5.5.5 0 400 200 10
0i
*> 23.1.1.0/24 3.3.3.3 0 0 200i
* i 8.8.8.8 0 100 0 100i
* 5.5.5.5 0 400 200i
*>i 28.1.1.0/24 8.8.8.8 0 100 0 i
*> 34.1.1.0/24 3.3.3.3 0 0 200i
* 5.5.5.5 0 400 200i
*> 35.1.1.0/24 3.3.3.3 0 0 200i
* 5.5.5.5 0 0 400i
*> 36.1.1.0/24 0.0.0.0 0 0 i
* 3.3.3.3 0 0 200i
* 5.5.5.5 0 400 200i
*> 45.1.1.0/24 3.3.3.3 0 200i
* 5.5.5.5 0 0 400i
*> 56.1.1.0/24 0.0.0.0 0 0 i
* 5.5.5.5 0 0 400i
* 3.3.3.3 0 200 400i
*> 67.1.1.0/24 0.0.0.0 0 0 i
* i 7.7.7.7 0 100 0 i
*>i 78.1.1.0/24 8.8.8.8 0 100 0 i
* i 7.7.7.7 0 100 0 i
tracert 4.4.4.4
traceroute to 4.4.4.4(4.4.4.4), max hops: 30 ,packet length: 40,press CTRL_C t
o break
1 56.1.1.5 60 ms 40 ms 30 ms
2 45.1.1.4 < AS=400 > 120 ms 140 ms 100 ms
R7:
The device is running!
un t m
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn R7
[R7]user-in
[R7]user-interface con 0
[R7-ui-console0]id
[R7-ui-console0]idle-timeout 0 0
[R7-ui-console0]q
[R7]int g0/0/0
[R7-GigabitEthernet0/0/0]ip add 78.1.1.7 24
[R7-GigabitEthernet0/0/0]un shut
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R7-GigabitEthernet0/0/0]int g0/0/1
[R7-GigabitEthernet0/0/1]ip add 67.1.1.7 24
[R7-GigabitEthernet0/0/1]un shut
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[R7-GigabitEthernet0/0/1]int loop 0
[R7-LoopBack0]ip add 7.7.7.7 32
[R7-LoopBack0]q
[R7]ping 78.1.1.8
PING 78.1.1.8: 56 data bytes, press CTRL_C to break
Reply from 78.1.1.8: bytes=56 Sequence=1 ttl=255 time=60 ms
Reply from 78.1.1.8: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 78.1.1.8: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 78.1.1.8: bytes=56 Sequence=4 ttl=255 time=40 ms
Reply from 78.1.1.8: bytes=56 Sequence=5 ttl=255 time=60 ms
--- 78.1.1.8 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/44/60 ms
[R7]ping 67.1.1.6
PING 67.1.1.6: 56 data bytes, press CTRL_C to break
Reply from 67.1.1.6: bytes=56 Sequence=1 ttl=255 time=70 ms
Reply from 67.1.1.6: bytes=56 Sequence=2 ttl=255 time=60 ms
Reply from 67.1.1.6: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 67.1.1.6: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 67.1.1.6: bytes=56 Sequence=5 ttl=255 time=40 ms
--- 67.1.1.6 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/46/70 ms
[R7]
[R7]ospf 300 r
[R7]ospf 300 router-id 7.7.7.7
[R7-ospf-300]ne
[R7-ospf-300]arae 0
^
Error: Unrecognized command found at '^' position.
[R7-ospf-300]net
[R7-ospf-300]area 0
[R7-ospf-300-area-0.0.0.0]ne
[R7-ospf-300-area-0.0.0.0]network 7.7.7.7 0.0.0.0
[R7-ospf-300-area-0.0.0.0]ne
[R7-ospf-300-area-0.0.0.0]network 78.1.1.0 0.0.0.255
[R7-ospf-300-area-0.0.0.0]ne
[R7-ospf-300-area-0.0.0.0]network 67.1.1.0 0.0.0.255
[R7-ospf-300-area-0.0.0.0]disp ospf peer
OSPF Process 300 with Router ID 7.7.7.7
Neighbors
Area 0.0.0.0 interface 78.1.1.7(GigabitEthernet0/0/0)'s neighbors
Router ID: 8.8.8.8 Address: 78.1.1.8
State: Full Mode:Nbr is Master Priority: 1
DR: 78.1.1.7 BDR: 78.1.1.8 MTU: 0
Dead timer due in 37 sec
Retrans timer interval: 5
Neighbor is up for 00:08:53
Authentication Sequence: [ 0 ]
Neighbors
Area 0.0.0.0 interface 67.1.1.7(GigabitEthernet0/0/1)'s neighbors
Router ID: 6.6.6.6 Address: 67.1.1.6
State: Full Mode:Nbr is Slave Priority: 1
DR: 67.1.1.6 BDR: 67.1.1.7 MTU: 0
Dead timer due in 34 sec
Retrans timer interval: 5
Neighbor is up for 00:11:53
Authentication Sequence: [ 0 ]
[R7-ospf-300-area-0.0.0.0]q
[R7-ospf-300]q
[R7]bgp 300
[R7-bgp]rou
[R7-bgp]router-id 7.7.7.7
[R7-bgp]peer 6..6.6.6 as
[R7-bgp]peer 6..6.6.6 as-num 300
Error: The peer-group does not exist.
[R7-bgp]peer 6.6.6.6 as-num 300
[R7-bgp]peer 6.6.6.6 con
[R7-bgp]peer 6.6.6.6 connect-interface loop 0
[R7-bgp]peer 8.8.8.8 as-num 300
[R7-bgp]peer 8.8.8.8 con
[R7-bgp]peer 8.8.8.8 connect-interface loop 0
[R7-bgp]ne
[R7-bgp]network 7.7.7.7 32
[R7-bgp]nr
[R7-bgp]net
[R7-bgp]network 67.1.1.0 24
[R7-bgp]me
[R7-bgp]ne
[R7-bgp]network 78.1.1.0 24
[R7-bgp]disp bgp peer
BGP local router ID : 7.7.7.7
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
6.6.6.6 4 300 37 18 0 00:13:54 Established
13
8.8.8.8 4 300 26 14 0 00:09:18 Established
8
[R7-bgp]disp bgp routing-table
BGP Local router ID is 7.7.7.7
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 25
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 1.1.1.1/32 8.8.8.8 1 100 0 100i
*>i 2.2.2.2/32 8.8.8.8 0 100 0 i
*>i 3.3.3.3/32 6.6.6.6 0 100 0 i
*>i 4.4.4.4/32 6.6.6.6 1 100 0 200i
*>i 5.5.5.5/32 6.6.6.6 0 100 0 i
*>i 6.6.6.6/32 8.8.8.8 2 100 0 i
i 6.6.6.6 0 100 0 i
*> 7.7.7.7/32 0.0.0.0 0 0 i
* i 6.6.6.6 1 100 0 i
* i 8.8.8.8 1 100 0 i
*>i 8.8.8.8/32 6.6.6.6 100 0 200 100i
i 8.8.8.8 0 100 0 i
*>i 12.1.1.0/24 8.8.8.8 0 100 0 100i
*>i 23.1.1.0/24 6.6.6.6 0 100 0 200i
* i 8.8.8.8 0 100 0 100i
*>i 28.1.1.0/24 8.8.8.8 0 100 0 i
*>i 34.1.1.0/24 6.6.6.6 0 100 0 200i
*>i 35.1.1.0/24 6.6.6.6 0 100 0 200i
*>i 36.1.1.0/24 6.6.6.6 0 100 0 i
*>i 45.1.1.0/24 6.6.6.6 100 0 200i
*>i 56.1.1.0/24 6.6.6.6 0 100 0 i
*> 67.1.1.0/24 0.0.0.0 0 0 i
* i 6.6.6.6 0 100 0 i
*> 78.1.1.0/24 0.0.0.0 0 0 i
* i 8.8.8.8 0 100 0 i
[R7-bgp]
[R7-bgp]q
[R7]q
tre
tr
tracer
tracert 1.1.1.1
traceroute to 1.1.1.1(1.1.1.1), max hops: 30 ,packet length: 40,press CTRL_C t
o break
1 67.1.1.6 30 ms 60 ms 70 ms
2 36.1.1.3 120 ms 80 ms 60 ms
3 23.1.1.2 < AS=200 > 80 ms 130 ms 120 ms
4 12.1.1.1 < AS=100 > 140 ms 160 ms 150 ms
R8:
The device is running!
un t m
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn
[Huawei]sysname R8
[R8]user-in con 0
[R8-ui-console0]id
[R8-ui-console0]idle-timeout 0 0
[R8-ui-console0]int g0/0/0
[R8-GigabitEthernet0/0/0]ip add 28.1.1.8 24
[R8-GigabitEthernet0/0/0]un shut
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R8-GigabitEthernet0/0/0]int g0/0/1
[R8-GigabitEthernet0/0/1]ip add 78.1.1.8 24
[R8-GigabitEthernet0/0/1]un shut
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[R8-GigabitEthernet0/0/1]int loop 0
[R8-LoopBack0]ip add 8.8.8.8 32
[R8-LoopBack0]
[R8-bgp]disp bgp routing-table
BGP Local router ID is 8.8.8.8
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 35
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.1/32 2.2.2.2 1 0 100i
*> 2.2.2.2/32 0.0.0.0 0 0 i
2.2.2.2 0 0 100i
*>i 3.3.3.3/32 6.6.6.6 0 100 0 i
* 2.2.2.2 0 0 100i
*>i 4.4.4.4/32 6.6.6.6 1 100 0 200i
* 2.2.2.2 0 100 200i
*>i 5.5.5.5/32 6.6.6.6 0 100 0 i
* 2.2.2.2 0 100 200i
*> 6.6.6.6/32 0.0.0.0 2 0 i
* 2.2.2.2 0 100 200i
i 6.6.6.6 0 100 0 i
*> 7.7.7.7/32 0.0.0.0 1 0 i
* i 6.6.6.6 1 100 0 i
i 7.7.7.7 0 100 0 i
*> 8.8.8.8/32 0.0.0.0 0 0 i
* 2.2.2.2 0 0 100i
* i 6.6.6.6 100 0 200 100i
*> 12.1.1.0/24 2.2.2.2 0 0 100i
*> 23.1.1.0/24 2.2.2.2 0 0 100i
* i 6.6.6.6 0 100 0 200i
*> 28.1.1.0/24 0.0.0.0 0 0 i
*>i 34.1.1.0/24 6.6.6.6 0 100 0 200i
* 2.2.2.2 0 100 200i
*>i 35.1.1.0/24 6.6.6.6 0 100 0 200i
* 2.2.2.2 0 100 200i
*>i 36.1.1.0/24 6.6.6.6 0 100 0 i
* 2.2.2.2 0 100 200i
*>i 45.1.1.0/24 6.6.6.6 100 0 200i
* 2.2.2.2 0 100 200i
*>i 56.1.1.0/24 6.6.6.6 0 100 0 i
*>i 67.1.1.0/24 7.7.7.7 0 100 0 i
* i 6.6.6.6 0 100 0 i
*> 78.1.1.0/24 0.0.0.0 0 0 i
* i 7.7.7.7 0 100 0 i
[R8-bgp]