2 create bgp mpls vpn between pe-ce via ospf, 2 create bgp mpls vpn between pe-ce via ospf -46 – PLANET XGS3-24042 User Manual
Page 692

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
Loopback1
172.2.2.2./3
2
AS 65001
VPN A RT:100:1(both)
VLAN1:
10.1.1.1/24
VLAN1:
10.1.1.2/24
VLAN2:
10.2.1.2/24
VLAN2:
10.2.1.1/24
CE2
VPN-B
RT:100:2(both
)
AS 65002
PE 1
CE1
VLAN100:
100.1.1.1/24
VLAN100:
100.1.1.2/24
VLAN200:
200.1.1.2/24
Loopback 1:
172.3.3.3/32
P
MPLS backbone
VLAN200:
200.1.1.1/24
VLAN3:
10.3.1.1/24
VLAN3:
10.3.1.2/24
AS 650003
VPN-A RT:100:1(both)
PE2
CE4
VPN-B
RT:100:2(both
)
AS 65004
VLAN4:
10.4.1.2/24
VLAN4:
10.4.1.1/24
AS 100
CE3
Loopback1
172.1.1.1/3
2