MPLS VPN

 





R2
router bgp 5000
 bgp log-neighbor-changes
 network 2.2.2.2 mask 255.255.255.255
 neighbor 4.4.4.4 remote-as 5000
 neighbor 4.4.4.4 update-source Loopback0
 neighbor 5.5.5.5 remote-as 5000
 neighbor 5.5.5.5 update-source Loopback0
 neighbor 9.9.9.9 remote-as 5000
 neighbor 9.9.9.9 update-source Loopback0
 !
 address-family vpnv4
  neighbor 5.5.5.5 activate
  neighbor 5.5.5.5 send-community both
  neighbor 9.9.9.9 activate
  neighbor 9.9.9.9 send-community both
 exit-address-family
 !
 address-family ipv4 vrf 100:EMPRESA1
  redistribute ospf 100
 exit-address-family
 !
 address-family ipv4 vrf 200:EMPRESA2
  redistribute ospf 200
 exit-address-family


interface Loopback0
 ip address 2.2.2.2 255.255.255.255
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface Ethernet0/0
 ip vrf forwarding 100:EMPRESA1
 ip address 192.168.10.1 255.255.255.0
 ip ospf 100 area 0
 duplex auto
!
interface Ethernet0/1
 ip vrf forwarding 200:EMPRESA2
 ip address 192.168.30.1 255.255.255.0
 ip ospf 200 area 0
 duplex auto
!
interface Ethernet0/2
 ip address 10.10.10.1 255.255.255.252
 ip ospf 1 area 0
 duplex auto
 mpls ip
!
interface Ethernet0/3
 ip address 10.10.10.9 255.255.255.252
 ip ospf 1 area 0
 duplex auto
 mpls ip
!
router ospf 100 vrf 100:EMPRESA1
 redistribute bgp 5000 subnets
!
router ospf 200 vrf 200:EMPRESA2
 redistribute bgp 5000 subnets
!
router ospf 1
 router-id 2.2.2.2

R5
router bgp 5000
 bgp log-neighbor-changes
 network 5.5.5.5 mask 255.255.255.255
 neighbor 2.2.2.2 remote-as 5000
 neighbor 2.2.2.2 update-source Loopback0
 neighbor 4.4.4.4 remote-as 5000
 neighbor 4.4.4.4 update-source Loopback0
 neighbor 9.9.9.9 remote-as 5000
 neighbor 9.9.9.9 update-source Loopback0
 !
 address-family vpnv4
  neighbor 2.2.2.2 activate
  neighbor 2.2.2.2 send-community both
  neighbor 9.9.9.9 activate
  neighbor 9.9.9.9 send-community both
 exit-address-family
 !
 address-family ipv4 vrf 100:EMPRESA1
  redistribute ospf 100
 exit-address-family
 !
 address-family ipv4 vrf 200:EMPRESA2
  redistribute ospf 200
 exit-address-family

interface Loopback0
 ip address 5.5.5.5 255.255.255.255
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface Ethernet0/0
 ip vrf forwarding 100:EMPRESA1
 ip address 192.168.20.2 255.255.255.0
 ip ospf 100 area 0
 duplex auto
!
interface Ethernet0/1
 ip vrf forwarding 200:EMPRESA2
 ip address 192.168.40.1 255.255.255.0
 ip ospf 200 area 0
 duplex auto
!
interface Ethernet0/2
 ip address 10.10.10.6 255.255.255.252
 ip ospf 1 area 0
 duplex auto
 mpls ip
!
interface Ethernet0/3
 ip address 10.10.10.17 255.255.255.252
 ip ospf 1 area 0
 duplex auto
 mpls ip
!
interface Ethernet1/0
 ip address 10.10.10.10 255.255.255.252
 ip ospf 1 area 0
 duplex auto
 mpls ip
!
!
router ospf 100 vrf 100:EMPRESA1
 redistribute bgp 5000 subnets
!
router ospf 200 vrf 200:EMPRESA2
 redistribute bgp 5000 subnets
!
router ospf 1
 router-id 5.5.5.5




Comentarios