miércoles, 2 de enero de 2013

MPLS VPN




###########################################
CORE
###########################################
interface Loopback0
 ip address 3.3.3.3 255.255.255.0
 ip ospf network point-to-point

interface Serial0/0
 ip address 10.10.10.1 255.255.255.252
 mpls ip

interface Serial0/1
 ip address 10.10.10.5 255.255.255.252
 mpls ip

router ospf 1
 network 3.3.3.0 0.0.0.255 area 0
 network 10.10.10.0 0.0.0.3 area 0
 network 10.10.10.4 0.0.0.3 area 0
router bgp 10
 neighbor 1.1.1.1 remote-as 10
 neighbor 2.2.2.2 remote-as 10
mpls ldp router-id Loopback0


################################################
PE1
################################################
ip vrf cliente
 rd 1:100
 route-target export 100:1
 route-target import 100:1
ip vrf forwarding
interface Loopback0
 ip address 1.1.1.1 255.255.255.0
 ip ospf network point-to-point
!
interface Serial0/0
 ip address 10.10.10.2 255.255.255.252
 mpls ip

interface Serial0/1
 ip vrf forwarding cliente
 ip address 192.168.10.2 255.255.255.0
router eigrp 1
 address-family ipv4 vrf cliente
  redistribute bgp 10 metric 100000 10 255 1 1500
  network 192.168.10.0
  no auto-summary
  autonomous-system 1
 exit-address-family
!
router ospf 1
 network 1.1.1.0 0.0.0.255 area 0
 network 10.10.10.0 0.0.0.3 area 0
!
router bgp 10
 neighbor 2.2.2.2 remote-as 10
 neighbor 2.2.2.2 update-source Loopback0
 address-family vpnv4
  neighbor 2.2.2.2 activate
  neighbor 2.2.2.2 send-community both
 exit-address-family
 address-family ipv4 vrf cliente
  redistribute eigrp 1
  no synchronization
 exit-address-family
##########################################
PE2
#########################################
ip vrf cliente
 rd 1:100
 route-target export 100:1
 route-target import 100:1
!
ip vrf forwarding
interface Loopback0
 ip address 2.2.2.2 255.255.255.0
 ip ospf network point-to-point

interface Serial0/0
 ip address 10.10.10.6 255.255.255.252
 mpls ip
interface Serial0/1
 ip vrf forwarding cliente
 ip address 192.168.20.2 255.255.255.0
router eigrp 1
 redistribute bgp 10 metric 10000 10 255 1 1500
 auto-summary

 address-family ipv4 vrf cliente
  network 192.168.20.0
  no auto-summary
  autonomous-system 1
 exit-address-family
!
router ospf 1
 log-adjacency-changes
 network 2.2.2.0 0.0.0.255 area 0
 network 10.10.10.4 0.0.0.3 area 0
!
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 cliente
  redistribute eigrp 1
  no synchronization
 exit-address-family
!
mpls ldp router-id Loopback0
!
##############################################
CE1
##########################################

router eigrp 1
 network 4.4.4.0 0.0.0.255
 network 192.168.10.0
 no auto-summary
!
no ip http server

No hay comentarios:

Publicar un comentario