# In the VPNv4 address family view, enable the capability of exchanging VPN-IPv4 routing
information between PE2 and PE4.
[PE2-bgp]
ipv4-family vpnv4
[PE2-bgp-af-vpnv4]
peer 4.4.4.4 enable
[PE2-bgp-af-vpnv4]
quit
# Configure PE4.
# Specify PE2 as the IBGP peer of PE4 and set up an IBGP connection through the loopback
interface.
[PE4]
bgp 100
[PE4-bgp]
peer 2.2.2.2 as-number 100
[PE4-bgp]
peer 2.2.2.2 connect-interface loopback 1
# In the VPNv4 address family view, enable the capability of exchanging VPN-IPv4 routing
information between PE4 and PE2.
[PE4-bgp]
ipv4-family vpnv4
[PE4-bgp-af-vpnv4]
peer 2.2.2.2 enable
[PE4-bgp-af-vpnv4]
quit
After the configuration, run the
display bgp vpnv4 all peer
command on PEs, and you can view
that BGP peer relationships are set up between PEs and are in Established state.
<PE1>
display bgp vpnv4 all peer
BGP local router ID : 1.1.1.1
Local AS number : 100
Total number of peers : 2 Peers in established state : 2
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
3.3.3.3 4 100 70 81 0 01:00:23 Established 3
Peer of vpn instance :
vpn instance vpn1 :
10.1.1.1 4 65410 16 12 0 00:06:42 Established 3
Step 7
On CE1, enable load balancing for the traffic transmitted from CE1 to CE2.
[CE1]
bgp 65410
[CE1-bgp]
ipv4-family unicast
[CE1-bgp-af-ipv4]
maximum load-balancing 2
Step 8
Configure a routing policy and increase the MED value of the BGP route that is advertised to
CE2 by PE3. In this manner, traffic is transmitted from CE2 to CE1 through PE4. In this case,
PE3 functions as the backup device.
[PE3]
route-policy policy1 permit node 10
[PE3-route-policy]
apply cost 120
[PE3-route-policy]
quit
[PE3]
bgp 100
[PE3-bgp]
ipv4-family vpn-instance vpn1
[PE3-bgp-vpn1]
peer 10.3.1.2 route-policy policy1 export
Step 9
Verify the configuration.
If the configurations are successful:
Run the
display ip routing-table
command on CE1, and you can view the route to CE2 and that
traffic is transmitted in load balancing mode.
Route Flags: R - relied, D - download to fib
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
3 BGP MPLS IP VPN Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
284