2 Replies Latest reply: May 24, 2019 7:57 AM by nammon RSS

    RIP metric in MPLS VPN

    nammon

      Hi all,

      I am studying MPLS VPN with RIP, but there is a problem make me confused.

      XR2 learns loopback of R10 10.10.10.10/32 via RIP with metric 1

      XR2 redistributes this network to BGP

      XR1 learns this network via BGP with metric 1

      XR1 redistributes this network to RIP

      XR1 uses RIP to advertises this network with metric 1 to R1

      But why R1 still set this network to its RIP with metric of 1. I think it shoule be 2.

       

      RP/0/0/CPU0:XR2#show route vrf VPN_A

      R    10.10.10.10/32 [120/1] via 30.10.20.10, 01:23:25, GigabitEthernet0/0/0/0.1020

       

      RP/0/0/CPU0:XR2#show bgp vpnv4 unicast vrf VPN_A

         Network            Next Hop            Metric LocPrf Weight Path

      Route Distinguisher: 200:1 (default for vrf VPN_A)

      *> 10.10.10.10/32     30.10.20.10              1         32768 ?

       

      RP/0/0/CPU0:XR1#show bgp vpnv4 unicast vrf VPN_A

         Network            Next Hop            Metric LocPrf Weight Path

      Route Distinguisher: 200:1 (default for vrf VPN_A)

      *>i10.10.10.10/32     20.20.20.20              1    100      0 ?

       

      RP/0/0/CPU0:XR1#show rip vrf VPN_A database 10.10.10.10/32

      10.10.10.10/32

          [1] distance: 200    redistributed

       

      R1#show ip rip database vrf VPN_A 10.10.10.10 255.255.255.255

      10.10.10.10/32

          [1] via 30.1.19.19, 00:00:09, Ethernet0/0.30

       

      R1#show ip route vrf VPN_A

            10.0.0.0/32 is subnetted, 1 subnets

      R        10.10.10.10 [120/1] via 30.1.19.19, 00:00:17, Ethernet0/0.30

       

      Hope for your help.

      Thank in advance.

        • 1. Re: RIP metric in MPLS VPN
          David

          I have labbed this up, and I get the route appearing at the CPE with metric 2 as you suggest.

          R        192.168.0.2 [120/2] via 10.1.11.11, 00:00:09, Ethernet0/0

           

          I see the following on the PE that will send the BGP route down to the CPE. Notice the metric of 2:

          VRF: A

          =======================================

          Routes held in RIP's topology database:

          192.168.0.2/32

              [2] distance: 200    redistributed

           

          My BGP/RIP config is pretty basic:

           

          router bgp 100

          address-family vpnv4 unicast

          !

          neighbor 19.1.1.3

            remote-as 100

            update-source Loopback0

            address-family vpnv4 unicast

            !

          !

          vrf A

            rd 100:100

            address-family ipv4 unicast

             redistribute rip

            !

          router rip

          vrf A

            interface GigabitEthernet0/0/0/1

            !

            redistribute bgp 100

          !

          !

          • 2. Re: RIP metric in MPLS VPN
            nammon

            Thank David,

            Let me check my lab once again.