MPLS Multi Vendor(4/6): Configuring RIP as PE-CE protocol


In previous articles we configured the MPLS core with IS-IS and LDP, we configured also MP-BGP between the PEs and the VPNv4 Route Reflector, and we have tested that we have reachability PE to PE for each VRF/Routing Instance.

In this article we are going to configure the EVEN routers with RIP as the routing protocol between PE and CE.


Configuring RIP as PE-CE protocol:



R6:


hostname R6
interface Loopback12
 ip address 12.12.12.12 255.255.255.255

interface Loopback66
 ip address 66.66.66.66 255.255.255.255

interface Ethernet0/0
 ip address 192.168.1.2 255.255.255.0

router rip
 version 2
 network 12.0.0.0
 network 66.0.0.0
 network 192.168.1.0



R8:


hostname R8
interface Loopback44
 ip address 44.44.44.44 255.255.255.255

interface Loopback88
 ip address 88.88.88.88 255.255.255.255

interface Ethernet0/0
 ip address 192.168.2.2 255.255.255.0

router rip
 version 2
 network 44.0.0.0
 network 88.0.0.0
 network 192.168.2.0


CiPE:


For the IOS router it is needed to create an address family for the vrf inside the rip process and redistribute the BGP(via VPNv4). It is also needed to redistribute in the BGP vrf EVEN address family RIP.

router rip
 address-family ipv4 vrf EVEN
  redistribute bgp 100 metric 3
  network 192.168.1.0
  no auto-summary
  version 2
 exit-address-family

router bgp 100
 address-family ipv4 vrf EVEN
  redistribute rip

An important detail in the BGP to RIP redistributions is that the metric is mandatory, if you don't adjust any metric for the redistribution the routes won't be redistributed.

JPE:


set policy-options policy-statement to_RIP from protocol bgp
set policy-options policy-statement to_RIP then accept
set routing-instances EVEN protocols rip group R8 export to_RIP
set routing-instances EVEN protocols rip group R8 neighbor ge-0/0/6.0


Junos PE-CE Configuration is quite easy, by default Junos inject the routes from the PE-CE protocol to the VPNv4 BGP, but it is needed to create a policy to export the routes from BGP to RIP.




Verification:



R6:


The routing table have all the needed routes, ping to the other CE is working, and tracert is also working.

R6#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is not set

      12.0.0.0/32 is subnetted, 1 subnets
C        12.12.12.12 is directly connected, Loopback12
R     44.0.0.0/8 [120/3] via 192.168.1.1, 00:00:14, Ethernet0/0
      66.0.0.0/32 is subnetted, 1 subnets
C        66.66.66.66 is directly connected, Loopback66
R     88.0.0.0/8 [120/3] via 192.168.1.1, 00:00:14, Ethernet0/0
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/24 is directly connected, Ethernet0/0
L        192.168.1.2/32 is directly connected, Ethernet0/0
R     192.168.2.0/24 [120/3] via 192.168.1.1, 00:00:14, Ethernet0/0

R6#ping 88.88.88.88 source loopback 12
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 88.88.88.88, timeout is 2 seconds:
Packet sent with a source address of 12.12.12.12
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 3/3/5 ms

R6#traceroute 88.88.88.88
Type escape sequence to abort.
Tracing the route to 88.88.88.88
VRF info: (vrf in name/id, vrf out name/id)
  1 192.168.1.1 1 msec 0 msec 0 msec
  2  *  *  *
  3 10.0.2.2 [MPLS: Labels 18/16 Exp 0] 3 msec 3 msec 3 msec
  4 192.168.2.1 3 msec 3 msec 3 msec
  5 192.168.2.2 3 msec 5 msec *


R8:


R8 have also the right information in the routing table, connectivity was tested previously from R6.

R8#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is not set

R     12.0.0.0/8 [120/1] via 192.168.2.1, 00:00:25, Ethernet0/0
      44.0.0.0/32 is subnetted, 1 subnets
C        44.44.44.44 is directly connected, Loopback44
R     66.0.0.0/8 [120/1] via 192.168.2.1, 00:00:25, Ethernet0/0
      88.0.0.0/32 is subnetted, 1 subnets
C        88.88.88.88 is directly connected, Loopback88
R     192.168.1.0/24 [120/1] via 192.168.2.1, 00:00:25, Ethernet0/0
      192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.2.0/24 is directly connected, Ethernet0/0
L        192.168.2.2/32 is directly connected, Ethernet0/0

CiPE:


CiPE shows the local routes via RIP, and remote routes via BGP as expected.

CiPE#show ip route vrf EVEN

Routing Table: EVEN
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is not set

R     12.0.0.0/8 [120/1] via 192.168.1.2, 00:00:18, Ethernet0/0
B     44.0.0.0/8 [200/2] via 5.5.5.5, 00:35:11
R     66.0.0.0/8 [120/1] via 192.168.1.2, 00:00:18, Ethernet0/0
B     88.0.0.0/8 [200/2] via 5.5.5.5, 00:35:11
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/24 is directly connected, Ethernet0/0
L        192.168.1.1/32 is directly connected, Ethernet0/0
B     192.168.2.0/24 [200/0] via 5.5.5.5, 02:31:29

JPE:


Same behaviour for JPE, the final multicast route is due RIP version 2 uses a multicast group to exchange the information with all the routers in the link.

lab@JPE> show route table EVEN.inet.0

EVEN.inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

12.0.0.0/8         *[BGP/170] 01:16:24, MED 1, localpref 100, from 1.1.1.1
                      AS path: ?, validation-state: unverified
                    > to 10.0.4.1 via ge-0/0/7.0, Push 26, Push 21(top)
44.0.0.0/8         *[RIP/100] 00:37:10, metric 2, tag 0
                    > to 192.168.2.2 via ge-0/0/6.0
66.0.0.0/8         *[BGP/170] 01:16:24, MED 1, localpref 100, from 1.1.1.1
                      AS path: ?, validation-state: unverified
                    > to 10.0.4.1 via ge-0/0/7.0, Push 27, Push 21(top)
88.0.0.0/8         *[RIP/100] 00:37:10, metric 2, tag 0
                    > to 192.168.2.2 via ge-0/0/6.0
192.168.1.0/24     *[BGP/170] 01:16:24, MED 0, localpref 100, from 1.1.1.1
                      AS path: I, validation-state: unverified
                    > to 10.0.4.1 via ge-0/0/7.0, Push 25, Push 21(top)
192.168.2.0/24     *[Direct/0] 02:56:27
                    > via ge-0/0/6.0
192.168.2.1/32     *[Local/0] 02:56:28
                      Local via ge-0/0/6.0
224.0.0.9/32       *[RIP/100] 00:28:16, metric 1
                      MultiRecv

Share this

Related Posts

Previous
Next Post »