H3C S5800 Series Configuration Manual page 268

Layer 3 - ip routing
Hide thumbs Also See for S5800 Series:
Table of Contents

Advertisement

[SwitchB-bgp] peer 3.1.1.2 as-number 65008
[SwitchB-bgp] quit
# Display BGP peer information on Switch B.
[SwitchB] display bgp peer
BGP local router ID : 2.2.2.2
Local AS number : 65009
Total number of peers : 2
Peer
3.3.3.3
3.1.1.2
The output shows that Switch B has established an iBGP peer relationship with Switch C and an eBGP
peer relationship with Switch A.
# Display the BGP routing table on Switch A.
[SwitchA] display bgp routing-table
Total Number of Routes: 1
BGP Local router ID is 1.1.1.1
Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Network
*> 8.1.1.0/24
# Display the BGP routing table on Switch B.
[SwitchB] display bgp routing-table
Total Number of Routes: 1
BGP Local router ID is 2.2.2.2
Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Network
*> 8.1.1.0/24
# Display the BGP routing table on Switch C.
[SwitchC] display bgp routing-table
Total Number of Routes: 1
BGP Local router ID is 3.3.3.3
Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Network
i 8.1.1.0/24
From the above outputs, you can find Switch A has learned no route to AS65009, and Switch C has
learned network 8.1.1.0 but the next hop 3.1.1.2 is unreachable, so the route is invalid.
4)
Redistribute direct routes
Configure BGP to redistribute direct routes on Switch B, so that Switch A can obtain the route to
9.1.1.0/24 and Switch C can obtain the route to 3.1.1.0/24.
AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
65009
4
65008
2
NextHop
MED
0.0.0.0
0
NextHop
MED
3.1.1.2
0
NextHop
MED
3.1.1.2
0
Peers in established state : 2
4
0
0 00:02:49 Established
2
0
0 00:00:05 Established
LocPrf
PrefVal Path/Ogn
0
LocPrf
PrefVal Path/Ogn
0
LocPrf
PrefVal Path/Ogn
100
0
6-51
i
65008i
65008i

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820x series

Table of Contents