MPLS

31/12/2010 21:37

 

CE-configs.txt (1,4 kB)

 

PE1 PE2

 

!
ip vrf AS1
 rd 1:1
 route-target export 10:1
 route-target import 10:1
!
ip vrf AS2
 rd 2:2
 route-target export 10:2
 route-target import 10:2
!

interface Loopback0
 ip address 1.1.1.1 255.255.255.255

!
interface POS1/0
 description to PE2 MPLS
 ip unnumbered Loopback0
 encapsulation ppp
 mpls ip
!

interface POS2/0
 description to CE1.AS2 vrf AS2
 ip vrf forwarding AS2
 ip address 10.1.1.1 255.255.255.252
 encapsulation ppp
!
interface POS3/0
 description to CE1.AS1 vrf AS1
 ip vrf forwarding AS1
 ip address 10.1.1.1 255.255.255.252
 encapsulation ppp
!

router eigrp 10
 no auto-summary
 !
 address-family ipv4 vrf AS1
 redistribute bgp 10
 network 10.1.1.0 0.0.0.3
 no auto-summary
 autonomous-system 1
 exit-address-family
!
router ospf 1 vrf AS2
 log-adjacency-changes
 redistribute bgp 10
 network 10.1.1.0 0.0.0.3 area 0
!
router bgp 10
 no synchronization
 bgp log-neighbor-changes
 neighbor 1.1.1.2 remote-as 10
 neighbor 1.1.1.2 update-source Loopback0
 neighbor 1.1.1.2 next-hop-self
 no auto-summary
 !
 address-family vpnv4
 neighbor 1.1.1.2 activate
 neighbor 1.1.1.2 send-community extended
 exit-address-family
 !

 address-family ipv4 vrf AS2
 redistribute ospf 1 vrf AS2 match internal external 2
 neighbor 10.1.1.2 remote-as 2
 neighbor 10.1.1.2 activate
 no auto-summary
 no synchronization
 exit-address-family
 !
 address-family ipv4 vrf AS1
 redistribute eigrp 1
 no auto-summary
 no synchronization
 exit-address-family
!

 

!
ip vrf AS1
 rd 1:1
 route-target export 10:1
 route-target import 10:1
!
ip vrf AS2
 rd 2:2
 route-target export 10:2
 route-target import 10:2
!

interface Loopback0
 ip address 1.1.1.2 255.255.255.255

!
interface POS1/0
 description to PE1 MPLS
 ip unnumbered Loopback0
 encapsulation ppp
 mpls ip
!
interface POS2/0
 description to CE2.AS2 vrf AS2
 ip vrf forwarding AS2
 ip address 10.1.2.1 255.255.255.252
 encapsulation ppp
!
interface POS3/0
 

 description to CE2.AS1 vrf AS1
 ip vrf forwarding AS1
 ip address 10.1.2.1 255.255.255.252
 encapsulation ppp
!

router eigrp 10
 

 no auto-summary
 !
 address-family ipv4 vrf AS1
 redistribute bgp 10
 network 10.1.2.0 0.0.0.3
 no auto-summary
 autonomous-system 1
 exit-address-family
!

!

!

!

!
router bgp 10
 no synchronization
 bgp log-neighbor-changes
 neighbor 1.1.1.1 remote-as 10
 neighbor 1.1.1.1 update-source Loopback0
 no auto-summary
 !

 address-family vpnv4
 neighbor 1.1.1.1 activate
 neighbor 1.1.1.1 send-community both
 exit-address-family
 !

 !
 address-family ipv4 vrf AS2
 neighbor 10.1.2.2 remote-as 2
 neighbor 10.1.2.2 activate
 no auto-summary
 no synchronization
 exit-address-family
 !

 address-family ipv4 vrf AS1
 redistribute eigrp 1
 no auto-summary
 no synchronization
 exit-address-family
!