hostname CE1

interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface Loopback1
ip address 10.0.0.1 255.255.255.0
!
interface FastEthernet0/0
ip address 172.16.0.1 255.255.255.252
speed 100
full-duplex
!
router bgp 64518
bgp log-neighbor-changes
neighbor 172.16.0.2 remote-as 34790
!
address-family ipv4
redistribute connected
neighbor 172.16.0.2 activate
no auto-summary
no synchronization
exit-address-family
!

 

hostname CE2

interface Loopback0
ip address 5.5.5.5 255.255.255.255
!
interface Loopback1
ip address 10.1.0.1 255.255.255.0
!
interface FastEthernet0/0
ip address 172.16.0.5 255.255.255.252
speed 100
full-duplex
!
router bgp 64518
bgp log-neighbor-changes
neighbor 172.16.0.6 remote-as 34790
!
address-family ipv4
redistribute connected
neighbor 172.16.0.6 activate
no auto-summary
no synchronization
exit-address-family

 

!

hostname PE1

ip vrf CE1
rd 100:1
route-target export 100:1
route-target import 100:1

interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Loopback1
ip vrf forwarding CE1
ip address 10.10.10.254 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.252
speed 100
full-duplex
mpls ip
!
interface FastEthernet0/1
ip vrf forwarding CE1
ip address 172.16.0.2 255.255.255.252
speed 100
full-duplex
!
router ospf 10
router-id 1.1.1.1
log-adjacency-changes
redistribute connected subnets
passive-interface default
no passive-interface FastEthernet0/0
no passive-interface Loopback0
network 10.10.10.10 0.0.0.0 area 0
network 192.168.1.0 0.0.0.255 area 0
!
router bgp 34790
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 34790
neighbor 2.2.2.2 update-source Loopback0
! |
address-family ipv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
neighbor 2.2.2.2 soft-reconfiguration inbound
no auto-summary
no synchronization
exit-address-family

!
address-family ipv4 vrf CE1
redistribute connected
neighbor 172.16.0.1 remote-as 64518
neighbor 172.16.0.1 activate
neighbor 172.16.0.1 next-hop-self
no synchronization
exit-address-family

!

hostname PE2

ip vrf CE1
rd 100:1
route-target export 100:1
route-target import 100:1

interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.1.5 255.255.255.252
speed 100
full-duplex
mpls ip
!
interface FastEthernet0/1
ip vrf forwarding CE1
ip address 172.16.0.6 255.255.255.252
speed 100
full-duplex
!
router ospf 10
router-id 3.3.3.3
log-adjacency-changes
redistribute connected subnets
passive-interface default
no passive-interface FastEthernet0/0
no passive-interface Loopback0
network 11.11.11.11 0.0.0.0 area 0
network 192.168.1.0 0.0.0.255 area 0
!
router bgp 34790
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 34790
neighbor 2.2.2.2 update-source Loopback0

address-family ipv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
neighbor 2.2.2.2 soft-reconfiguration inbound
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 vrf CE1
redistribute connected
neighbor 172.16.0.5 remote-as 64518
neighbor 172.16.0.5 activate
neighbor 172.16.0.5 next-hop-self
no synchronization
exit-address-family

 

hostname P

mpls label protocol ldp

interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.252
speed 100
full-duplex
mpls ip
!
interface FastEthernet0/1
ip address 192.168.1.6 255.255.255.252
speed 100
full-duplex
mpls ip
!

router ospf 10
router-id 2.2.2.2
log-adjacency-changes
redistribute connected subnets
passive-interface default
no passive-interface FastEthernet0/0
no passive-interface FastEthernet0/1
no passive-interface Loopback0
network 2.2.2.2 0.0.0.0 area 0
network 192.168.1.0 0.0.0.255 area 0
!
router bgp 34790
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 34790
neighbor 1.1.1.1 update-source Loopback0
neighbor 3.3.3.3 remote-as 34790
neighbor 3.3.3.3 update-source Loopback0
!
address-family ipv4
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community both
neighbor 1.1.1.1 soft-reconfiguration inbound
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
neighbor 3.3.3.3 soft-reconfiguration inbound
no auto-summary
no synchronization
exit-address-family

!
address-family vpnv4
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community extended
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community extended
exit-address-family
!

ip bgp-community new-format