81-49
P(config-if-Vlan100)#exit
P(config)#interface vlan200
P(config-if-Vlan200)#ip address 200.1.1.2 255.255.255.0
P(config-if-Vlan200)#label-switching
P(config-if-Vlan200)#ldp enable
P(config-if-Vlan200)#exit
(2) Configure OSPF
P(config)#router ospf
P(config-router)# ospf router-id 172.3.3.3
P(config-router)# network 0.0.0.0/0 area 0
P(config-router)# redistribute connected
81.3.3 Create BGP MPLS VPN between PE-CE via RIP
Figure 81-10 Create BGP MPLS VPN between PE-CE via RIP
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 rip
CE1(config-router)#network 0.0.0.0/0
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 RIP
172.1.1.1/3
172.2.2.2./3