81-46
PE2(config-router-af)#exit
PE2(config-router)# address-family ipv4 vrf vpnb
PE2(config-router-af)#neighbor 10.4.1.1 remote-as 65004
PE2(config-router-af)#redistribute connected
PE2(config-router-af)#exit
PE2(config-router)#exit
81.3.2 Create BGP MPLS VPN between PE-CE via OSPF
Figure 81-9 Create BGP MPLS VPN between PE-CE via OSPF
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 ospf
CE1(config-router)#network 0.0.0.0/0 area 0
CE1(config-router)#redistribute connect
CE1(config-router)#exit
The confiugraiton of MPLS BGP on switch PE1 is as follows : (the configuration of PE2 is similar)
(1) Configure VPN instances
PE-CE Using OSPF
VPN-A AREA 0
172.2.2.2./3
AS 65001
VPN A RT:100:1(both)
10.1.1.1/24
10.1.1.2/24
10.2.1.2/24
10.2.1.1/24
RT:100:2(both
)
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(both)
RT:100:2(both
)
AS 65004
10.4.1.2/24
10.4.1.1/24
172.1.1.1/3