[P2-bgp] ipv4-family vpnv4
[P2-bgp-af-vpnv4] peer P2 enable
[P2-bgp-af-vpnv4] peer 1.1.1.9 group P2
[P2-bgp-af-vpnv4] peer 2.2.2.9 group P2
[P2-bgp-af-vpnv4] peer 4.4.4.9 group P2
[P2-bgp-af-vpnv4] quit
[P2-bgp] quit
# Configure PE2.
The configuration procedure of PE2 is similar to the configuration procedure of PE1 and
is not mentioned.
After the configuration, run the display bgp vpnv4 all peer command on the PEs, and you
can see that the BGP adjacencies are established between the PEs and RRs. The EBGP
adjacencies are established between the PE and CEs.
Take the display on PE1 and P1 for example.
<PE1> display bgp vpnv4 all peer
BGP local router ID : 1.1.1.9
Local AS number : 100
Total number of peers : 3 Peers in established state : 3
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
2.2.2.9 4 100 2 4 0 00:00:31 Established 0
3.3.3.9 4 100 3 5 0 00:01:23 Established 0
Peer of vpn instance :
vpn instance vpna :
10.1.1.1 4 65410 79 82 0 01:13:29 Established 0
7. Configure the reflector function on P1 and P2.
# Configure P1.
[P1] bgp 100
[P1-bgp] ipv4-family vpnv4
[P1-bgp-af-vpnv4] reflector cluster-id 100
[P1-bgp-af-vpnv4] peer P1 reflect-client
[P1-bgp-af-vpnv4] undo policy vpn-target
[P1-bgp-af-vpnv4] quit
# Configure P2.
[P2] bgp 100
[P2-bgp] ipv4-family vpnv4
[P2-bgp-af-vpnv4] reflector cluster-id 100
[P2-bgp-af-vpnv4] peer P2 reflect-client
[P2-bgp-af-vpnv4] undo policy vpn-target
[P2-bgp-af-vpnv4] quit
8. Verify the configuration.
Display the VPN routing table on PE, and you can see the route to the remote CE.
Take PE1 for example.
<PE1> display ip routing-table vpn-instance vpna
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: vpna
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/24 Direct 0 0 D 10.1.1.2 Vlanif60
10.1.1.1/32 Direct 0 0 D 10.1.1.1 Vlanif60
10.1.1.2/32 Direct 0 0 D 127.0.0.1
InLoopBack0
10.2.1.0/24 BGP 255 0 RD 4.4.4.9 Vlanif40
10.2.1.1/32 BGP 255 0 RD 4.4.4.9 Vlanif40
If CE1 and CE2 can ping each other, it indicates that the RRs are successfully configured.
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN 3 BGP/MPLS IP VPN Configuration
Issue 03 (2009-08-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3-151