Ad Home

Implementación Route Reflectors con MPLS VPN

Share:
 

RR1

hostname RR1
!
interface Loopback0
 ip address 10.1.1.1 255.255.255.255
 ip ospf 1 area 0
!
interface FastEthernet0/0
 ip address 192.168.1.2 255.255.255.252
 ip ospf 1 area 0
  mpls ip
!
interface FastEthernet0/1
 ip address 192.168.1.9 255.255.255.252
 ip ospf 1 area 0
 mpls ip
!
router ospf 1
 log-adjacency-changes
!
router bgp 1
 no synchronization
 bgp log-neighbor-changes
 neighbor RR1 peer-group
 neighbor RR1 remote-as 1
 neighbor 10.1.1.3 peer-group RR1
 no neighbor 10.1.1.3 activate
 neighbor 10.1.1.4 peer-group RR1
 no neighbor 10.1.1.4 activate
 no auto-summary
 !
 address-family vpnv4
  neighbor RR1 send-community extended
  neighbor RR1 route-reflector-client
  neighbor 10.1.1.3 activate
  neighbor 10.1.1.4 activate
 exit-address-family
!
end



RR2

hostname RR2
!
interface Loopback0
 ip address 10.1.1.2 255.255.255.255
 ip ospf 1 area 0
!
interface FastEthernet0/0
 ip address 192.168.1.14 255.255.255.252
 ip ospf 1 area 0
 mpls ip
!
interface FastEthernet0/1
 ip address 192.168.1.6 255.255.255.252
 ip ospf 1 area 0
 mpls ip
!
router ospf 1
 log-adjacency-changes
!
router bgp 1
 no synchronization
 bgp log-neighbor-changes
 neighbor RR2 peer-group
 neighbor RR2 remote-as 1
 neighbor 10.1.1.3 peer-group RR2
 no neighbor 10.1.1.3 activate
 neighbor 10.1.1.4 peer-group RR2
 no neighbor 10.1.1.4 activate
 no auto-summary
 !
 address-family vpnv4
  neighbor RR2 send-community extended
  neighbor RR2 route-reflector-client
  neighbor 10.1.1.3 activate
  neighbor 10.1.1.4 activate
 exit-address-family
!
end


PE1

hostname PE1
!
ip vrf Cust_A
 description Customer-A
 rd 1:100
 route-target export 1:100
 route-target import 1:100
!
interface Loopback0
 ip address 10.1.1.3 255.255.255.255
 ip ospf 1 area 0
!
interface FastEthernet0/0
 ip address 192.168.1.1 255.255.255.252
 ip ospf 1 area 0
 mpls ip
!
interface FastEthernet0/1
 ip address 192.168.1.5 255.255.255.252
 ip ospf 1 area 0
 mpls ip
!
interface FastEthernet1/0
 ip vrf forwarding Cust_A
 ip address 172.16.1.2 255.255.255.252
!
router ospf 100 vrf Cust_A
 log-adjacency-changes
 redistribute bgp 1 subnets
 network 0.0.0.0 255.255.255.255 area 1
!
router ospf 1
 log-adjacency-changes
!
router bgp 1
 no synchronization
 bgp log-neighbor-changes
 neighbor 10.1.1.1 remote-as 1
 neighbor 10.1.1.1 update-source Loopback0
 neighbor 10.1.1.2 remote-as 1
 neighbor 10.1.1.2 update-source Loopback0
 no auto-summary
 !
 address-family vpnv4
  neighbor 10.1.1.1 activate
  neighbor 10.1.1.1 send-community both
  neighbor 10.1.1.2 activate
  neighbor 10.1.1.2 send-community both
 exit-address-family
 !
 address-family ipv4 vrf Cust_A
  redistribute ospf 100 vrf Cust_A match internal external 1 external 2
  no synchronization
 exit-address-family
!
end


PE2

hostname PE2
!
ip vrf Cust_A
 description Customer-A
 rd 1:100
 route-target export 1:100
 route-target import 1:100
!
interface Loopback0
 ip address 10.1.1.4 255.255.255.255
 ip ospf 1 area 0
!
interface FastEthernet0/0
 ip address 192.168.1.13 255.255.255.252
 ip ospf 1 area 0
 mpls ip
!
interface FastEthernet0/1
 ip address 192.168.1.10 255.255.255.252
 ip ospf 1 area 0
 mpls ip
!
interface FastEthernet1/0
 ip vrf forwarding Cust_A
 ip address 172.16.1.6 255.255.255.252
!
router ospf 100 vrf Cust_A
 log-adjacency-changes
 redistribute bgp 1 subnets
 network 0.0.0.0 255.255.255.255 area 1
!
router ospf 1
 log-adjacency-changes
!
router bgp 1
 no synchronization
 bgp log-neighbor-changes
 neighbor 10.1.1.1 remote-as 1
 neighbor 10.1.1.1 update-source Loopback0
 neighbor 10.1.1.2 remote-as 1
 neighbor 10.1.1.2 update-source Loopback0
 no auto-summary
 !
 address-family vpnv4
  neighbor 10.1.1.1 activate
  neighbor 10.1.1.1 send-community both
  neighbor 10.1.1.2 activate
  neighbor 10.1.1.2 send-community both
 exit-address-family
 !
 address-family ipv4 vrf Cust_A
  redistribute ospf 100 vrf Cust_A match internal external 1 external 2
  no synchronization
 exit-address-family
!
end

CE1

hostname CE1
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
 ip ospf 100 area 1
!
interface FastEthernet0/0
 ip address 172.16.1.1 255.255.255.252
 ip ospf 100 area 1
!
router ospf 100
 log-adjacency-changes
!
end

CE2

hostname CE2
!
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
 ip ospf 100 area 1
!
interface FastEthernet0/0
 ip address 172.16.1.5 255.255.255.252
 ip ospf 100 area 1
!
router ospf 100
 log-adjacency-changes
!
end


Verificacion

CE1#ping 2.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/66/80 ms


CE1#traceroute 2.2.2.2

Type escape sequence to abort.
Tracing the route to 2.2.2.2

  1 172.16.1.2 36 msec 36 msec 32 msec
  2 192.168.1.6 [MPLS: Labels 20/21 Exp 0] 64 msec 68 msec 72 msec
  3 172.16.1.6 [MPLS: Label 21 Exp 0] 60 msec 48 msec 40 msec
  4 172.16.1.5 80 msec *  100 msec

Ad Home