beautypg.com

H3C Technologies H3C SecPath F1000-E User Manual

Page 508

background image

483

{

On SecPath C, establish an EBGP connection with SecPath A and an IBGP connection with

SecPath B; configure BGP to advertise network 9.1.1.0/24 to SecPath A, so that SecPath A can
access the intranet through SecPath C; configure a static route to interface loopback 0 on

SecPath B (or use another protocol like OSPF) to establish the IBGP connection.

# Configure SecPath A.

system-view

[SecPathA] bgp 65008

[SecPathA-bgp] router-id 1.1.1.1

[SecPathA-bgp] peer 3.1.1.1 as-number 65009

[SecPathA-bgp] peer 3.1.2.1 as-number 65009

[SecPathA-bgp] network 8.1.1.1 24

[SecPathA-bgp] quit

# Configure SecPath B.

system-view

[SecPathB] bgp 65009

[SecPathB-bgp] router-id 2.2.2.2

[SecPathB-bgp] peer 3.1.1.2 as-number 65008

[SecPathB-bgp] peer 3.3.3.3 as-number 65009

[SecPathB-bgp] peer 3.3.3.3 connect-interface loopback 0

[SecPathB-bgp] network 9.1.1.0 24

[SecPathB-bgp] quit

[SecPathB] ip route-static 3.3.3.3 32 9.1.1.2

# Configure SecPath C.

system-view

[SecPathC] bgp 65009

[SecPathC-bgp] router-id 3.3.3.3

[SecPathC-bgp] peer 3.1.2.2 as-number 65008

[SecPathC-bgp] peer 2.2.2.2 as-number 65009

[SecPathC-bgp] peer 2.2.2.2 connect-interface loopback 0

[SecPathC-bgp] network 9.1.1.0 24

[SecPathC-bgp] quit

[SecPathC] ip route-static 2.2.2.2 32 9.1.1.1

# Display the BGP routing table on SecPath A.

[SecPathA] display bgp routing-table

Total Number of Routes: 3

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

*> 9.1.1.0/24 3.1.1.1 0 0 65009i

* 3.1.2.1 0 0 65009i