H3C Technologies H3C SR8800 User Manual

Page 257

Advertising
background image

241

[RouterB-bgp] quit

# Display BGP peer information on Router B.

[RouterB] display bgp peer

BGP local router ID : 2.2.2.2

Local AS number : 65009

Total number of peers : 2 Peers in established state : 2

Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State

3.3.3.3 65009 12 10 0 3 00:09:16 Established

3.1.1.2 65008 3 3 0 1 00:00:08 Established

The output shows that Router B has established an IBGP peer relationship with Router C and an

EBGP peer relationship with Router A.
# Display the BGP routing table on Router A.

[RouterA] 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 NextHop MED LocPrf PrefVal Path/Ogn

*> 8.1.1.0/24 0.0.0.0 0 0 i

# Display the BGP routing table on Router B.

[RouterB] 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 NextHop MED LocPrf PrefVal Path/Ogn

*> 8.1.1.0/24 3.1.1.2 0 0 65008i

# Display the BGP routing table on Router C.

[RouterC] 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 NextHop MED LocPrf PrefVal Path/Ogn

i 8.1.1.0/24 3.1.1.2 0 100 0 65008i

NOTE:

From the outputs, you can find Router A has learned no route to AS65009, and Router C has learned
network 8.1.1.0 but the next hop 3.1.1.2 is unreachable, and thus the route is invalid.

4.

Redistribute direct routes:
Configure BGP to redistribute direct routes on Router B, so that Router A can obtain the route to
9.1.1.0/24 and Router C can obtain the route to 3.1.1.0/24.
# Configure Router B.

Advertising