miercuri, 2 iulie 2014

NG-MVPN RSVP-TE ASR9K VRF Static

Topology




Case 1 :
- PC3 src for 232.100.100.15
- R5 Head for VRF CST1 using rsvp-te tunnel-mte534

PIM State

R8 :
sh ip mroute 232.100.100.15
(10.3.183.3, 232.100.100.15), 02:21:11/00:03:29, flags: sT
  Incoming interface: Vlan183, RPF nbr 0.0.0.0
  Outgoing interface list:
    Vlan158, Forward/Sparse, 01:16:01/00:03:24

R5 :
sh pim vrf CST1 topology 232.100.100.15
(10.3.183.3,232.100.100.15)SPT SSM Up: 01:19:31
JP: Join(00:00:14) RPF: GigabitEthernet0/0/0/2.158,10.3.58.8 Flags: MT
  tunnel-mte534               01:19:31  fwd LI LH

----------------------------------------------------------------------------------

R3:
show multicast route instance CST1 | find Group
Group: 232.100.100.15
    Source: 10.3.183.3/32
    Upstream interface: lsi.1
    Downstream interface list:
        ge-1/1/0.133

R9:
sh ip mroute  232.100.100.15
(10.3.183.3, 232.100.100.15), 01:36:51/00:02:27, flags: sTI
  Incoming interface: Vlan133, RPF nbr 10.3.39.3
  Outgoing interface list:
    Vlan902, Forward/Sparse, 00:35:42/00:02:27

----------------------------------------------------------------------------------

R4:
show multicast route instance CST1 | find Gro
Group: 232.100.100.15
    Source: 10.3.183.3/32
    Upstream interface: lsi.0
    Downstream interface list:
        ge-2/0/3.46
R6:
sh ip mroute 232.100.100.15
(10.3.183.3, 232.100.100.15), 01:36:01/00:02:21, flags: sTI
  Incoming interface: Vlan46, RPF nbr 100.1.46.4, RPF-MFD
  Outgoing interface list:
    Vlan106, Forward/Sparse, 01:36:01/00:02:21, H

----------------------------------------------------------------------------------

Configuration 

R5 :
multicast-routing
 address-family ipv4
  mdt source Loopback0
  rate-per-route
  interface all enable
  accounting per-prefix
 !
 vrf CST1
  address-family ipv4
   mdt source Loopback0
   mdt static p2mp-te tunnel-mte534
   rate-per-route
   interface all enable
   bgp auto-discovery p2mp-te
    inter-as
    leaf-info-required
   !
   accounting per-prefix
  !
 !
!
router pim
 vrf CST1
  address-family ipv4
   rpf topology route-policy VRF_CST1
   mdt c-multicast-routing bgp
   !
   interface tunnel-mte534
    enable
   !
  !
 !
!
router bgp 6746
 bgp router-id 10.20.5.5
 address-family vpnv4 unicast
  vrf all
   label mode per-vrf
  !
 !
 address-family ipv4 mdt
 !
 address-family ipv4 mvpn
 !
 neighbor 10.20.3.3
  remote-as 6746
  update-source Loopback0
  address-family vpnv4 unicast
  !
  address-family ipv4 mdt
  !
  address-family ipv4 mvpn
  !
 !
 neighbor 10.20.4.4
  remote-as 6746
  update-source Loopback0
  address-family vpnv4 unicast
   next-hop-self
  !
  address-family ipv4 mdt
  !
  address-family ipv4 mvpn
  !
 !
 vrf CST1
  rd 10.20.5.5:1
  address-family ipv4 unicast
   redistribute connected
   redistribute ospf 100 match internal external
  !
  address-family ipv4 mvpn
  !
 !
!
interface tunnel-mte534
 ipv4 unnumbered Loopback0
 destination 10.20.3.3
  path-option 2 dynamic
 !
 destination 10.20.4.4
  path-option 1 dynamic
 !
!

R3:

root@R3> show configuration routing-instances CST1
instance-type vrf;
interface ge-1/1/0.133;
route-distinguisher 10.20.3.3:3;
vrf-export CST1-EXPORT;
vrf-target {
    import target:1:1;
    export target:1:1;
}
vrf-table-label;
protocols {
    ospf {
        export MBGP-OSPF;
        area 0.0.0.0 {
            interface ge-1/1/0.133 {
                interface-type p2p;
            }
        }
    }
    pim {                        
        interface ge-1/1/0.133;
    }
    mvpn {
        receiver-site;
        unicast-umh-election;
        mvpn-mode {
            rpt-spt;
        }
        route-target {
            import-target {
                target target:1:1;
            }
            export-target {
                target target:1:1;
            }
        }
    }
}

R4: 

root@R4> show configuration routing-instances CST1
instance-type vrf;
interface ge-2/0/3.46;
interface lo0.144;
route-distinguisher 10.20.4.4:4;
vrf-export CST1-EXPORT;
vrf-target {
    import target:1:1;
    export target:1:1;
}
vrf-table-label;
protocols {
    ospf {
        export MBGP-OSPF;
        area 0.0.0.46 {
            interface ge-2/0/3.46 {
                interface-type p2p;
            }
        }
    }
    pim {                          
        interface ge-2/0/3.46 {
            priority 100;
        }
        interface lo0.144;
    }
    mvpn {
        mvpn-mode {
            rpt-spt;
        }
        route-target {
            import-target {
                target target:1:1;
            }                          
            export-target {
                target target:1:1;
            }
        }
    }

}

Notes:

http://d2zmdbbm9feqrf.cloudfront.net/2014/eur/pdf/BRKIPM-2011.pdf