81-42
Figure 81-8 Create BGP MPLS VPN between PE-CE via EBGP
The configuration of CE1 is as follows : (the configurations of CE2~CE4 are similar)
CE1#config
CE1(config)# interface vlan 1
CE1(config-if-Vlan1)#ip address 10.1.1.1 255.255.255.0
CE1(config-if-Vlan1)#exit
CE1(config)# router bgp 65001
CE1(config-router)#neighbor 10.1.1.2 remote-as 100
CE1(config-router)#redistribute connect
CE1(config-router)#exit
The configuration of MPLS BGP on switch PE1 is as follows:
(1) Configure VPN instances
PE1#config
PE1(config)#ip vrf vpna
PE1(config-vrf)#rd 100:1
PE1(config-vrf)#route-target both 100:1
PE1(config)#ip vrf vpnb
PE1(config-vrf)#rd 100:2
PE1(config-vrf)#route-target both 100:2
(2) Configure to bind the interface with the VPN instances
PE1(config)# interface vlan 1
172.2.2.2./32
10.1.1.1/24
10.1.1.2/24
10.2.1.2/24
10.2.1.1/24
RT:100:2
AS 65002
100.1.1.1/24
100.1.1.2/24
200.1.1.2/24
172.3.3.3/32
MPLS backbone
200.1.1.1/24
10.3.1.1/24
VPN-A RT:100:1
RT:100:2
AS 65004
10.4.1.2/24
10.4.1.1/24
PE-CE USING EBGP
172.1.1.1/3