H3C Technologies H3C SecPath F1000-E User Manual
Page 508
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.
[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.
[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.
[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
- H3C SecPath F5000-A5 Firewall H3C SecPath F1000-A-EI H3C SecPath F1000-E-SI H3C SecPath F1000-S-AI H3C SecPath F5000-S Firewall H3C SecPath F5000-C Firewall H3C SecPath F100-C-SI H3C SecPath F1000-C-SI H3C SecPath F100-A-SI H3C SecBlade FW Cards H3C SecBlade FW Enhanced Cards H3C SecPath U200-A U200-M U200-S H3C SecPath U200-CA U200-CM U200-CS H3C SecBlade LB Cards H3C SecPath L1000-A Load Balancer