Friday, September 12, 2014

MPLS - CE-PE routing : RIP

Scenario

ISP performs MPLS VPN for the company1.
Company1 performs RIP version2 for their network.
Company1 doesn't know about MPLS.



The ip route of R4 is below.
R5 and R6 of hop count are 1 which means that they connected like a star topology.








R4#
interface Loopback0
 ip address 1.1.4.4 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/0.14
 encapsulation dot1Q 14
 ip address 1.1.14.4 255.255.255.0
!
router rip
 version 2
 network 1.0.0.0
!
R5#
interface Loopback0
 ip address 1.1.5.5 255.255.255.255
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/0.25
 encapsulation dot1Q 25
 ip address 1.1.25.5 255.255.255.0
!
router rip
 version 2
 network 1.0.0.0
!
R6#
interface Loopback0
 ip address 1.1.6.6 255.255.255.255
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/0.36
 encapsulation dot1Q 36
 ip address 1.1.36.6 255.255.255.0
!
router rip
 version 2
 network 1.0.0.0
!
R1#
ip cef
!
ip vrf company1
 rd 1:100
 route-target export 1:100
 route-target import 1:100
!
mpls label protocol ldp
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/0.12
 encapsulation dot1Q 12
 ip address 1.1.12.1 255.255.255.0
 mpls ip
!
interface FastEthernet0/0.14
 encapsulation dot1Q 14
 ip vrf forwarding company1
 ip address 1.1.14.1 255.255.255.0
!
interface FastEthernet0/0.17
 encapsulation dot1Q 17
 ip address 1.1.17.1 255.255.255.0
!
router eigrp 1
 network 1.1.1.1 0.0.0.0
 network 1.1.12.1 0.0.0.0
 auto-summary
!
router rip
 version 2
 !
 address-family ipv4 vrf company1
  redistribute bgp 1 metric 1                                   ### MBGP into RIP
  network 1.0.0.0
  no auto-summary
 exit-address-family
!
router bgp 1
 no synchronization
 bgp router-id 1.1.1.1
 bgp log-neighbor-changes
 neighbor 1.1.2.2 remote-as 1
 neighbor 1.1.2.2 update-source Loopback0
 no auto-summary
 !
 address-family vpnv4
  neighbor 1.1.2.2 activate
  neighbor 1.1.2.2 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf company1
  redistribute rip                                                          ### RIP v2 into MBGP
  no synchronization
 exit-address-family
!
mpls ldp router-id Loopback0

R2#
ip cef
!
ip vrf company1
 rd 1:100
 route-target export 1:100
 route-target import 1:100
!
mpls label protocol ldp
!
interface Loopback0
 ip address 1.1.2.2 255.255.255.255
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/0.12
 encapsulation dot1Q 12
 ip address 1.1.12.2 255.255.255.0
 mpls label protocol ldp
 mpls ip
!
interface FastEthernet0/0.23
 encapsulation dot1Q 23
 ip address 1.1.23.2 255.255.255.0
 mpls label protocol ldp
 mpls ip
!
interface FastEthernet0/0.25
 encapsulation dot1Q 25
 ip vrf forwarding company1
 ip address 1.1.25.2 255.255.255.0
!
router eigrp 1
 network 1.1.2.2 0.0.0.0
 network 1.1.12.2 0.0.0.0
 network 1.1.23.2 0.0.0.0
 auto-summary
!
router rip
 version 2
 !
 address-family ipv4 vrf company1
  redistribute bgp 1 metric 1
  network 1.0.0.0
  no auto-summary
 exit-address-family
!
router bgp 1
 no synchronization
 bgp router-id 1.1.2.2
 bgp log-neighbor-changes
 neighbor 1.1.1.1 remote-as 1
 neighbor 1.1.1.1 update-source Loopback0
 neighbor 1.1.1.1 route-reflector-client                ###to solve BGP split-horizon.
 neighbor 1.1.3.3 remote-as 1
 neighbor 1.1.3.3 update-source Loopback0
 neighbor 1.1.3.3 route-reflector-client                ###to solve BGP split-horizon.
 no auto-summary
 !
 address-family vpnv4
  neighbor 1.1.1.1 activate
  neighbor 1.1.1.1 send-community extended
  neighbor 1.1.1.1 route-reflector-client              ###to solve BGP split-horizon.
  neighbor 1.1.3.3 activate
  neighbor 1.1.3.3 send-community extended
  neighbor 1.1.3.3 route-reflector-client              ###to solve BGP split-horizon.
 exit-address-family
 !
 address-family ipv4 vrf company1
  redistribute rip                                                   ###RIP network into MBGP
  no synchronization
 exit-address-family
!
mpls ldp router-id Loopback0
!
R3#
ip cef
!
ip vrf company1
 rd 1:100
 route-target export 1:100
 route-target import 1:100
!
interface Loopback0
 ip address 1.1.3.3 255.255.255.255
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/0.23
 encapsulation dot1Q 23
 ip address 1.1.23.3 255.255.255.0
 mpls label protocol ldp
 mpls ip
!
interface FastEthernet0/0.36
 encapsulation dot1Q 36
 ip vrf forwarding company1
 ip address 1.1.36.3 255.255.255.0
!
interface FastEthernet0/0.38
 encapsulation dot1Q 38
 ip address 1.1.38.3 255.255.255.0
!
router eigrp 1
 network 1.1.3.3 0.0.0.0
 network 1.1.23.3 0.0.0.0
 auto-summary
!
router rip
 version 2
 !
 address-family ipv4 vrf company1
  redistribute bgp 1 metric 1                                    #### MBGP into RIP v2
  network 1.0.0.0
  no auto-summary
 exit-address-family
!
router bgp 1
 no synchronization
 bgp router-id 1.1.3.3
 bgp log-neighbor-changes
 neighbor 1.1.2.2 remote-as 1
 neighbor 1.1.2.2 update-source Loopback0
 no auto-summary
 !
 address-family vpnv4
  neighbor 1.1.2.2 activate
  neighbor 1.1.2.2 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf company1
  redistribute rip                                                           ### RIP v2 into MBGP
  no synchronization
 exit-address-family
!
mpls ldp router-id Loopback0
!



No comments:

Post a Comment