[PE1-bgp-af-vpnv4] peer 3.3.3.9 enable
[PE1-bgp-af-vpnv4] quit
[PE1-bgp] ipv4-family vpn-instance vpna
[PE1-bgp-vpna] import-route direct
[PE1-bgp-vpna] quit
[PE1-bgp] ipv4-family vpn-instance vpnb
[PE1-bgp-vpnb] import-route direct
[PE1-bgp-vpnb] quit
# Configure PE2.
[PE2] bgp 100
[PE2-bgp] peer 1.1.1.9 as-number 100
[PE2-bgp] peer 1.1.1.9 connect-interface loopback0
[PE2-bgp] ipv4-family vpnv4
[PE2-bgp-af-vpnv4] peer 1.1.1.9 enable
[PE2-bgp-af-vpnv4] quit
[PE2-bgp] ipv4-family vpn-instance vpna
[PE2-bgp-vpna] import-route direct
[PE2-bgp-vpna] quit
[PE2-bgp] ipv4-family vpn-instance vpnb
[PE2-bgp-vpnb] import-route direct
[PE2-bgp-vpnb] quit
After the configuration, run the display bgp peer command on a PE, and you can see that the
BGP peer relation between the PE and CE is in Established state.
[PE1]display bgp peer
BGP local router ID : 1.1.1.9
Local ASN : 100
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
3.3.3.9 4 100 3 3 0 00:01:08 Established
0
Step 7 Verify the configuration.
Run the display ip routing-table vpn-instance command on a PE, and you can view the routes
to the remote CE.
Take the display on PE1 as an example.
[PE1] display ip routing-table vpn-instance vpna
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: vpna
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost Flags NextHop Interface
14.1.1.0/24 Direct 0 0 D 14.1.1.1 Vlanif100
14.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
14.1.1.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
34.1.1.0/24 BGP 255 0 RD 3.3.3.9 Vlanif10
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
[PE1] display ip routing-table vpn-instance vpnb
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: vpnb
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost Flags NextHop Interface
14.1.1.0/24 Direct 0 0 D 14.1.1.1 Vlanif101
14.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
14.1.1.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
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.
192