MPLS VPN Inter-AS Option C : Cisco IOS-XE

Summary

  • ASBRs establishes IPv4 Labelled-Unicast BGP peering
  • They exchange labels and prefixes for Loopback addresses
  • Remote Loopbacks are redistributed into IGP at the ASBR
  • RRs establish VPNv4 BGP session to exchange VPN Prefixes and Labels
  • Packet in the Inter-AS link has two labels (VPN label and Transport Label )

Initial Configurations

AS 1 Routers

PE1

!
hostname PE1

vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
 exit-address-family
!
vrf definition B
 rd 1:2
 !
 address-family ipv4
  route-target export 1:2
  route-target import 1:2
 exit-address-family
!
mpls label protocol ldp
!
interface Loopback0
 ip address 11.11.11.11 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.11.12.11 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
interface GigabitEthernet2
 vrf forwarding A
 ip address 172.16.1.1 255.255.255.252
 no shutdown
!
interface GigabitEthernet3
 vrf forwarding B
 ip address 172.16.1.5 255.255.255.252
 no shutdown
!
router ospf 1
 router-id 11.11.11.11
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 11.11.11.11
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 13.13.13.13 remote-as 1
 neighbor 13.13.13.13 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 13.13.13.13 activate
  neighbor 13.13.13.13 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf A
  redistribute connected
  neighbor 172.16.1.2 remote-as 65101
  neighbor 172.16.1.2 activate
 exit-address-family
 !
 address-family ipv4 vrf B
  redistribute connected
  neighbor 172.16.1.6 remote-as 65201
  neighbor 172.16.1.6 activate
 exit-address-family
!
mpls ldp router-id Loopback0
!

P1

!
hostname P1
!
mpls label protocol ldp

!
interface Loopback0
 ip address 12.12.12.12 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.11.12.12 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
interface GigabitEthernet2
 mtu 1600
 ip address 10.12.13.12 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown

interface GigabitEthernet3
 mtu 1600
 ip address 10.12.14.12 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown


!
router ospf 1
 router-id 12.12.12.12
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
 no passive-interface GigabitEthernet3
 mpls ldp sync
 mpls ldp autoconfig area 0
!
mpls ldp router-id Loopback0
!

RR1

  • VPNv4 Peering with ASBR1 is not required assuming no CEs connected to it.
!
hostname RR1
!
mpls label protocol ldp
!
interface Loopback0
 ip address 13.13.13.13 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.12.13.13 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
router ospf 1
 router-id 13.13.13.13
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 13.13.13.13
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 11.11.11.11 remote-as 1
 neighbor 11.11.11.11 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 11.11.11.11 activate
  neighbor 11.11.11.11 send-community extended
  neighbor 11.11.11.11 route-reflector-client
 exit-address-family
!
mpls ldp router-id Loopback0
!

ASBR1

!
hostname ASBR1
!
mpls label protocol ldp
1
interface Loopback0
 ip address 14.14.14.14 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.12.14.14 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
router ospf 1
 router-id 14.14.14.14
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
mpls ldp router-id Loopback0

AS 2 Routers

PE2

!
hostname PE2

vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
 exit-address-family
!
vrf definition B
 rd 1:2
 !
 address-family ipv4
  route-target export 1:2
  route-target import 1:2
 exit-address-family
!
mpls label protocol ldp
!
interface Loopback0
 ip address 21.21.21.21 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.11.12.11 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
interface GigabitEthernet2
 vrf forwarding A
 ip address 172.16.2.1 255.255.255.252
 no shutdown
!
interface GigabitEthernet3
 vrf forwarding B
 ip address 172.16.2.5 255.255.255.252
 no shutdown
!
router ospf 2
 router-id 21.21.21.21
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 2
 bgp router-id 21.21.21.21
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 23.23.23.23 remote-as 2
 neighbor 23.23.23.23 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 23.23.23.23 activate
  neighbor 23.23.23.23 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf A
  redistribute connected
  neighbor 172.16.2.2 remote-as 65102
  neighbor 172.16.2.2 activate
 exit-address-family
 !
 address-family ipv4 vrf B
  redistribute connected
  neighbor 172.16.2.6 remote-as 65202
  neighbor 172.16.2.6 activate
 exit-address-family
!
mpls ldp router-id Loopback0
!

P2

!
hostname P2
!
mpls label protocol ldp

!
interface Loopback0
 ip address 22.22.22.22 255.255.255.255
 ip ospf 2 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.21.22.22 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown
!
interface GigabitEthernet2
 mtu 1600
 ip address 20.22.23.22 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown

interface GigabitEthernet3
 mtu 1600
 ip address 20.22.24.22 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown


!
router ospf 2
 router-id 22.22.22.22
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
 no passive-interface GigabitEthernet3
 mpls ldp sync
 mpls ldp autoconfig area 0
!
mpls ldp router-id Loopback0
!

RR2

  • VPNv4 Peering with ASBR2 is not required assuming no CEs connected to it.
!
hostname RR2
!
mpls label protocol ldp
!
interface Loopback0
 ip address 23.23.23.23 255.255.255.255
 ip ospf 2 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.22.23.23 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown
!
router ospf 1
 router-id 23.23.23.23
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 2
 bgp router-id 23.23.23.23
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 21.21.21.21 remote-as 2
 neighbor 21.21.21.21 update-source Loopback0
!
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 21.21.21.21 activate
  neighbor 21.21.21.21 send-community extended
  neighbor 21.21.21.21 route-reflector-client
 exit-address-family
!
mpls ldp router-id Loopback0
!

ASBR2

!
hostname ASBR2
!
mpls label protocol ldp
!
interface Loopback0
 ip address 24.24.24.24 255.255.255.255
 ip ospf 2 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.22.24.24 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown
!
router ospf 2
 router-id 24.24.24.24
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
mpls ldp router-id Loopback0
!

Inter-AS Configuration

VRFs and Interfaces

  • VRFs are not required on the ASBRs

ASBR1

interface GigabitEthernet2
 mtu 1600
 ip address 172.16.0.1 255.255.255.252
 negotiation auto
 mpls bgp forwarding
 no shutdown

ASBR2

interface GigabitEthernet2
 mtu 1600
 ip address 172.16.0.2 255.255.255.252
 negotiation auto
 mpls bgp forwarding
 no shutdown

Inter-AS BGP

  • Local PE Loopback 0 addresses are advertised to the remote ASBR in the IPv4 LU AF.

ASBR1

router bgp 1
 bgp router-id 14.14.14.14
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 no bgp default route-target filter
 neighbor 172.16.0.2 remote-as 2
 !
 address-family ipv4
  network 11.11.11.11 mask 255.255.255.255
  network 13.13.13.13 mask 255.255.255.255
  network 14.14.14.14 mask 255.255.255.255
  neighbor 172.16.0.2 activate
  neighbor 172.16.0.2 send-label
 exit-address-family

ASBR2

router bgp 2
 bgp router-id 24.24.24.24
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 no bgp default route-target filter
 neighbor 172.16.0.1 remote-as 1
 !
 address-family ipv4
  network 21.21.21.21 mask 255.255.255.255
  network 23.23.23.23 mask 255.255.255.255
  network 24.24.24.24 mask 255.255.255.255
  neighbor 172.16.0.1 activate
  neighbor 172.16.0.1 send-label
 exit-address-family

Redistributing Remote Loopbacks into IGP

ASBR1

ip prefix-list REMOTE-LOOPBACKS seq 1 permit 21.21.21.21/32
ip prefix-list REMOTE-LOOPBACKS seq 2 permit 23.23.23.23/32
!
!
route-map REMOTE-LOOPBACKS permit 10
 match ip address prefix-list REMOTE-LOOPBACKS
!
!
router ospf 1
 redistribute bgp 1 route-map REMOTE-LOOPBACKS
!

ASBR2

ip prefix-list REMOTE-LOOPBACKS seq 1 permit 11.11.11.11/32
ip prefix-list REMOTE-LOOPBACKS seq 2 permit 13.13.13.13/32
!
!
route-map REMOTE-LOOPBACKS permit 10
 match ip address prefix-list REMOTE-LOOPBACKS
!
!
router ospf 2
 redistribute bgp 2 route-map REMOTE-LOOPBACKS
!

RR1

  • EBGP Multi-hop is required between RRs
  • Next-Hop unchanged is required between RRs
router bgp 1
 neighbor 23.23.23.23 remote-as 2
 neighbor 23.23.23.23 ebgp-multihop 255
 neighbor 23.23.23.23 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 23.23.23.23 activate
  neighbor 23.23.23.23 send-community extended
  neighbor 23.23.23.23 next-hop-unchanged
 exit-address-family

RR2

  • EBGP Multi-hop is required between RRs
  • Next-Hop unchanged is required between RRs
router bgp 2
 neighbor 13.13.13.13 remote-as 1
 neighbor 13.13.13.13 ebgp-multihop 255
 neighbor 13.13.13.13 update-source Loopback0
 ! 
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 13.13.13.13 activate
  neighbor 13.13.13.13 send-community extended
  neighbor 13.13.13.13 next-hop-unchanged
 exit-address-family

Verification

ASBR1

ASBR1#show bgp ipv4 unicast summary | beg Nei
Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
172.16.0.2      4            2     154     155        7    0    0 02:16:10        3

ASBR1#show bgp ipv4 unicast
BGP table version is 7, local router ID is 14.14.14.14
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>   11.11.11.11/32   10.12.14.12              3         32768 i
 *>   13.13.13.13/32   10.12.14.12              3         32768 i
 *>   14.14.14.14/32   0.0.0.0                  0         32768 i
 *>   21.21.21.21/32   172.16.0.2               3             0 2 i
 *>   23.23.23.23/32   172.16.0.2               3             0 2 i
 *>   24.24.24.24/32   172.16.0.2               0             0 2 i
ASBR1#
ASBR1#show bgp labels
% Command accepted but obsolete, unreleased or unsupported; see documentation.

   Network          Next Hop      In label/Out label
   11.11.11.11/32   10.12.14.12     19/nolabel
   13.13.13.13/32   10.12.14.12     17/nolabel
   14.14.14.14/32   0.0.0.0         imp-null/nolabel
   21.21.21.21/32   172.16.0.2      nolabel/21
   23.23.23.23/32   172.16.0.2      nolabel/20
   24.24.24.24/32   172.16.0.2      nolabel/imp-null

ASBR1#show mpls forwarding-table
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
16         Pop Label  172.16.0.2/32    0             Gi2        172.16.0.2
17         18         13.13.13.13/32   12238057      Gi1        10.12.14.12
18         Pop Label  12.12.12.12/32   0             Gi1        10.12.14.12
19         16         11.11.11.11/32   12200000      Gi1        10.12.14.12
20         Pop Label  10.12.13.0/24    0             Gi1        10.12.14.12
21         Pop Label  10.11.12.0/24    0             Gi1        10.12.14.12
30         21         21.21.21.21/32   10214572      Gi2        172.16.0.2
31         20         23.23.23.23/32   14221610      Gi2        172.16.0.2
ASBR1#

ASBR2

ASBR2#show bgp ipv4 unicast summary | beg Nei
Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
172.16.0.1      4            1     157     156       13    0    0 02:17:44        3

ASBR2#show bgp ipv4 unicast
BGP table version is 13, local router ID is 24.24.24.24
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>   11.11.11.11/32   172.16.0.1               3             0 1 i
 *>   13.13.13.13/32   172.16.0.1               3             0 1 i
 *>   14.14.14.14/32   172.16.0.1               0             0 1 i
 *>   21.21.21.21/32   20.22.24.22              3         32768 i
 *>   23.23.23.23/32   20.22.24.22              3         32768 i
 *>   24.24.24.24/32   0.0.0.0                  0         32768 i
ASBR2#
ASBR2#
ASBR2#show bgp labels
% Command accepted but obsolete, unreleased or unsupported; see documentation.

   Network          Next Hop      In label/Out label
   11.11.11.11/32   172.16.0.1      nolabel/19
   13.13.13.13/32   172.16.0.1      nolabel/17
   14.14.14.14/32   172.16.0.1      nolabel/imp-null
   21.21.21.21/32   20.22.24.22     21/nolabel
   23.23.23.23/32   20.22.24.22     20/nolabel
   24.24.24.24/32   0.0.0.0         imp-null/nolabel

ASBR2#show mpls forwarding-table
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
16         Pop Label  172.16.0.1/32    0             Gi2        172.16.0.1
17         Pop Label  22.22.22.22/32   0             Gi1        20.22.24.22
18         Pop Label  20.22.23.0/24    0             Gi1        20.22.24.22
19         Pop Label  20.21.22.0/24    0             Gi1        20.22.24.22
20         17         23.23.23.23/32   14222423      Gi1        20.22.24.22
21         18         21.21.21.21/32   10214572      Gi1        20.22.24.22
22         19         11.11.11.11/32   12200000      Gi2        172.16.0.1
23         17         13.13.13.13/32   12238468      Gi2        172.16.0.1
ASBR2#

RR1

RR1#show ip route ospf | beg Gateway
Gateway of last resort is not set

      10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O        10.11.12.0/24 [110/2] via 10.12.13.12, 02:41:27, GigabitEthernet1
O        10.12.14.0/24 [110/2] via 10.12.13.12, 02:41:27, GigabitEthernet1
      11.0.0.0/32 is subnetted, 1 subnets
O        11.11.11.11 [110/3] via 10.12.13.12, 02:41:25, GigabitEthernet1
      12.0.0.0/32 is subnetted, 1 subnets
O        12.12.12.12 [110/2] via 10.12.13.12, 02:41:27, GigabitEthernet1
      14.0.0.0/32 is subnetted, 1 subnets
O        14.14.14.14 [110/3] via 10.12.13.12, 02:41:27, GigabitEthernet1
      21.0.0.0/32 is subnetted, 1 subnets
O E2     21.21.21.21 [110/1] via 10.12.13.12, 02:16:38, GigabitEthernet1
      23.0.0.0/32 is subnetted, 1 subnets
O E2     23.23.23.23 [110/1] via 10.12.13.12, 02:16:38, GigabitEthernet1
RR1#
RR1#show bgp vpnv4 unicast all summary | beg Neighbor
Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
11.11.11.11     4            1     182     194       21    0    0 02:41:31        4
23.23.23.23     4            2     154     155       21    0    0 02:05:32        4

RR1#
RR1#show bgp vpnv4 unicast all
BGP table version is 21, local router ID is 13.13.13.13
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:1
 *>i  172.16.1.0/30    11.11.11.11              0    100      0 ?
 *>   172.16.2.0/30    21.21.21.21                            0 2 ?
 *>i  192.168.1.1/32   11.11.11.11              0    100      0 65101 i
 *>   192.168.1.2/32   21.21.21.21                            0 2 65102 i
Route Distinguisher: 1:2
 *>i  172.16.1.4/30    11.11.11.11              0    100      0 ?
 *>   172.16.2.4/30    21.21.21.21                            0 2 ?
 *>i  192.168.2.1/32   11.11.11.11              0    100      0 65201 i
 *>   192.168.2.2/32   21.21.21.21                            0 2 65202 i
RR1#

RR2

RR2#show ip route ospf | beg Gateway
Gateway of last resort is not set

      11.0.0.0/32 is subnetted, 1 subnets
O E2     11.11.11.11 [110/1] via 20.22.23.22, 02:10:29, GigabitEthernet1
      13.0.0.0/32 is subnetted, 1 subnets
O E2     13.13.13.13 [110/1] via 20.22.23.22, 02:10:29, GigabitEthernet1
      20.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O        20.21.22.0/24 [110/2] via 20.22.23.22, 02:42:38, GigabitEthernet1
O        20.22.24.0/24 [110/2] via 20.22.23.22, 02:42:38, GigabitEthernet1
      21.0.0.0/32 is subnetted, 1 subnets
O        21.21.21.21 [110/3] via 20.22.23.22, 02:42:38, GigabitEthernet1
      22.0.0.0/32 is subnetted, 1 subnets
O        22.22.22.22 [110/2] via 20.22.23.22, 02:42:38, GigabitEthernet1
      24.0.0.0/32 is subnetted, 1 subnets
O        24.24.24.24 [110/3] via 20.22.23.22, 02:42:37, GigabitEthernet1
RR2#show bgp vpnv4 unicast all summary | beg Neighbor
Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
13.13.13.13     4            1     156     155       21    0    0 02:06:58        4
21.21.21.21     4            2     186     197       21    0    0 02:42:51        4

RR2#show bgp vpnv4 unicast all
BGP table version is 21, local router ID is 23.23.23.23
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:1
 *>   172.16.1.0/30    11.11.11.11                            0 1 ?
 *>i  172.16.2.0/30    21.21.21.21              0    100      0 ?
 *>   192.168.1.1/32   11.11.11.11                            0 1 65101 i
 *>i  192.168.1.2/32   21.21.21.21              0    100      0 65102 i
Route Distinguisher: 1:2
 *>   172.16.1.4/30    11.11.11.11                            0 1 ?
 *>i  172.16.2.4/30    21.21.21.21              0    100      0 ?
 *>   192.168.2.1/32   11.11.11.11                            0 1 65201 i
 *>i  192.168.2.2/32   21.21.21.21              0    100      0 65202 i
RR2#

PE1

PE1#show bgp vpnv4 unicast all
BGP table version is 29, local router ID is 11.11.11.11
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:1 (default for vrf A)
 *>   172.16.1.0/30    0.0.0.0                  0         32768 ?
 *>i  172.16.2.0/30    21.21.21.21              0    100      0 2 ?
 *>   192.168.1.1/32   172.16.1.2               0             0 65101 i
 *>i  192.168.1.2/32   21.21.21.21              0    100      0 2 65102 i
Route Distinguisher: 1:2 (default for vrf B)
 *>   172.16.1.4/30    0.0.0.0                  0         32768 ?
 *>i  172.16.2.4/30    21.21.21.21              0    100      0 2 ?
 *>   192.168.2.1/32   172.16.1.6               0             0 65201 i
 *>i  192.168.2.2/32   21.21.21.21              0    100      0 2 65202 i
PE1#
PE1#show bgp vpnv4 unicast all 192.168.1.2/32
BGP routing table entry for 1:1:192.168.1.2/32, version 27
Paths: (1 available, best #1, table A)
  Flag: 0x100
  Advertised to update-groups:
     3
  Refresh Epoch 1
  2 65102
    21.21.21.21 (metric 1) (via default) from 13.13.13.13 (13.13.13.13)
      Origin IGP, metric 0, localpref 100, valid, internal, best
      Extended Community: RT:1:1
      mpls labels in/out nolabel/22
      rx pathid: 0, tx pathid: 0x0
      Updated on Oct 13 2022 01:41:45 UTC
PE1#show bgp vpnv4 unicast all 192.168.2.2/32
BGP routing table entry for 1:2:192.168.2.2/32, version 29
Paths: (1 available, best #1, table B)
  Flag: 0x100
  Advertised to update-groups:
     1
  Refresh Epoch 1
  2 65202
    21.21.21.21 (metric 1) (via default) from 13.13.13.13 (13.13.13.13)
      Origin IGP, metric 0, localpref 100, valid, internal, best
      Extended Community: RT:1:2
      mpls labels in/out nolabel/24
      rx pathid: 0, tx pathid: 0x0
      Updated on Oct 13 2022 01:41:45 UTC

PE1#show ip route vrf A bgp

Routing Table: A
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
B        172.16.2.0/30 [200/0] via 21.21.21.21, 03:26:17
      192.168.1.0/32 is subnetted, 2 subnets
B        192.168.1.1 [20/0] via 172.16.1.2, 04:52:06
B        192.168.1.2 [200/0] via 21.21.21.21, 03:26:17
PE1#
PE1#
PE1#show ip route vrf B bgp

Routing Table: B
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
B        172.16.2.4/30 [200/0] via 21.21.21.21, 03:26:22
      192.168.2.0/32 is subnetted, 2 subnets
B        192.168.2.1 [20/0] via 172.16.1.6, 04:52:11
B        192.168.2.2 [200/0] via 21.21.21.21, 03:26:22
PE1#

PE2

PE2#show bgp vpnv4 unicast all
BGP table version is 29, local router ID is 21.21.21.21
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:1 (default for vrf A)
 *>i  172.16.1.0/30    11.11.11.11              0    100      0 1 ?
 *>   172.16.2.0/30    0.0.0.0                  0         32768 ?
 *>i  192.168.1.1/32   11.11.11.11              0    100      0 1 65101 i
 *>   192.168.1.2/32   172.16.2.2               0             0 65102 i
Route Distinguisher: 1:2 (default for vrf B)
 *>i  172.16.1.4/30    11.11.11.11              0    100      0 1 ?
 *>   172.16.2.4/30    0.0.0.0                  0         32768 ?
 *>i  192.168.2.1/32   11.11.11.11              0    100      0 1 65201 i
 *>   192.168.2.2/32   172.16.2.6               0             0 65202 i
PE2#
PE2#
PE2#show bgp vpnv4 unicast all 192.168.1.1/32
BGP routing table entry for 1:1:192.168.1.1/32, version 27
Paths: (1 available, best #1, table A)
  Flag: 0x100
  Advertised to update-groups:
     2
  Refresh Epoch 1
  1 65101
    11.11.11.11 (metric 1) (via default) from 23.23.23.23 (23.23.23.23)
      Origin IGP, metric 0, localpref 100, valid, internal, best
      Extended Community: RT:1:1
      mpls labels in/out nolabel/22
      rx pathid: 0, tx pathid: 0x0
      Updated on Oct 13 2022 01:40:25 UTC
PE2#show bgp vpnv4 unicast all 192.168.2.1/32
BGP routing table entry for 1:2:192.168.2.1/32, version 29
Paths: (1 available, best #1, table B)
  Flag: 0x100
  Advertised to update-groups:
     1
  Refresh Epoch 1
  1 65201
    11.11.11.11 (metric 1) (via default) from 23.23.23.23 (23.23.23.23)
      Origin IGP, metric 0, localpref 100, valid, internal, best
      Extended Community: RT:1:2
      mpls labels in/out nolabel/24
      rx pathid: 0, tx pathid: 0x0
      Updated on Oct 13 2022 01:40:25 UTC
PE2#
PE2#
PE2#show ip route vrf A bgp

Routing Table: A
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
B        172.16.1.0/30 [200/0] via 11.11.11.11, 03:28:59
      192.168.1.0/32 is subnetted, 2 subnets
B        192.168.1.1 [200/0] via 11.11.11.11, 03:28:59
B        192.168.1.2 [20/0] via 172.16.2.2, 04:53:32
PE2#
PE2#show ip route vrf B bgp

Routing Table: B
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
B        172.16.1.4/30 [200/0] via 11.11.11.11, 03:29:03
      192.168.2.0/32 is subnetted, 2 subnets
B        192.168.2.1 [200/0] via 11.11.11.11, 03:29:03
B        192.168.2.2 [20/0] via 172.16.2.6, 04:53:36
PE2#

P1

P1#show ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      11.0.0.0/32 is subnetted, 1 subnets
O        11.11.11.11 [110/2] via 10.11.12.11, 04:55:02, GigabitEthernet1
      13.0.0.0/32 is subnetted, 1 subnets
O        13.13.13.13 [110/2] via 10.12.13.13, 04:55:04, GigabitEthernet2
      14.0.0.0/32 is subnetted, 1 subnets
O        14.14.14.14 [110/2] via 10.12.14.14, 04:55:04, GigabitEthernet3
      21.0.0.0/32 is subnetted, 1 subnets
O E2     21.21.21.21 [110/1] via 10.12.14.14, 04:30:14, GigabitEthernet3
      23.0.0.0/32 is subnetted, 1 subnets
O E2     23.23.23.23 [110/1] via 10.12.14.14, 04:30:14, GigabitEthernet3
P1#

P2

P2#show ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      11.0.0.0/32 is subnetted, 1 subnets
O E2     11.11.11.11 [110/1] via 20.22.24.24, 04:23:41, GigabitEthernet3
      13.0.0.0/32 is subnetted, 1 subnets
O E2     13.13.13.13 [110/1] via 20.22.24.24, 04:23:41, GigabitEthernet3
      21.0.0.0/32 is subnetted, 1 subnets
O        21.21.21.21 [110/2] via 20.21.22.21, 04:55:50, GigabitEthernet1
      23.0.0.0/32 is subnetted, 1 subnets
O        23.23.23.23 [110/2] via 20.22.23.23, 04:55:50, GigabitEthernet2
      24.0.0.0/32 is subnetted, 1 subnets
O        24.24.24.24 [110/2] via 20.22.24.24, 04:55:47, GigabitEthernet3
P2#

CE-A1

CE-A1#traceroute 192.168.1.2 source 192.168.1.1 numeric
Type escape sequence to abort.
Tracing the route to 192.168.1.2
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.1.1 [AS 1] 0 msec 0 msec 0 msec
  2 10.11.12.12 [MPLS: Labels 19/22 Exp 0] 3 msec 2 msec 2 msec
  3 10.12.14.14 [MPLS: Labels 30/22 Exp 0] 2 msec 2 msec 2 msec
  4 172.16.0.2 [MPLS: Labels 21/22 Exp 0] 2 msec 2 msec 2 msec
  5 20.22.24.22 [MPLS: Labels 18/22 Exp 0] 2 msec 2 msec 3 msec
  6 172.16.2.1 [AS 2] [MPLS: Label 22 Exp 0] 2 msec 2 msec 2 msec
  7 172.16.2.2 [AS 2] 2 msec *  2 msec
CE-A1#

CE-A2

CE-A2#traceroute 192.168.1.1 source 192.168.1.2 numeric
Type escape sequence to abort.
Tracing the route to 192.168.1.1
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.2.1 [AS 2] 0 msec 0 msec 1 msec
  2 20.21.22.22 [MPLS: Labels 19/22 Exp 0] 2 msec 2 msec 2 msec
  3 20.22.24.24 [MPLS: Labels 22/22 Exp 0] 2 msec 2 msec 2 msec
  4 172.16.0.1 [MPLS: Labels 19/22 Exp 0] 2 msec 2 msec 2 msec
  5 10.12.14.12 [MPLS: Labels 16/22 Exp 0] 2 msec 2 msec 2 msec
  6 172.16.1.1 [AS 1] [MPLS: Label 22 Exp 0] 2 msec 2 msec 2 msec
  7 172.16.1.2 [AS 1] 2 msec *  2 msec
CE-A2#

CE-B1

CE-B1#traceroute 192.168.2.2 source 192.168.2.1 numeric
Type escape sequence to abort.
Tracing the route to 192.168.2.2
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.1.5 [AS 1] 1 msec 0 msec 1 msec
  2 10.11.12.12 [MPLS: Labels 19/24 Exp 0] 3 msec 3 msec 2 msec
  3 10.12.14.14 [MPLS: Labels 30/24 Exp 0] 2 msec 2 msec 2 msec
  4 172.16.0.2 [MPLS: Labels 21/24 Exp 0] 3 msec 2 msec 2 msec
  5 20.22.24.22 [MPLS: Labels 18/24 Exp 0] 2 msec 2 msec 2 msec
  6 172.16.2.5 [AS 2] [MPLS: Label 24 Exp 0] 2 msec 2 msec 2 msec
  7 172.16.2.6 [AS 2] 2 msec *  2 msec
CE-B1#

CE-B2

CE-B2#traceroute 192.168.2.1 source 192.168.2.2 numeric
Type escape sequence to abort.
Tracing the route to 192.168.2.1
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.2.5 [AS 2] 0 msec 0 msec 1 msec
  2 20.21.22.22 [MPLS: Labels 19/24 Exp 0] 2 msec 2 msec 2 msec
  3 20.22.24.24 [MPLS: Labels 22/24 Exp 0] 2 msec 2 msec 1 msec
  4 172.16.0.1 [MPLS: Labels 19/24 Exp 0] 1 msec 2 msec 2 msec
  5 10.12.14.12 [MPLS: Labels 16/24 Exp 0] 2 msec 2 msec 2 msec
  6 172.16.1.5 [AS 1] [MPLS: Label 24 Exp 0] 3 msec 2 msec 2 msec
  7 172.16.1.6 [AS 1] 2 msec *  2 msec
CE-B2#

Packet Capture in the Inter-AS link

LSP for 192.168.1.2/32

PE1

PE1#show bgp vpnv4 unicast vrf A 192.168.1.2/32
BGP routing table entry for 1:1:192.168.1.2/32, version 27
Paths: (1 available, best #1, table A)
  Flag: 0x100
  Advertised to update-groups:
     3
  Refresh Epoch 1
  2 65102
    21.21.21.21 (metric 1) (via default) from 13.13.13.13 (13.13.13.13)
      Origin IGP, metric 0, localpref 100, valid, internal, best
      Extended Community: RT:1:1
      mpls labels in/out nolabel/22
      rx pathid: 0, tx pathid: 0x0
      Updated on Oct 13 2022 01:41:45 UTC
PE1#

PE1#show ip route 21.21.21.21 255.255.255.255
Routing entry for 21.21.21.21/32
  Known via "ospf 1", distance 110, metric 1
  Tag 2, type extern 2, forward metric 2
  Last update from 10.11.12.12 on GigabitEthernet1, 04:40:27 ago
  Routing Descriptor Blocks:
  * 10.11.12.12, from 14.14.14.14, 04:40:27 ago, via GigabitEthernet1
      Route metric is 1, traffic share count is 1
      Route tag 2
PE1#

PE1#show mpls ldp bindings 21.21.21.21 32
  lib entry: 21.21.21.21/32, rev 16
	local binding:  label: 25
	remote binding: lsr: 12.12.12.12:0, label: 19
PE1#

PE1#show mpls forwarding-table  21.21.21.21 32
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
25         19         21.21.21.21/32   0             Gi1        10.11.12.12
PE1#

PE1#show ip cef vrf A 192.168.1.2/32 detai
192.168.1.2/32, epoch 2, flags [rib defined all labels]
  recursive via 21.21.21.21 label 22
    nexthop 10.11.12.12 GigabitEthernet1 label 19-(local:25)
PE1#

P1

P1#show mpls forwarding-table labels 19
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
19         30         21.21.21.21/32   22422480      Gi3        10.12.14.14
P1#

ASBR1

ASBR1#show mpls forwarding-table labels 30
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
30         21         21.21.21.21/32   22423284      Gi2        172.16.0.2
ASBR1#

ASBR2

ASBR2#show mpls forwarding-table labels 21
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
21         18         21.21.21.21/32   22424088      Gi1        20.22.24.22
ASBR2#

P2

P2#show mpls forwarding-table labels 18
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
18         Pop Label  21.21.21.21/32   35471358      Gi1        20.21.22.21
P2#

PE2

PE2#show ip cef vrf A 192.168.1.2/32 detail
192.168.1.2/32, epoch 2, flags [rib only nolabel, rib defined all labels]
  dflt local label info: other/22 [0x2]
  recursive via 172.16.2.2
    attached to GigabitEthernet2
PE2#

Summary

  • Loopback0s of local PEs and RRs are advertised by the ASBR to the remote AS with labels.
  • Loopback0s of the remote PEs are redistributed into local IGP by the ASBR.
  • VPNv4 peering is established between RRs.
  • Above is a EBGP multi-hop session. This needs to be configured explicitly using “ebgp-multihop”.
  • RR should not change next-hop of the VPNv4 prefixes advertised to the remote AS. This needs to be configured explicitly using “next-hop-unchanged”.

MPLS VPN Inter-AS Option B : Cisco IOS-XE

Summary

  • Two ASBRs established eBGP for VPNv4 address family to exchange VPNv4 prefixes+Labels
  • ASBRs advertises these to their internal AS.
  • VRFs are not configured on ASBRs. Therefore it is required to disable Route-Target Filter on them.

Initial Configurations

AS 1 Routers

PE1

!
hostname PE1

vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
 exit-address-family
!
vrf definition B
 rd 1:2
 !
 address-family ipv4
  route-target export 1:2
  route-target import 1:2
 exit-address-family
!
mpls label protocol ldp
!
interface Loopback0
 ip address 11.11.11.11 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.11.12.11 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
interface GigabitEthernet2
 vrf forwarding A
 ip address 172.16.1.1 255.255.255.252
 no shutdown
!
interface GigabitEthernet3
 vrf forwarding B
 ip address 172.16.1.5 255.255.255.252
 no shutdown
!
router ospf 1
 router-id 11.11.11.11
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 11.11.11.11
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 13.13.13.13 remote-as 1
 neighbor 13.13.13.13 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 13.13.13.13 activate
  neighbor 13.13.13.13 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf A
  redistribute connected
  neighbor 172.16.1.2 remote-as 65101
  neighbor 172.16.1.2 activate
 exit-address-family
 !
 address-family ipv4 vrf B
  redistribute connected
  neighbor 172.16.1.6 remote-as 65201
  neighbor 172.16.1.6 activate
 exit-address-family
!
mpls ldp router-id Loopback0
!

P1

!
hostname P1
!
mpls label protocol ldp

!
interface Loopback0
 ip address 12.12.12.12 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.11.12.12 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
interface GigabitEthernet2
 mtu 1600
 ip address 10.12.13.12 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown

interface GigabitEthernet3
 mtu 1600
 ip address 10.12.14.12 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown


!
router ospf 1
 router-id 12.12.12.12
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
 no passive-interface GigabitEthernet3
 mpls ldp sync
 mpls ldp autoconfig area 0
!
mpls ldp router-id Loopback0
!

RR1

!
hostname RR1
!
mpls label protocol ldp
!
interface Loopback0
 ip address 13.13.13.13 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.12.13.13 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
router ospf 1
 router-id 13.13.13.13
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 13.13.13.13
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 11.11.11.11 remote-as 1
 neighbor 11.11.11.11 update-source Loopback0
 neighbor 14.14.14.14 remote-as 1
 neighbor 14.14.14.14 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 11.11.11.11 activate
  neighbor 11.11.11.11 send-community extended
  neighbor 11.11.11.11 route-reflector-client
  neighbor 14.14.14.14 activate
  neighbor 14.14.14.14 send-community extended
  neighbor 14.14.14.14 route-reflector-client
 exit-address-family
!
mpls ldp router-id Loopback0
!

ASBR1

!
hostname ASBR1
!
mpls label protocol ldp
1
interface Loopback0
 ip address 14.14.14.14 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.12.14.14 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
router ospf 1
 router-id 14.14.14.14
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 14.14.14.14
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 13.13.13.13 remote-as 1
 neighbor 13.13.13.13 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 13.13.13.13 activate
  neighbor 13.13.13.13 send-community extended
 exit-address-family
!
mpls ldp router-id Loopback0

AS 2 Routers

PE2

!
hostname PE2

vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
 exit-address-family
!
vrf definition B
 rd 1:2
 !
 address-family ipv4
  route-target export 1:2
  route-target import 1:2
 exit-address-family
!
mpls label protocol ldp
!
interface Loopback0
 ip address 21.21.21.21 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.11.12.11 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
interface GigabitEthernet2
 vrf forwarding A
 ip address 172.16.2.1 255.255.255.252
 no shutdown
!
interface GigabitEthernet3
 vrf forwarding B
 ip address 172.16.2.5 255.255.255.252
 no shutdown
!
router ospf 2
 router-id 21.21.21.21
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 2
 bgp router-id 21.21.21.21
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 23.23.23.23 remote-as 2
 neighbor 23.23.23.23 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 23.23.23.23 activate
  neighbor 23.23.23.23 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf A
  redistribute connected
  neighbor 172.16.2.2 remote-as 65102
  neighbor 172.16.2.2 activate
 exit-address-family
 !
 address-family ipv4 vrf B
  redistribute connected
  neighbor 172.16.2.6 remote-as 65202
  neighbor 172.16.2.6 activate
 exit-address-family
!
mpls ldp router-id Loopback0
!

P2

!
hostname P2
!
mpls label protocol ldp

!
interface Loopback0
 ip address 22.22.22.22 255.255.255.255
 ip ospf 2 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.21.22.22 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown
!
interface GigabitEthernet2
 mtu 1600
 ip address 20.22.23.22 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown

interface GigabitEthernet3
 mtu 1600
 ip address 20.22.24.22 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown


!
router ospf 2
 router-id 22.22.22.22
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
 no passive-interface GigabitEthernet3
 mpls ldp sync
 mpls ldp autoconfig area 0
!
mpls ldp router-id Loopback0
!

RR2

!
hostname RR2
!
mpls label protocol ldp
!
interface Loopback0
 ip address 23.23.23.23 255.255.255.255
 ip ospf 2 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.22.23.23 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown
!
router ospf 1
 router-id 23.23.23.23
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 2
 bgp router-id 23.23.23.23
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 21.21.21.21 remote-as 2
 neighbor 21.21.21.21 update-source Loopback0
 neighbor 24.24.24.24 remote-as 2
 neighbor 24.24.24.24 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 21.21.21.21 activate
  neighbor 21.21.21.21 send-community extended
  neighbor 21.21.21.21 route-reflector-client
  neighbor 24.24.24.24 activate
  neighbor 24.24.24.24 send-community extended
  neighbor 24.24.24.24 route-reflector-client
 exit-address-family
!
mpls ldp router-id Loopback0
!

ASBR2

!
hostname ASBR2
!
mpls label protocol ldp
!
interface Loopback0
 ip address 24.24.24.24 255.255.255.255
 ip ospf 2 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.22.24.24 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown
!
router ospf 2
 router-id 24.24.24.24
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 2
 bgp router-id 24.24.24.24
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 23.23.23.23 remote-as 2
 neighbor 23.23.23.23  update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 23.23.23.23  activate
  neighbor 23.23.23.23  send-community extended
 exit-address-family
!
mpls ldp router-id Loopback0

Inter-AS Configuration

VRFs and Interfaces

  • VRFs are not configured on ASBRs
  • “mpls bgp forward” is automatically added to the Inter-AS interface once VPNv4 eBGP session between ASBRs is established

ASBR1

interface GigabitEthernet2
 mtu 1600
 ip address 172.16.0.1 255.255.255.252
 negotiation auto
 mpls bgp forwarding
no shutdown

ASBR2

interface GigabitEthernet2
 mtu 1600
 ip address 172.16.0.2 255.255.255.252
 negotiation auto
 mpls bgp forwarding
no shutdown

Inter-AS BGP

  • Route Target Filter should be disabled using “no bgp default route-target filter”
  • iBGP next-hop self is required.

ASBR1

router bgp 1
 bgp router-id 14.14.14.14
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 no bgp default route-target filter
 neighbor 13.13.13.13 remote-as 1
 neighbor 13.13.13.13 update-source Loopback0
 neighbor 172.16.0.2 remote-as 2
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 13.13.13.13 activate
  neighbor 13.13.13.13 send-community extended
  neighbor 13.13.13.13 next-hop-self
  neighbor 172.16.0.2 activate
  neighbor 172.16.0.2 send-community extended
 exit-address-family

ASBR2

router bgp 2
 bgp router-id 24.24.24.24
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 no bgp default route-target filter
 neighbor 23.23.23.23 remote-as 2
 neighbor 23.23.23.23 update-source Loopback0
 neighbor 172.16.0.1 remote-as 1
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 23.23.23.23 activate
  neighbor 23.23.23.23 send-community extended
  neighbor 23.23.23.23 next-hop-self
  neighbor 172.16.0.1 activate
  neighbor 172.16.0.1 send-community extended
 exit-address-family

Verification

ASBR1

ASBR1#show bgp vpnv4 unicast all
BGP table version is 9, local router ID is 14.14.14.14
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:1
 *>i  172.16.1.0/30    11.11.11.11              0    100      0 ?
 *>   172.16.2.0/30    172.16.0.2                             0 2 ?
 *>i  192.168.1.1/32   11.11.11.11              0    100      0 65101 i
 *>   192.168.1.2/32   172.16.0.2                             0 2 65102 i
Route Distinguisher: 1:2
 *>i  172.16.1.4/30    11.11.11.11              0    100      0 ?
 *>   172.16.2.4/30    172.16.0.2                             0 2 ?
 *>i  192.168.2.1/32   11.11.11.11              0    100      0 65201 i
 *>   192.168.2.2/32   172.16.0.2                             0 2 65202 i
ASBR1#
ASBR1#
ASBR1#show bgp vpnv4 unicast all 192.168.1.2/32
BGP routing table entry for 1:1:192.168.1.2/32, version 7
Paths: (1 available, best #1, no table)
  Advertised to update-groups:
     7
  Refresh Epoch 1
  2 65102
    172.16.0.2 (via default) from 172.16.0.2 (24.24.24.24)
      Origin IGP, localpref 100, valid, external, best
      Extended Community: RT:1:1
      mpls labels in/out 29/23
      rx pathid: 0, tx pathid: 0x0
      Updated on Oct 11 2022 04:06:20 UTC
ASBR1#
ASBR1#
ASBR1#show bgp vpnv4 unicast all 192.168.2.2/32
BGP routing table entry for 1:2:192.168.2.2/32, version 9
Paths: (1 available, best #1, no table)
  Advertised to update-groups:
     7
  Refresh Epoch 1
  2 65202
    172.16.0.2 (via default) from 172.16.0.2 (24.24.24.24)
      Origin IGP, localpref 100, valid, external, best
      Extended Community: RT:1:2
      mpls labels in/out 28/25
      rx pathid: 0, tx pathid: 0x0
      Updated on Oct 11 2022 04:06:20 UTC
ASBR1#

ASBR2

ASBR2#show bgp vpnv4 unicast all
BGP table version is 9, local router ID is 24.24.24.24
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:1
 *>   172.16.1.0/30    172.16.0.1                             0 1 ?
 *>i  172.16.2.0/30    21.21.21.21              0    100      0 ?
 *>   192.168.1.1/32   172.16.0.1                             0 1 65101 i
 *>i  192.168.1.2/32   21.21.21.21              0    100      0 65102 i
Route Distinguisher: 1:2
 *>   172.16.1.4/30    172.16.0.1                             0 1 ?
 *>i  172.16.2.4/30    21.21.21.21              0    100      0 ?
 *>   192.168.2.1/32   172.16.0.1                             0 1 65201 i
 *>i  192.168.2.2/32   21.21.21.21              0    100      0 65202 i
ASBR2#
ASBR2#show bgp vpnv4 unicast all 192.168.1.1/32
BGP routing table entry for 1:1:192.168.1.1/32, version 4
Paths: (1 available, best #1, no table)
  Advertised to update-groups:
     7
  Refresh Epoch 1
  1 65101
    172.16.0.1 (via default) from 172.16.0.1 (14.14.14.14)
      Origin IGP, localpref 100, valid, external, best
      Extended Community: RT:1:1
      mpls labels in/out 29/23
      rx pathid: 0, tx pathid: 0x0
      Updated on Oct 11 2022 04:06:20 UTC
ASBR2#
ASBR2#show bgp vpnv4 unicast all 192.168.2.1/32
BGP routing table entry for 1:2:192.168.2.1/32, version 8
Paths: (1 available, best #1, no table)
  Advertised to update-groups:
     7
  Refresh Epoch 1
  1 65201
    172.16.0.1 (via default) from 172.16.0.1 (14.14.14.14)
      Origin IGP, localpref 100, valid, external, best
      Extended Community: RT:1:2
      mpls labels in/out 28/25
      rx pathid: 0, tx pathid: 0x0
      Updated on Oct 11 2022 04:06:20 UTC
ASBR2#

CE-A1

CE-A1#traceroute 192.168.1.2 source 192.168.1.1 numeric
Type escape sequence to abort.
Tracing the route to 192.168.1.2
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.1.1 [AS 1] 1 msec 0 msec 0 msec
  2 10.11.12.12 [MPLS: Labels 18/29 Exp 0] 3 msec 3 msec 2 msec
  3 10.12.14.14 [MPLS: Label 29 Exp 0] 3 msec 2 msec 2 msec
  4 172.16.0.2 [MPLS: Label 23 Exp 0] 3 msec 3 msec 3 msec
  5 20.22.24.22 [MPLS: Labels 16/16 Exp 0] 2 msec 2 msec 2 msec
  6 172.16.2.1 [AS 2] [MPLS: Label 16 Exp 0] 2 msec 2 msec 3 msec
  7 172.16.2.2 [AS 2] 2 msec *  3 msec
CE-A1#

CE-A2

CE-A2#traceroute 192.168.1.1 source 192.168.1.2 numeric
Type escape sequence to abort.
Tracing the route to 192.168.1.1
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.2.1 [AS 2] 0 msec 0 msec 0 msec
  2 20.21.22.22 [MPLS: Labels 18/29 Exp 0] 3 msec 3 msec 2 msec
  3 20.22.24.24 [MPLS: Label 29 Exp 0] 3 msec 2 msec 3 msec
  4 172.16.0.1 [MPLS: Label 23 Exp 0] 2 msec 3 msec 2 msec
  5 10.12.14.12 [MPLS: Labels 16/23 Exp 0] 3 msec 3 msec 2 msec
  6 172.16.1.1 [AS 1] [MPLS: Label 23 Exp 0] 3 msec 2 msec 3 msec
  7 172.16.1.2 [AS 1] 3 msec *  3 msec
CE-A2#

CE-B1

CE-B1#traceroute 192.168.2.2 source 192.168.2.1 numeric
Type escape sequence to abort.
Tracing the route to 192.168.2.2
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.1.5 [AS 1] 1 msec 0 msec 0 msec
  2 10.11.12.12 [MPLS: Labels 18/28 Exp 0] 3 msec 2 msec 3 msec
  3 10.12.14.14 [MPLS: Label 28 Exp 0] 3 msec 3 msec 3 msec
  4 172.16.0.2 [MPLS: Label 25 Exp 0] 3 msec 3 msec 2 msec
  5 20.22.24.22 [MPLS: Labels 16/17 Exp 0] 3 msec 2 msec 3 msec
  6 172.16.2.5 [AS 2] [MPLS: Label 17 Exp 0] 3 msec 2 msec 2 msec
  7 172.16.2.6 [AS 2] 2 msec *  3 msec
CE-B1#

CE-B2

CE-B2#traceroute 192.168.2.1 source 192.168.2.2 numeric
Type escape sequence to abort.
Tracing the route to 192.168.2.1
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.2.5 [AS 2] 1 msec 1 msec 0 msec
  2 20.21.22.22 [MPLS: Labels 18/28 Exp 0] 3 msec 2 msec 3 msec
  3 20.22.24.24 [MPLS: Label 28 Exp 0] 3 msec 3 msec 2 msec
  4 172.16.0.1 [MPLS: Label 25 Exp 0] 2 msec 2 msec 3 msec
  5 10.12.14.12 [MPLS: Labels 16/24 Exp 0] 3 msec 2 msec 2 msec
  6 172.16.1.5 [AS 1] [MPLS: Label 24 Exp 0] 2 msec 1 msec 2 msec
  7 172.16.1.6 [AS 1] 2 msec *  3 msec
CE-B2#

Inter-AS link carries labelled packets

MPLS VPN Inter-AS Option AB: Cisco IOS-XE

Summary

  • A single VPNv4 BGP session between the two ASBRs exchange control information.
  • A dedicated interface per each VRF for forwarding traffic for the VRF.
  • Packets are forwarded unlabelled in the inter-AS link.
  • More scalable than Option A since there is no per-VRF BGP session.

Initial Configurations

AS 1 Routers

PE1

!
hostname PE1

vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
 exit-address-family
!
vrf definition B
 rd 1:2
 !
 address-family ipv4
  route-target export 1:2
  route-target import 1:2
 exit-address-family
!
mpls label protocol ldp
!
interface Loopback0
 ip address 11.11.11.11 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.11.12.11 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
interface GigabitEthernet2
 vrf forwarding A
 ip address 172.16.1.1 255.255.255.252
 no shutdown
!
interface GigabitEthernet3
 vrf forwarding B
 ip address 172.16.1.5 255.255.255.252
 no shutdown
!
router ospf 1
 router-id 11.11.11.11
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 11.11.11.11
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 13.13.13.13 remote-as 1
 neighbor 13.13.13.13 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 13.13.13.13 activate
  neighbor 13.13.13.13 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf A
  redistribute connected
  neighbor 172.16.1.2 remote-as 65101
  neighbor 172.16.1.2 activate
 exit-address-family
 !
 address-family ipv4 vrf B
  redistribute connected
  neighbor 172.16.1.6 remote-as 65201
  neighbor 172.16.1.6 activate
 exit-address-family
!
mpls ldp router-id Loopback0
!

P1

!
hostname P1
!
mpls label protocol ldp

!
interface Loopback0
 ip address 12.12.12.12 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.11.12.12 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
interface GigabitEthernet2
 mtu 1600
 ip address 10.12.13.12 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown

interface GigabitEthernet3
 mtu 1600
 ip address 10.12.14.12 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown


!
router ospf 1
 router-id 12.12.12.12
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
 no passive-interface GigabitEthernet3
 mpls ldp sync
 mpls ldp autoconfig area 0
!
mpls ldp router-id Loopback0
!

RR1

!
hostname RR1
!
mpls label protocol ldp
!
interface Loopback0
 ip address 13.13.13.13 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.12.13.13 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
router ospf 1
 router-id 13.13.13.13
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 13.13.13.13
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 11.11.11.11 remote-as 1
 neighbor 11.11.11.11 update-source Loopback0
 neighbor 14.14.14.14 remote-as 1
 neighbor 14.14.14.14 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 11.11.11.11 activate
  neighbor 11.11.11.11 send-community extended
  neighbor 11.11.11.11 route-reflector-client
  neighbor 14.14.14.14 activate
  neighbor 14.14.14.14 send-community extended
  neighbor 14.14.14.14 route-reflector-client
 exit-address-family
!
mpls ldp router-id Loopback0
!

ASBR1

!
hostname ASBR1
!
mpls label protocol ldp
1
interface Loopback0
 ip address 14.14.14.14 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.12.14.14 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
router ospf 1
 router-id 14.14.14.14
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 14.14.14.14
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 13.13.13.13 remote-as 1
 neighbor 13.13.13.13 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 13.13.13.13 activate
  neighbor 13.13.13.13 send-community extended
 exit-address-family
!
mpls ldp router-id Loopback0

AS 2 Routers

PE2

!
hostname PE2

vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
 exit-address-family
!
vrf definition B
 rd 1:2
 !
 address-family ipv4
  route-target export 1:2
  route-target import 1:2
 exit-address-family
!
mpls label protocol ldp
!
interface Loopback0
 ip address 21.21.21.21 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.11.12.11 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
interface GigabitEthernet2
 vrf forwarding A
 ip address 172.16.2.1 255.255.255.252
 no shutdown
!
interface GigabitEthernet3
 vrf forwarding B
 ip address 172.16.2.5 255.255.255.252
 no shutdown
!
router ospf 2
 router-id 21.21.21.21
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 2
 bgp router-id 21.21.21.21
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 23.23.23.23 remote-as 2
 neighbor 23.23.23.23 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 23.23.23.23 activate
  neighbor 23.23.23.23 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf A
  redistribute connected
  neighbor 172.16.2.2 remote-as 65102
  neighbor 172.16.2.2 activate
 exit-address-family
 !
 address-family ipv4 vrf B
  redistribute connected
  neighbor 172.16.2.6 remote-as 65202
  neighbor 172.16.2.6 activate
 exit-address-family
!
mpls ldp router-id Loopback0
!

P2

!
hostname P2
!
mpls label protocol ldp

!
interface Loopback0
 ip address 22.22.22.22 255.255.255.255
 ip ospf 2 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.21.22.22 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown
!
interface GigabitEthernet2
 mtu 1600
 ip address 20.22.23.22 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown

interface GigabitEthernet3
 mtu 1600
 ip address 20.22.24.22 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown


!
router ospf 2
 router-id 22.22.22.22
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
 no passive-interface GigabitEthernet3
 mpls ldp sync
 mpls ldp autoconfig area 0
!
mpls ldp router-id Loopback0
!

RR2

!
hostname RR2
!
mpls label protocol ldp
!
interface Loopback0
 ip address 23.23.23.23 255.255.255.255
 ip ospf 2 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.22.23.23 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown
!
router ospf 1
 router-id 23.23.23.23
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 2
 bgp router-id 23.23.23.23
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 21.21.21.21 remote-as 2
 neighbor 21.21.21.21 update-source Loopback0
 neighbor 24.24.24.24 remote-as 2
 neighbor 24.24.24.24 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 21.21.21.21 activate
  neighbor 21.21.21.21 send-community extended
  neighbor 21.21.21.21 route-reflector-client
  neighbor 24.24.24.24 activate
  neighbor 24.24.24.24 send-community extended
  neighbor 24.24.24.24 route-reflector-client
 exit-address-family
!
mpls ldp router-id Loopback0
!

ASBR2

!
hostname ASBR2
!
mpls label protocol ldp
!
interface Loopback0
 ip address 24.24.24.24 255.255.255.255
 ip ospf 2 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.22.24.24 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown
!
router ospf 2
 router-id 24.24.24.24
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 2
 bgp router-id 24.24.24.24
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 23.23.23.23 remote-as 2
 neighbor 23.23.23.23  update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 23.23.23.23  activate
  neighbor 23.23.23.23  send-community extended
 exit-address-family
!
mpls ldp router-id Loopback0

CE Routers

CE-A1

hostname CE-A1

interface GigabitEthernet0/0
 ip address 172.16.1.2 255.255.255.252
 no shut


interface Loopback0
 ip address 192.168.1.1 255.255.255.255

router bgp 65101
 bgp router-id 192.168.1.1
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 172.16.1.1 remote-as 1
 !
 address-family ipv4
  network 192.168.1.1 mask 255.255.255.255
  neighbor 172.16.1.1 activate
 exit-address-family

CE-A2

hostname CE-A2

interface GigabitEthernet0/0
 ip address 172.16.2.2 255.255.255.252
 no shut


interface Loopback0
 ip address 192.168.1.2 255.255.255.255

router bgp 65102
 bgp router-id 192.168.1.2
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 172.16.2.1 remote-as 2
 !
 address-family ipv4
  network 192.168.1.2 mask 255.255.255.255
  neighbor 172.16.2.1 activate
 exit-address-family

CE-B1

hostname CE-B1

interface GigabitEthernet0/0
 ip address 172.16.1.6 255.255.255.252
 no shut


interface Loopback0
 ip address 192.168.2.1 255.255.255.255

router bgp 65201
 bgp router-id 192.168.2.1
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 172.16.2.5 remote-as 1
 !
 address-family ipv4
  network 192.168.2.1 mask 255.255.255.255
  neighbor 172.16.2.5 activate
 exit-address-family

CE-B2

hostname CE-B2

interface GigabitEthernet0/0
 ip address 172.16.2.6 255.255.255.252
 no shut


interface Loopback0
 ip address 192.168.2.2 255.255.255.255

router bgp 65202
 bgp router-id 192.168.2.2
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 172.16.2.5 remote-as 2
 !
 address-family ipv4
  network 192.168.2.2 mask 255.255.255.255
  neighbor 172.16.2.5 activate
 exit-address-family

Inter-AS Configuration

VRF and Interfaces

ASBR1

vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
  inter-as-hybrid next-hop 172.16.0.2
 exit-address-family
!
vrf definition B
 rd 1:2
 !
 address-family ipv4
  route-target export 1:2
  route-target import 1:2
  inter-as-hybrid next-hop 172.16.0.6
 exit-address-family
!
interface GigabitEthernet2
 mtu 1600
 no ip address
 no shutdown
!
interface GigabitEthernet2.101
 encapsulation dot1Q 101
 vrf forwarding A
 ip address 172.16.0.1 255.255.255.252
!
interface GigabitEthernet2.102
 encapsulation dot1Q 102
 vrf forwarding B
 ip address 172.16.0.5 255.255.255.252
!

ASBR2

vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
  inter-as-hybrid next-hop 172.16.0.1
 exit-address-family
!
vrf definition B
 rd 1:2
 !
 address-family ipv4
  route-target export 1:2
  route-target import 1:2
  inter-as-hybrid next-hop 172.16.0.5
 exit-address-family
!
interface GigabitEthernet2
 mtu 1600
 no ip address
 no shutdown
!
interface GigabitEthernet2.101
 encapsulation dot1Q 101
 vrf forwarding A
 ip address 172.16.0.2 255.255.255.252
!
interface GigabitEthernet2.102
 encapsulation dot1Q 102
 vrf forwarding B
 ip address 172.16.0.6 255.255.255.252
!

Inter-AS BGP

ASBR1

router bgp 1
 neighbor 172.16.0.254 remote-as 2
 !
 address-family vpnv4
  neighbor 172.16.0.254 activate
  neighbor 172.16.0.254 send-community extended
  neighbor 172.16.0.254 inter-as-hybrid
 exit-address-family
 !
 address-family ipv4 vrf A
  redistribute connected
 exit-address-family
 !
 address-family ipv4 vrf B
  redistribute connected
 exit-address-family

ASBR2

router bgp 2
 neighbor 172.16.0.253 remote-as 1
 !
 address-family vpnv4
  neighbor 172.16.0.253 activate
  neighbor 172.16.0.253 send-community extended
  neighbor 172.16.0.253 inter-as-hybrid
 exit-address-family
 !
 address-family ipv4 vrf A
  redistribute connected
 exit-address-family
 !
 address-family ipv4 vrf B
  redistribute connected
 exit-address-family

Verification

ASBR1

ASBR1#show bgp vpnv4 unicast vrf A
BGP table version is 19, local router ID is 14.14.14.14
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:1 (default for vrf A)
 *    172.16.0.0/30    172.16.0.254             0             0 2 ?
 *>                    0.0.0.0                  0         32768 ?
 *>i  172.16.1.0/30    11.11.11.11              0    100      0 ?
 *>   172.16.2.0/30    172.16.0.254                           0 2 ?
 *>i  192.168.1.1/32   11.11.11.11              0    100      0 65101 i
 *>   192.168.1.2/32   172.16.0.254                           0 2 65102 i
ASBR1#show bgp vpnv4 unicast vrf B
BGP table version is 19, local router ID is 14.14.14.14
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:2 (default for vrf B)
 *    172.16.0.4/30    172.16.0.254             0             0 2 ?
 *>                    0.0.0.0                  0         32768 ?
 *>i  172.16.1.4/30    11.11.11.11              0    100      0 ?
 *>   172.16.2.4/30    172.16.0.254                           0 2 ?
 *>i  192.168.2.1/32   11.11.11.11              0    100      0 65201 i
 *>   192.168.2.2/32   172.16.0.254                           0 2 65202 i
ASBR1#
ASBR1#show ip route vrf A | beg Gateway
Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C        172.16.0.0/30 is directly connected, GigabitEthernet2.101
L        172.16.0.1/32 is directly connected, GigabitEthernet2.101
B        172.16.1.0/30 [200/0] via 11.11.11.11, 01:01:27
B        172.16.2.0/30 [20/0] via 172.16.0.2, 01:01:27
      192.168.1.0/32 is subnetted, 2 subnets
B        192.168.1.1 [200/0] via 11.11.11.11, 01:01:27
B        192.168.1.2 [20/0] via 172.16.0.2, 01:01:27
ASBR1#
ASBR1#show ip route vrf B | beg Gateway
Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C        172.16.0.4/30 is directly connected, GigabitEthernet2.102
L        172.16.0.5/32 is directly connected, GigabitEthernet2.102
B        172.16.1.4/30 [200/0] via 11.11.11.11, 01:09:22
B        172.16.2.4/30 [20/0] via 172.16.0.6, 01:09:22
      192.168.2.0/32 is subnetted, 2 subnets
B        192.168.2.1 [200/0] via 11.11.11.11, 01:09:22
B        192.168.2.2 [20/0] via 172.16.0.6, 01:09:22
ASBR1#
ASBR1#show ip cef vrf A 192.168.1.1/32 detail
192.168.1.1/32, epoch 0, flags [rib defined all labels]
  recursive via 11.11.11.11 label 23
    nexthop 10.12.14.12 GigabitEthernet1 label 16-(local:18)
ASBR1#show ip cef vrf A 192.168.1.2/32 detail
192.168.1.2/32, epoch 0, flags [rib only nolabel, rib defined all labels]
  dflt local label info: other/26 [0x2]
  recursive via 172.16.0.2
    attached to GigabitEthernet2.101
ASBR1#
ASBR1#show ip cef vrf B 192.168.2.1/32 detail
192.168.2.1/32, epoch 0, flags [rib defined all labels]
  recursive via 11.11.11.11 label 24
    nexthop 10.12.14.12 GigabitEthernet1 label 16-(local:18)
ASBR1#
ASBR1#show ip cef vrf B 192.168.2.2/32 detail
192.168.2.2/32, epoch 0, flags [rib only nolabel, rib defined all labels]
  dflt local label info: other/24 [0x2]
  recursive via 172.16.0.6
    attached to GigabitEthernet2.102
ASBR1#

ASBR2

ASBR2#show bgp vpnv4 unicast vrf A
BGP table version is 19, local router ID is 24.24.24.24
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:1 (default for vrf A)
 *>   172.16.0.0/30    0.0.0.0                  0         32768 ?
 *                     172.16.0.253             0             0 1 ?
 *>   172.16.1.0/30    172.16.0.253                           0 1 ?
 *>i  172.16.2.0/30    21.21.21.21              0    100      0 ?
 *>   192.168.1.1/32   172.16.0.253                           0 1 65101 i
 *>i  192.168.1.2/32   21.21.21.21              0    100      0 65102 i
ASBR2#
ASBR2#
ASBR2#show bgp vpnv4 unicast vrf B
BGP table version is 19, local router ID is 24.24.24.24
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:2 (default for vrf B)
 *>   172.16.0.4/30    0.0.0.0                  0         32768 ?
 *                     172.16.0.253             0             0 1 ?
 *>   172.16.1.4/30    172.16.0.253                           0 1 ?
 *>i  172.16.2.4/30    21.21.21.21              0    100      0 ?
 *>   192.168.2.1/32   172.16.0.253                           0 1 65201 i
 *>i  192.168.2.2/32   21.21.21.21              0    100      0 65202 i
ASBR2#
ASBR2#
ASBR2#show ip route vrf A | beg Gateway
Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C        172.16.0.0/30 is directly connected, GigabitEthernet2.101
L        172.16.0.2/32 is directly connected, GigabitEthernet2.101
B        172.16.1.0/30 [20/0] via 172.16.0.1, 01:04:42
B        172.16.2.0/30 [200/0] via 21.21.21.21, 01:04:42
      192.168.1.0/32 is subnetted, 2 subnets
B        192.168.1.1 [20/0] via 172.16.0.1, 01:04:42
B        192.168.1.2 [200/0] via 21.21.21.21, 01:04:42
ASBR2#
ASBR2#show ip route vrf B | beg Gateway
Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C        172.16.0.4/30 is directly connected, GigabitEthernet2.102
L        172.16.0.6/32 is directly connected, GigabitEthernet2.102
B        172.16.1.4/30 [20/0] via 172.16.0.5, 01:11:55
B        172.16.2.4/30 [200/0] via 21.21.21.21, 01:11:55
      192.168.2.0/32 is subnetted, 2 subnets
B        192.168.2.1 [20/0] via 172.16.0.5, 01:11:55
B        192.168.2.2 [200/0] via 21.21.21.21, 01:11:55
ASBR2#
ASBR2#
ASBR2#show ip cef vrf A 192.168.1.1/32 detail
192.168.1.1/32, epoch 0, flags [rib only nolabel, rib defined all labels]
  dflt local label info: other/23 [0x2]
  recursive via 172.16.0.1
    attached to GigabitEthernet2.101
ASBR2#show ip cef vrf A 192.168.1.2/32 detail
192.168.1.2/32, epoch 0, flags [rib defined all labels]
  recursive via 21.21.21.21 label 16
    nexthop 20.22.24.22 GigabitEthernet1 label 16-(local:18)
ASBR2#
ASBR2#show ip cef vrf B 192.168.2.1/32 detail
192.168.2.1/32, epoch 0, flags [rib only nolabel, rib defined all labels]
  dflt local label info: other/24 [0x2]
  recursive via 172.16.0.5
    attached to GigabitEthernet2.102
ASBR2#show ip cef vrf B 192.168.2.2/32 detail
192.168.2.2/32, epoch 0, flags [rib defined all labels]
  recursive via 21.21.21.21 label 17
    nexthop 20.22.24.22 GigabitEthernet1 label 16-(local:18)
ASBR2#

CE-A1

CE-A1#traceroute ip 192.168.1.2 source 192.168.1.1 numeric
Type escape sequence to abort.
Tracing the route to 192.168.1.2
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.1.1 [AS 1] 1 msec 1 msec 1 msec
  2 10.11.12.12 [MPLS: Labels 18/26 Exp 0] 2 msec 2 msec 2 msec
  3 172.16.0.1 [AS 1] [MPLS: Label 26 Exp 0] 1 msec 1 msec 1 msec
  4 172.16.0.2 [AS 1] 2 msec 1 msec 1 msec
  5 20.22.24.22 [MPLS: Labels 16/16 Exp 0] 3 msec 3 msec 2 msec
  6 172.16.2.1 [AS 2] [MPLS: Label 16 Exp 0] 3 msec 2 msec 2 msec
  7 172.16.2.2 [AS 2] 2 msec *  3 msec
CE-A1#

CE-A2

CE-A2#traceroute ip 192.168.1.1 source 192.168.1.2 numeric
Type escape sequence to abort.
Tracing the route to 192.168.1.1
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.2.1 [AS 2] 0 msec 0 msec 1 msec
  2 20.21.22.22 [MPLS: Labels 18/23 Exp 0] 2 msec 1 msec 2 msec
  3 172.16.0.2 [AS 2] [MPLS: Label 23 Exp 0] 1 msec 1 msec 1 msec
  4 172.16.0.1 [AS 2] 1 msec 1 msec 1 msec
  5 10.12.14.12 [MPLS: Labels 16/23 Exp 0] 3 msec 2 msec 3 msec
  6 172.16.1.1 [AS 1] [MPLS: Label 23 Exp 0] 2 msec 2 msec 2 msec
  7 172.16.1.2 [AS 1] 3 msec *  3 msec
CE-A2#

CE-B1

CE-B1#traceroute 192.168.2.2 source 192.168.2.1 numeric
Type escape sequence to abort.
Tracing the route to 192.168.2.2
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.1.5 [AS 1] 0 msec 0 msec 0 msec
  2 10.11.12.12 [MPLS: Labels 18/24 Exp 0] 2 msec 2 msec 1 msec
  3 172.16.0.5 [AS 1] [MPLS: Label 24 Exp 0] 1 msec 1 msec 1 msec
  4 172.16.0.6 [AS 1] 1 msec 1 msec 1 msec
  5 20.22.24.22 [MPLS: Labels 16/17 Exp 0] 3 msec 3 msec 2 msec
  6 172.16.2.5 [AS 2] [MPLS: Label 17 Exp 0] 2 msec 2 msec 2 msec
  7 172.16.2.6 [AS 2] 2 msec *  2 msec
CE-B1#

CE-B2

CE-B2#traceroute 192.168.2.1 source 192.168.2.2 numeric
Type escape sequence to abort.
Tracing the route to 192.168.2.1
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.2.5 [AS 2] 1 msec 0 msec 1 msec
  2 20.21.22.22 [MPLS: Labels 18/24 Exp 0] 2 msec 1 msec 2 msec
  3 172.16.0.6 [AS 2] [MPLS: Label 24 Exp 0] 1 msec 1 msec 1 msec
  4 172.16.0.5 [AS 2] 1 msec 1 msec 2 msec
  5 10.12.14.12 [MPLS: Labels 16/24 Exp 0] 2 msec 2 msec 2 msec
  6 172.16.1.5 [AS 1] [MPLS: Label 24 Exp 0] 3 msec 2 msec 2 msec
  7 172.16.1.6 [AS 1] 2 msec *  2 msec
CE-B2#

Packet Capture on inter-AS link

Packets are sent unlabelled

The outputs below shows that the next hop address in the BGP advertisement is changed to the remote end of the link belong to the VRF when the route is imported into the VRF table.

Incoming BGP Update packet captured at ASBR1

No.     Time           Source                Destination           Protocol Length Info
     19 24.339876      172.16.0.254          172.16.0.253          BGP      607    UPDATE Message, UPDATE Message, UPDATE Message, UPDATE Message, UPDATE Message, UPDATE Message, UPDATE Message

Frame 19: 607 bytes on wire (4856 bits), 607 bytes captured (4856 bits) on interface -, id 0
    Interface id: 0 (-)
        Interface name: -
    Encapsulation type: Ethernet (1)
    Arrival Time: Oct 11, 2022 10:33:46.627621000 AEST
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1665448426.627621000 seconds
    [Time delta from previous captured frame: 0.000257000 seconds]
    [Time delta from previous displayed frame: 0.000257000 seconds]
    [Time since reference or first frame: 24.339876000 seconds]
    Frame Number: 19
    Frame Length: 607 bytes (4856 bits)
    Capture Length: 607 bytes (4856 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: eth:ethertype:vlan:ethertype:ip:tcp:bgp]
    [Coloring Rule Name: TTL low or unexpected]
    [Coloring Rule String: ( ! ip.dst == 224.0.0.0/4 && ip.ttl < 5 && !pim && !ospf) || (ip.dst == 224.0.0.0/24 && ip.dst != 224.0.0.251 && ip.ttl != 1 && !(vrrp || carp))]
Ethernet II, Src: 50:00:00:04:00:01 (50:00:00:04:00:01), Dst: 50:00:00:03:00:01 (50:00:00:03:00:01)
    Destination: 50:00:00:03:00:01 (50:00:00:03:00:01)
        Address: 50:00:00:03:00:01 (50:00:00:03:00:01)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Source: 50:00:00:04:00:01 (50:00:00:04:00:01)
        Address: 50:00:00:04:00:01 (50:00:00:04:00:01)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Type: 802.1Q Virtual LAN (0x8100)
802.1Q Virtual LAN, PRI: 0, DEI: 0, ID: 164
    000. .... .... .... = Priority: Best Effort (default) (0)
    ...0 .... .... .... = DEI: Ineligible
    .... 0000 1010 0100 = ID: 164
    Type: IPv4 (0x0800)
Internet Protocol Version 4, Src: 172.16.0.254, Dst: 172.16.0.253
    0100 .... = Version: 4
    .... 0101 = Header Length: 20 bytes (5)
    Differentiated Services Field: 0xc0 (DSCP: CS6, ECN: Not-ECT)
        1100 00.. = Differentiated Services Codepoint: Class Selector 6 (48)
        .... ..00 = Explicit Congestion Notification: Not ECN-Capable Transport (0)
    Total Length: 589
    Identification: 0x157e (5502)
    Flags: 0x40, Don't fragment
        0... .... = Reserved bit: Not set
        .1.. .... = Don't fragment: Set
        ..0. .... = More fragments: Not set
    Fragment Offset: 0
    Time to Live: 1
        [Expert Info (Note/Sequence): "Time To Live" only 1]
            ["Time To Live" only 1]
            [Severity level: Note]
            [Group: Sequence]
    Protocol: TCP (6)
    Header Checksum: 0x0752 [validation disabled]
    [Header checksum status: Unverified]
    Source Address: 172.16.0.254
    Destination Address: 172.16.0.253
Transmission Control Protocol, Src Port: 179, Dst Port: 47343, Seq: 96, Ack: 77, Len: 549
    Source Port: 179
    Destination Port: 47343
    [Stream index: 1]
    [TCP Segment Len: 549]
    Sequence Number: 96    (relative sequence number)
    Sequence Number (raw): 2140866061
    [Next Sequence Number: 645    (relative sequence number)]
    Acknowledgment Number: 77    (relative ack number)
    Acknowledgment number (raw): 6723070
    0101 .... = Header Length: 20 bytes (5)
    Flags: 0x018 (PSH, ACK)
        000. .... .... = Reserved: Not set
        ...0 .... .... = Nonce: Not set
        .... 0... .... = Congestion Window Reduced (CWR): Not set
        .... .0.. .... = ECN-Echo: Not set
        .... ..0. .... = Urgent: Not set
        .... ...1 .... = Acknowledgment: Set
        .... .... 1... = Push: Set
        .... .... .0.. = Reset: Not set
        .... .... ..0. = Syn: Not set
        .... .... ...0 = Fin: Not set
        [TCP Flags: ·······AP···]
    Window: 16308
    [Calculated window size: 16308]
    [Window size scaling factor: -2 (no window scaling used)]
    Checksum: 0x0dd1 [unverified]
    [Checksum Status: Unverified]
    Urgent Pointer: 0
    [SEQ/ACK analysis]
        [iRTT: 0.001462000 seconds]
        [Bytes in flight: 568]
        [Bytes sent since last PSH flag: 549]
    [Timestamps]
        [Time since first frame in this TCP stream: 0.018012000 seconds]
        [Time since previous frame in this TCP stream: 0.000257000 seconds]
    TCP payload (549 bytes)
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 87
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 64
    Path attributes
        Path Attribute - MP_REACH_NLRI
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MP_REACH_NLRI (14)
            Length: 33
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Next hop network address (12 bytes)
                Next Hop: Empty Label Stack RD=0:0 IPv4=172.16.0.254
            Number of Subnetwork points of attachment (SNPA): 0
            Network layer reachability information (16 bytes)
                BGP Prefix
                    Prefix Length: 120
                    Label Stack: 31 (bottom)
                    Route Distinguisher: 1:2
                    MP Reach NLRI IPv4 prefix: 192.168.2.2
        Path Attribute - ORIGIN: IGP
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: IGP (0)
        Path Attribute - AS_PATH: 2 65202 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 10
            AS Path segment: 2 65202
                Segment type: AS_SEQUENCE (2)
                Segment length (number of ASN): 2
                AS4: 2
                AS4: 65202
        Path Attribute - EXTENDED_COMMUNITIES
            Flags: 0xc0, Optional, Transitive, Complete
                1... .... = Optional: Set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: EXTENDED_COMMUNITIES (16)
            Length: 8
            Carried extended communities: (1 community)
                Route Target: 1:2 [Transitive 2-Octet AS-Specific]
                    Type: Transitive 2-Octet AS-Specific (0x00)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (AS2): Route Target (0x02)
                    2-Octet AS: 1
                    4-Octet AN: 2
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 87
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 64
    Path attributes
        Path Attribute - MP_REACH_NLRI
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MP_REACH_NLRI (14)
            Length: 33
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Next hop network address (12 bytes)
                Next Hop: Empty Label Stack RD=0:0 IPv4=172.16.0.254
            Number of Subnetwork points of attachment (SNPA): 0
            Network layer reachability information (16 bytes)
                BGP Prefix
                    Prefix Length: 120
                    Label Stack: 28 (bottom)
                    Route Distinguisher: 1:1
                    MP Reach NLRI IPv4 prefix: 192.168.1.2
        Path Attribute - ORIGIN: IGP
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: IGP (0)
        Path Attribute - AS_PATH: 2 65102 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 10
            AS Path segment: 2 65102
                Segment type: AS_SEQUENCE (2)
                Segment length (number of ASN): 2
                AS4: 2
                AS4: 65102
        Path Attribute - EXTENDED_COMMUNITIES
            Flags: 0xc0, Optional, Transitive, Complete
                1... .... = Optional: Set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: EXTENDED_COMMUNITIES (16)
            Length: 8
            Carried extended communities: (1 community)
                Route Target: 1:1 [Transitive 2-Octet AS-Specific]
                    Type: Transitive 2-Octet AS-Specific (0x00)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (AS2): Route Target (0x02)
                    2-Octet AS: 1
                    4-Octet AN: 1
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 83
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 60
    Path attributes
        Path Attribute - MP_REACH_NLRI
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MP_REACH_NLRI (14)
            Length: 33
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Next hop network address (12 bytes)
                Next Hop: Empty Label Stack RD=0:0 IPv4=172.16.0.254
            Number of Subnetwork points of attachment (SNPA): 0
            Network layer reachability information (16 bytes)
                BGP Prefix
                    Prefix Length: 118
                    Label Stack: 28 (bottom)
                    Route Distinguisher: 1:1
                    MP Reach NLRI IPv4 prefix: 172.16.2.0
        Path Attribute - ORIGIN: INCOMPLETE
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: INCOMPLETE (2)
        Path Attribute - AS_PATH: 2 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 6
            AS Path segment: 2
                Segment type: AS_SEQUENCE (2)
                Segment length (number of ASN): 1
                AS4: 2
        Path Attribute - EXTENDED_COMMUNITIES
            Flags: 0xc0, Optional, Transitive, Complete
                1... .... = Optional: Set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: EXTENDED_COMMUNITIES (16)
            Length: 8
            Carried extended communities: (1 community)
                Route Target: 1:1 [Transitive 2-Octet AS-Specific]
                    Type: Transitive 2-Octet AS-Specific (0x00)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (AS2): Route Target (0x02)
                    2-Octet AS: 1
                    4-Octet AN: 1
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 83
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 60
    Path attributes
        Path Attribute - MP_REACH_NLRI
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MP_REACH_NLRI (14)
            Length: 33
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Next hop network address (12 bytes)
                Next Hop: Empty Label Stack RD=0:0 IPv4=172.16.0.254
            Number of Subnetwork points of attachment (SNPA): 0
            Network layer reachability information (16 bytes)
                BGP Prefix
                    Prefix Length: 118
                    Label Stack: 31 (bottom)
                    Route Distinguisher: 1:2
                    MP Reach NLRI IPv4 prefix: 172.16.2.4
        Path Attribute - ORIGIN: INCOMPLETE
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: INCOMPLETE (2)
        Path Attribute - AS_PATH: 2 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 6
            AS Path segment: 2
                Segment type: AS_SEQUENCE (2)
                Segment length (number of ASN): 1
                AS4: 2
        Path Attribute - EXTENDED_COMMUNITIES
            Flags: 0xc0, Optional, Transitive, Complete
                1... .... = Optional: Set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: EXTENDED_COMMUNITIES (16)
            Length: 8
            Carried extended communities: (1 community)
                Route Target: 1:2 [Transitive 2-Octet AS-Specific]
                    Type: Transitive 2-Octet AS-Specific (0x00)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (AS2): Route Target (0x02)
                    2-Octet AS: 1
                    4-Octet AN: 2
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 90
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 67
    Path attributes
        Path Attribute - MP_REACH_NLRI
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MP_REACH_NLRI (14)
            Length: 33
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Next hop network address (12 bytes)
                Next Hop: Empty Label Stack RD=0:0 IPv4=172.16.0.254
            Number of Subnetwork points of attachment (SNPA): 0
            Network layer reachability information (16 bytes)
                BGP Prefix
                    Prefix Length: 118
                    Label Stack: 22 (bottom)
                    Route Distinguisher: 1:1
                    MP Reach NLRI IPv4 prefix: 172.16.0.0
        Path Attribute - ORIGIN: INCOMPLETE
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: INCOMPLETE (2)
        Path Attribute - AS_PATH: 2 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 6
            AS Path segment: 2
                Segment type: AS_SEQUENCE (2)
                Segment length (number of ASN): 1
                AS4: 2
        Path Attribute - MULTI_EXIT_DISC: 0
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MULTI_EXIT_DISC (4)
            Length: 4
            Multiple exit discriminator: 0
        Path Attribute - EXTENDED_COMMUNITIES
            Flags: 0xc0, Optional, Transitive, Complete
                1... .... = Optional: Set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: EXTENDED_COMMUNITIES (16)
            Length: 8
            Carried extended communities: (1 community)
                Route Target: 1:1 [Transitive 2-Octet AS-Specific]
                    Type: Transitive 2-Octet AS-Specific (0x00)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (AS2): Route Target (0x02)
                    2-Octet AS: 1
                    4-Octet AN: 1
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 90
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 67
    Path attributes
        Path Attribute - MP_REACH_NLRI
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MP_REACH_NLRI (14)
            Length: 33
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Next hop network address (12 bytes)
                Next Hop: Empty Label Stack RD=0:0 IPv4=172.16.0.254
            Number of Subnetwork points of attachment (SNPA): 0
            Network layer reachability information (16 bytes)
                BGP Prefix
                    Prefix Length: 118
                    Label Stack: 27 (bottom)
                    Route Distinguisher: 1:2
                    MP Reach NLRI IPv4 prefix: 172.16.0.4
        Path Attribute - ORIGIN: INCOMPLETE
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: INCOMPLETE (2)
        Path Attribute - AS_PATH: 2 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 6
            AS Path segment: 2
                Segment type: AS_SEQUENCE (2)
                Segment length (number of ASN): 1
                AS4: 2
        Path Attribute - MULTI_EXIT_DISC: 0
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MULTI_EXIT_DISC (4)
            Length: 4
            Multiple exit discriminator: 0
        Path Attribute - EXTENDED_COMMUNITIES
            Flags: 0xc0, Optional, Transitive, Complete
                1... .... = Optional: Set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: EXTENDED_COMMUNITIES (16)
            Length: 8
            Carried extended communities: (1 community)
                Route Target: 1:2 [Transitive 2-Octet AS-Specific]
                    Type: Transitive 2-Octet AS-Specific (0x00)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (AS2): Route Target (0x02)
                    2-Octet AS: 1
                    4-Octet AN: 2
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 29
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 6
    Path attributes
        Path Attribute - MP_UNREACH_NLRI
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MP_UNREACH_NLRI (15)
            Length: 3
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Withdrawn routes (0 bytes)

Outputs from ASBR1

ASBR1#show bgp vpnv4 unicast all 192.168.1.2 255.255.255.255
BGP routing table entry for 1:1:192.168.1.2/32, version 29
Paths: (1 available, best #1, table A)
  Advertised to update-groups:
     13
  Refresh Epoch 1
  2 65102
    172.16.0.254 (via default) from 172.16.0.254 (24.24.24.24)
      Origin IGP, localpref 100, valid, external, best
      Extended Community: RT:1:1
      mpls labels in/out 26/28
      rx pathid: 0, tx pathid: 0x0
      Updated on Oct 11 2022 00:33:46 UTC
ASBR1#
ASBR1#show ip route vrf A 192.168.1.2 255.255.255.255

Routing Table: A
Routing entry for 192.168.1.2/32
  Known via "bgp 1", distance 20, metric 0
  Tag 2, type external
  Last update from 172.16.0.2 00:06:25 ago
  Routing Descriptor Blocks:
  * 172.16.0.2, from 172.16.0.254, 00:06:25 ago
      opaque_ptr 0x7F18C7B565E8
      Route metric is 0, traffic share count is 1
      AS Hops 2
      Route tag 2
      MPLS label: none
ASBR1#
ASBR1#
ASBR1#show bgp vpnv4 unicast all 192.168.2.2 255.255.255.255
BGP routing table entry for 1:2:192.168.2.2/32, version 31
Paths: (1 available, best #1, table B)
  Advertised to update-groups:
     13
  Refresh Epoch 1
  2 65202
    172.16.0.254 (via default) from 172.16.0.254 (24.24.24.24)
      Origin IGP, localpref 100, valid, external, best
      Extended Community: RT:1:2
      mpls labels in/out 24/31
      rx pathid: 0, tx pathid: 0x0
      Updated on Oct 11 2022 00:33:46 UTC
ASBR1#
ASBR1#show ip route vrf B 192.168.2.2 255.255.255.255

Routing Table: B
Routing entry for 192.168.2.2/32
  Known via "bgp 1", distance 20, metric 0
  Tag 2, type external
  Last update from 172.16.0.6 00:06:42 ago
  Routing Descriptor Blocks:
  * 172.16.0.6, from 172.16.0.254, 00:06:42 ago
      opaque_ptr 0x7F18C7B56210
      Route metric is 0, traffic share count is 1
      AS Hops 2
      Route tag 2
      MPLS label: none
ASBR1#

Summary

  • Packets are sent as unlabelled IP packets in the Inter-AS link.
  • A link per VRF (Similar to Option A).
  • A single BGP session between ASBRs to exchange VPNv4 prefixes for all the VRFs (Similar to Option B).
  • Next-hop is changed to VRF remote end when imported into VRF.

MPLS VPN Inter-AS Option A: Cisco IOS-XE

Summary

  • A sub-interface is created per each VRF extended between the two autonomous systems.
  • eBGP is configured between the two ASBRs within each VRFs to exchange IP prefixes.
  • LSP is terminated at each ASBR and packets are forwarded as unlabelled in the inter-ASBR link.

Initial Configurations

AS 1 Routers

PE1

!
hostname PE1

vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
 exit-address-family
!
vrf definition B
 rd 1:2
 !
 address-family ipv4
  route-target export 1:2
  route-target import 1:2
 exit-address-family
!
mpls label protocol ldp
!
interface Loopback0
 ip address 11.11.11.11 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.11.12.11 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
interface GigabitEthernet2
 vrf forwarding A
 ip address 172.16.1.1 255.255.255.252
 no shutdown
!
interface GigabitEthernet3
 vrf forwarding B
 ip address 172.16.1.5 255.255.255.252
 no shutdown
!
router ospf 1
 router-id 11.11.11.11
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 11.11.11.11
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 13.13.13.13 remote-as 1
 neighbor 13.13.13.13 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 13.13.13.13 activate
  neighbor 13.13.13.13 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf A
  redistribute connected
  neighbor 172.16.1.2 remote-as 65101
  neighbor 172.16.1.2 activate
 exit-address-family
 !
 address-family ipv4 vrf B
  redistribute connected
  neighbor 172.16.1.6 remote-as 65201
  neighbor 172.16.1.6 activate
 exit-address-family
!
mpls ldp router-id Loopback0
!

P1

!
hostname P1
!
mpls label protocol ldp

!
interface Loopback0
 ip address 12.12.12.12 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.11.12.12 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
interface GigabitEthernet2
 mtu 1600
 ip address 10.12.13.12 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown

interface GigabitEthernet3
 mtu 1600
 ip address 10.12.14.12 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown


!
router ospf 1
 router-id 12.12.12.12
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
 no passive-interface GigabitEthernet3
 mpls ldp sync
 mpls ldp autoconfig area 0
!
mpls ldp router-id Loopback0
!

RR1

!
hostname RR1
!
mpls label protocol ldp
!
interface Loopback0
 ip address 13.13.13.13 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.12.13.13 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
router ospf 1
 router-id 13.13.13.13
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 13.13.13.13
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 11.11.11.11 remote-as 1
 neighbor 11.11.11.11 update-source Loopback0
 neighbor 14.14.14.14 remote-as 1
 neighbor 14.14.14.14 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 11.11.11.11 activate
  neighbor 11.11.11.11 send-community extended
  neighbor 11.11.11.11 route-reflector-client
  neighbor 14.14.14.14 activate
  neighbor 14.14.14.14 send-community extended
  neighbor 14.14.14.14 route-reflector-client
 exit-address-family
!
mpls ldp router-id Loopback0
!

ASBR1

!
hostname ASBR1
!
mpls label protocol ldp
1
interface Loopback0
 ip address 14.14.14.14 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 10.12.14.14 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
router ospf 1
 router-id 14.14.14.14
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 14.14.14.14
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 13.13.13.13 remote-as 1
 neighbor 13.13.13.13 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 13.13.13.13 activate
  neighbor 13.13.13.13 send-community extended
 exit-address-family
!
mpls ldp router-id Loopback0

AS 2 Routers

PE2

!
hostname PE2

vrf definition A
 rd 2:1
 !
 address-family ipv4
  route-target export 2:1
  route-target import 2:1
 exit-address-family
!
vrf definition B
 rd 2:2
 !
 address-family ipv4
  route-target export 2:2
  route-target import 2:2
 exit-address-family
!
mpls label protocol ldp
!
interface Loopback0
 ip address 21.21.21.21 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.11.12.11 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 no shutdown
!
interface GigabitEthernet2
 vrf forwarding A
 ip address 172.16.2.1 255.255.255.252
 no shutdown
!
interface GigabitEthernet3
 vrf forwarding B
 ip address 172.16.2.5 255.255.255.252
 no shutdown
!
router ospf 2
 router-id 21.21.21.21
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 2
 bgp router-id 21.21.21.21
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 23.23.23.23 remote-as 2
 neighbor 23.23.23.23 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 23.23.23.23 activate
  neighbor 23.23.23.23 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf A
  redistribute connected
  neighbor 172.16.2.2 remote-as 65102
  neighbor 172.16.2.2 activate
 exit-address-family
 !
 address-family ipv4 vrf B
  redistribute connected
  neighbor 172.16.2.6 remote-as 65202
  neighbor 172.16.2.6 activate
 exit-address-family
!
mpls ldp router-id Loopback0
!

P2

!
hostname P2
!
mpls label protocol ldp

!
interface Loopback0
 ip address 22.22.22.22 255.255.255.255
 ip ospf 2 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.21.22.22 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown
!
interface GigabitEthernet2
 mtu 1600
 ip address 20.22.23.22 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown

interface GigabitEthernet3
 mtu 1600
 ip address 20.22.24.22 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown


!
router ospf 2
 router-id 22.22.22.22
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
 no passive-interface GigabitEthernet3
 mpls ldp sync
 mpls ldp autoconfig area 0
!
mpls ldp router-id Loopback0
!

RR2

!
hostname RR2
!
mpls label protocol ldp
!
interface Loopback0
 ip address 23.23.23.23 255.255.255.255
 ip ospf 2 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.22.23.23 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown
!
router ospf 1
 router-id 23.23.23.23
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 2
 bgp router-id 23.23.23.23
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 21.21.21.21 remote-as 2
 neighbor 21.21.21.21 update-source Loopback0
 neighbor 24.24.24.24 remote-as 2
 neighbor 24.24.24.24 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 21.21.21.21 activate
  neighbor 21.21.21.21 send-community extended
  neighbor 21.21.21.21 route-reflector-client
  neighbor 24.24.24.24 activate
  neighbor 24.24.24.24 send-community extended
  neighbor 24.24.24.24 route-reflector-client
 exit-address-family
!
mpls ldp router-id Loopback0
!

ASBR2

!
hostname ASBR2
!
mpls label protocol ldp
!
interface Loopback0
 ip address 24.24.24.24 255.255.255.255
 ip ospf 2 area 0
!
interface GigabitEthernet1
 mtu 1600
 ip address 20.22.24.24 255.255.255.0
 ip ospf network point-to-point
 ip ospf 2 area 0
 no shutdown
!
router ospf 2
 router-id 24.24.24.24
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 2
 bgp router-id 24.24.24.24
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 23.23.23.23 remote-as 2
 neighbor 23.23.23.23  update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 23.23.23.23  activate
  neighbor 23.23.23.23  send-community extended
 exit-address-family
!
mpls ldp router-id Loopback0

CE Routers

CE-A1

en
conf t
hostname CE-A1

interface GigabitEthernet0/0
 ip address 172.16.1.2 255.255.255.252
 no shut


interface Loopback0
 ip address 192.168.1.1 255.255.255.255

router bgp 65101
 bgp router-id 192.168.1.1
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 172.16.1.1 remote-as 1
 !
 address-family ipv4
  network 192.168.1.1 mask 255.255.255.255
  neighbor 172.16.1.1 activate
 exit-address-family

CE-A2

conf t
hostname CE-A2

interface GigabitEthernet0/0
 ip address 172.16.2.2 255.255.255.252
 no shut


interface Loopback0
 ip address 192.168.1.2 255.255.255.255

router bgp 65102
 bgp router-id 192.168.1.2
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 172.16.2.1 remote-as 2
 !
 address-family ipv4
  network 192.168.1.2 mask 255.255.255.255
  neighbor 172.16.2.1 activate
 exit-address-family

CE-B1

conf t
hostname CE-B1

interface GigabitEthernet0/0
 ip address 172.16.1.6 255.255.255.252
 no shut


interface Loopback0
 ip address 192.168.2.1 255.255.255.255

router bgp 65201
 bgp router-id 192.168.2.1
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 172.16.2.5 remote-as 1
 !
 address-family ipv4
  network 192.168.2.1 mask 255.255.255.255
  neighbor 172.16.2.5 activate
 exit-address-family

CE-B2

conf t
hostname CE-B2

interface GigabitEthernet0/0
 ip address 172.16.2.6 255.255.255.252
 no shut


interface Loopback0
 ip address 192.168.2.2 255.255.255.255

router bgp 65202
 bgp router-id 192.168.2.2
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 172.16.2.5 remote-as 2
 !
 address-family ipv4
  network 192.168.2.2 mask 255.255.255.255
  neighbor 172.16.2.5 activate
 exit-address-family

Inter-AS configuration

VRFs and Interfaces

ASBR1

vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
 exit-address-family
!
vrf definition B
 rd 1:2
 !
 address-family ipv4
  route-target export 1:2
  route-target import 1:2
 exit-address-family
!

interface GigabitEthernet2
 mtu 1600
 no ip address
 no shutdown
!
interface GigabitEthernet2.101
 encapsulation dot1Q 101
 vrf forwarding A
 ip address 172.16.0.1 255.255.255.252
!
interface GigabitEthernet2.102
 encapsulation dot1Q 102
 vrf forwarding B
 ip address 172.16.0.5 255.255.255.252
!

ASBR2

vrf definition A
 rd 2:1
 !
 address-family ipv4
  route-target export 2:1
  route-target import 2:1
 exit-address-family
!
vrf definition B
 rd 2:2
 !
 address-family ipv4
  route-target export 2:2
  route-target import 2:2
 exit-address-family
!
interface GigabitEthernet2
 mtu 1600
 no ip address
 no shutdown
!
interface GigabitEthernet2.101
 encapsulation dot1Q 101
 vrf forwarding A
 ip address 172.16.0.2 255.255.255.252
!
interface GigabitEthernet2.102
 encapsulation dot1Q 102
 vrf forwarding B
 ip address 172.16.0.6 255.255.255.252
!

Inter-AS BGP

ASBR1

router bgp 1
!
 address-family ipv4 vrf A
  redistribute connected
  neighbor 172.16.0.2 remote-as 2
  neighbor 172.16.0.2 activate
 exit-address-family
 !
 address-family ipv4 vrf B
  redistribute connected
  neighbor 172.16.0.6 remote-as 2
  neighbor 172.16.0.6 activate
 exit-address-family

ASBR2

router bgp 2
 !
 address-family ipv4 vrf A
  redistribute connected
  neighbor 172.16.0.1 remote-as 1
  neighbor 172.16.0.1 activate
exit-address-family
 !
 address-family ipv4 vrf B
  redistribute connected
  neighbor 172.16.0.5 remote-as 1
  neighbor 172.16.0.5 activate
exit-address-family

Verification

ASBR1

ASBR1#show bgp vpnv4 unicast vrf A
BGP table version is 19, local router ID is 14.14.14.14
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:1 (default for vrf A)
 *    172.16.0.0/30    172.16.0.2               0             0 2 ?
 *>                    0.0.0.0                  0         32768 ?
 *>i  172.16.1.0/30    11.11.11.11              0    100      0 ?
 *>   172.16.2.0/30    172.16.0.2                             0 2 ?
 *>i  192.168.1.1/32   11.11.11.11              0    100      0 65101 i
 *>   192.168.1.2/32   172.16.0.2                             0 2 65102 i
ASBR1#
ASBR1#
ASBR1#show bgp vpnv4 unicast vrf B
BGP table version is 19, local router ID is 14.14.14.14
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:2 (default for vrf B)
 *    172.16.0.4/30    172.16.0.6               0             0 2 ?
 *>                    0.0.0.0                  0         32768 ?
 *>i  172.16.1.4/30    11.11.11.11              0    100      0 ?
 *>   172.16.2.4/30    172.16.0.6                             0 2 ?
 *>i  192.168.2.1/32   11.11.11.11              0    100      0 65201 i
 *>   192.168.2.2/32   172.16.0.6                             0 2 65202 i
ASBR1#



ASBR1#show ip route vrf A | beg Gateway
Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C        172.16.0.0/30 is directly connected, GigabitEthernet2.101
L        172.16.0.1/32 is directly connected, GigabitEthernet2.101
B        172.16.1.0/30 [200/0] via 11.11.11.11, 02:09:19
B        172.16.2.0/30 [20/0] via 172.16.0.2, 01:56:49
      192.168.1.0/32 is subnetted, 2 subnets
B        192.168.1.1 [200/0] via 11.11.11.11, 02:09:19
B        192.168.1.2 [20/0] via 172.16.0.2, 01:56:49
ASBR1#
ASBR1#
ASBR1#show ip route vrf B | beg Gateway
Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C        172.16.0.4/30 is directly connected, GigabitEthernet2.102
L        172.16.0.5/32 is directly connected, GigabitEthernet2.102
B        172.16.1.4/30 [200/0] via 11.11.11.11, 02:09:26
B        172.16.2.4/30 [20/0] via 172.16.0.6, 01:56:48
      192.168.2.0/32 is subnetted, 2 subnets
B        192.168.2.1 [200/0] via 11.11.11.11, 02:09:26
B        192.168.2.2 [20/0] via 172.16.0.6, 01:56:48
ASBR1#


ASBR1#show ip cef vrf A 192.168.1.1/32 detail
192.168.1.1/32, epoch 0, flags [rib defined all labels]
  recursive via 11.11.11.11 label 23
    nexthop 10.12.14.12 GigabitEthernet1 label 16-(local:18)

ASBR1#show ip cef vrf A 192.168.1.2/32 detail
192.168.1.2/32, epoch 0, flags [rib only nolabel, rib defined all labels]
  dflt local label info: other/23 [0x2]
  recursive via 172.16.0.2
    attached to GigabitEthernet2.101
ASBR1#

ASBR1#show ip cef vrf B 192.168.2.1/32 detail
192.168.2.1/32, epoch 0, flags [rib defined all labels]
  recursive via 11.11.11.11 label 24
    nexthop 10.12.14.12 GigabitEthernet1 label 16-(local:18)

ASBR1#show ip cef vrf B 192.168.2.2/32 detail
192.168.2.2/32, epoch 0, flags [rib only nolabel, rib defined all labels]
  dflt local label info: other/25 [0x2]
  recursive via 172.16.0.6
    attached to GigabitEthernet2.102
ASBR1#

ASBR 2

ASBR2#show bgp vpnv4 unicast vrf A
BGP table version is 19, local router ID is 24.24.24.24
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 2:1 (default for vrf A)
 *    172.16.0.0/30    172.16.0.1               0             0 1 ?
 *>                    0.0.0.0                  0         32768 ?
 *>   172.16.1.0/30    172.16.0.1                             0 1 ?
 *>i  172.16.2.0/30    21.21.21.21              0    100      0 ?
 *>   192.168.1.1/32   172.16.0.1                             0 1 65101 i
 *>i  192.168.1.2/32   21.21.21.21              0    100      0 65102 i
ASBR2#
ASBR2#show bgp vpnv4 unicast vrf B
BGP table version is 19, local router ID is 24.24.24.24
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 2:2 (default for vrf B)
 *    172.16.0.4/30    172.16.0.5               0             0 1 ?
 *>                    0.0.0.0                  0         32768 ?
 *>   172.16.1.4/30    172.16.0.5                             0 1 ?
 *>i  172.16.2.4/30    21.21.21.21              0    100      0 ?
 *>   192.168.2.1/32   172.16.0.5                             0 1 65201 i
 *>i  192.168.2.2/32   21.21.21.21              0    100      0 65202 i
ASBR2#

ASBR2#show ip route vrf A | beg Gateway
Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C        172.16.0.0/30 is directly connected, GigabitEthernet2.101
L        172.16.0.2/32 is directly connected, GigabitEthernet2.101
B        172.16.1.0/30 [20/0] via 172.16.0.1, 02:02:38
B        172.16.2.0/30 [200/0] via 21.21.21.21, 02:14:41
      192.168.1.0/32 is subnetted, 2 subnets
B        192.168.1.1 [20/0] via 172.16.0.1, 02:02:38
B        192.168.1.2 [200/0] via 21.21.21.21, 02:14:41
ASBR2#
ASBR2#show ip route vrf B | beg Gateway
Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C        172.16.0.4/30 is directly connected, GigabitEthernet2.102
L        172.16.0.6/32 is directly connected, GigabitEthernet2.102
B        172.16.1.4/30 [20/0] via 172.16.0.5, 02:02:35
B        172.16.2.4/30 [200/0] via 21.21.21.21, 02:14:46
      192.168.2.0/32 is subnetted, 2 subnets
B        192.168.2.1 [20/0] via 172.16.0.5, 02:02:35
B        192.168.2.2 [200/0] via 21.21.21.21, 02:14:46
ASBR2#

ASBR2#show ip cef vrf A 192.168.1.1/32 detail
192.168.1.1/32, epoch 0, flags [rib only nolabel, rib defined all labels]
  dflt local label info: other/23 [0x2]
  recursive via 172.16.0.1
    attached to GigabitEthernet2.101
ASBR2#
ASBR2#show ip cef vrf A 192.168.1.2/32 detail
192.168.1.2/32, epoch 0, flags [rib defined all labels]
  recursive via 21.21.21.21 label 23
    nexthop 20.22.24.22 GigabitEthernet1 label 16-(local:18)
ASBR2#
ASBR2#
ASBR2#show ip cef vrf B 192.168.2.1/32 detail
192.168.2.1/32, epoch 0, flags [rib only nolabel, rib defined all labels]
  dflt local label info: other/25 [0x2]
  recursive via 172.16.0.5
    attached to GigabitEthernet2.102
ASBR2#
ASBR2#show ip cef vrf B 192.168.2.2/32 detail
192.168.2.2/32, epoch 0, flags [rib defined all labels]
  recursive via 21.21.21.21 label 24
    nexthop 20.22.24.22 GigabitEthernet1 label 16-(local:18)
ASBR2#

CE-A1

CE-A1#traceroute ip 192.168.1.2 source 192.168.1.1 numeric
Type escape sequence to abort.
Tracing the route to 192.168.1.2
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.1.1 [AS 1] 1 msec 0 msec 0 msec
  2 10.11.12.12 [MPLS: Labels 18/23 Exp 0] 2 msec 1 msec 1 msec
  3 172.16.0.1 [AS 1] [MPLS: Label 23 Exp 0] 2 msec 2 msec 1 msec
  4 172.16.0.2 [AS 1] 2 msec 1 msec 1 msec
  5 20.22.24.22 [MPLS: Labels 16/23 Exp 0] 3 msec 2 msec 2 msec
  6 172.16.2.1 [AS 2] [MPLS: Label 23 Exp 0] 3 msec 2 msec 3 msec
  7 172.16.2.2 [AS 2] 2 msec *  3 msec
CE-A1#

CE-A2

CE-A2#traceroute ip 192.168.1.1 source 192.168.1.2 numeric
Type escape sequence to abort.
Tracing the route to 192.168.1.1
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.2.1 [AS 2] 1 msec 1 msec 0 msec
  2 20.21.22.22 [MPLS: Labels 18/23 Exp 0] 1 msec 1 msec 2 msec
  3 172.16.0.2 [AS 2] [MPLS: Label 23 Exp 0] 1 msec 2 msec 1 msec
  4 172.16.0.1 [AS 2] 2 msec 1 msec 1 msec
  5 10.12.14.12 [MPLS: Labels 16/23 Exp 0] 2 msec 2 msec 3 msec
  6 172.16.1.1 [AS 1] [MPLS: Label 23 Exp 0] 2 msec 2 msec 2 msec
  7 172.16.1.2 [AS 1] 3 msec *  3 msec
CE-A2#

CE-B1

CE-B1#traceroute ip 192.168.2.2 source 192.168.2.1 numeric
Type escape sequence to abort.
Tracing the route to 192.168.2.2
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.1.5 [AS 1] 1 msec 0 msec 0 msec
  2 10.11.12.12 [MPLS: Labels 18/25 Exp 0] 2 msec 2 msec 1 msec
  3 172.16.0.5 [AS 1] [MPLS: Label 25 Exp 0] 1 msec 1 msec 1 msec
  4 172.16.0.6 [AS 1] 1 msec 1 msec 1 msec
  5 20.22.24.22 [MPLS: Labels 16/24 Exp 0] 3 msec 2 msec 3 msec
  6 172.16.2.5 [AS 2] [MPLS: Label 24 Exp 0] 2 msec 2 msec 2 msec
  7 172.16.2.6 [AS 2] 2 msec *  3 msec
CE-B1#

CE-B2

CE-B2#traceroute ip 192.168.2.1 source 192.168.2.2 numeric
Type escape sequence to abort.
Tracing the route to 192.168.2.1
VRF info: (vrf in name/id, vrf out name/id)
  1 172.16.2.5 [AS 2] 1 msec 1 msec 1 msec
  2 20.21.22.22 [MPLS: Labels 18/25 Exp 0] 2 msec 2 msec 2 msec
  3 172.16.0.6 [AS 2] [MPLS: Label 25 Exp 0] 2 msec 2 msec 1 msec
  4 172.16.0.5 [AS 2] 1 msec 1 msec 1 msec
  5 10.12.14.12 [MPLS: Labels 16/24 Exp 0] 3 msec 2 msec 3 msec
  6 172.16.1.5 [AS 1] [MPLS: Label 24 Exp 0] 3 msec 2 msec 3 msec
  7 172.16.1.6 [AS 1] 4 msec *  2 msec
CE-B2#

Packet Capture on inter-AS link

Packets are sent unlabelled

BGP Advertisement over Inter-AS link

ASBR2 advertises 192.168.1.2/32. This advertisement does not have any extended communities (RT) which are attached by PE2.

No.     Time           Source                Destination           Protocol Length Info
     17 0.296749       172.16.0.2            172.16.0.1            BGP      236    UPDATE Message, UPDATE Message, UPDATE Message, UPDATE Message

Frame 17: 236 bytes on wire (1888 bits), 236 bytes captured (1888 bits) on interface -, id 0
    Interface id: 0 (-)
        Interface name: -
    Encapsulation type: Ethernet (1)
    Arrival Time: Oct 10, 2022 23:38:34.123355000 AEST
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1665409114.123355000 seconds
    [Time delta from previous captured frame: 0.000371000 seconds]
    [Time delta from previous displayed frame: 0.000371000 seconds]
    [Time since reference or first frame: 0.296749000 seconds]
    Frame Number: 17
    Frame Length: 236 bytes (1888 bits)
    Capture Length: 236 bytes (1888 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: eth:ethertype:vlan:ethertype:ip:tcp:bgp]
    [Coloring Rule Name: TTL low or unexpected]
    [Coloring Rule String: ( ! ip.dst == 224.0.0.0/4 && ip.ttl < 5 && !pim && !ospf) || (ip.dst == 224.0.0.0/24 && ip.dst != 224.0.0.251 && ip.ttl != 1 && !(vrrp || carp))]
Ethernet II, Src: 50:00:00:04:00:01 (50:00:00:04:00:01), Dst: 50:00:00:03:00:01 (50:00:00:03:00:01)
    Destination: 50:00:00:03:00:01 (50:00:00:03:00:01)
        Address: 50:00:00:03:00:01 (50:00:00:03:00:01)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Source: 50:00:00:04:00:01 (50:00:00:04:00:01)
        Address: 50:00:00:04:00:01 (50:00:00:04:00:01)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Type: 802.1Q Virtual LAN (0x8100)
802.1Q Virtual LAN, PRI: 0, DEI: 0, ID: 101
    000. .... .... .... = Priority: Best Effort (default) (0)
    ...0 .... .... .... = DEI: Ineligible
    .... 0000 0110 0101 = ID: 101
    Type: IPv4 (0x0800)
Internet Protocol Version 4, Src: 172.16.0.2, Dst: 172.16.0.1
    0100 .... = Version: 4
    .... 0101 = Header Length: 20 bytes (5)
    Differentiated Services Field: 0xc0 (DSCP: CS6, ECN: Not-ECT)
        1100 00.. = Differentiated Services Codepoint: Class Selector 6 (48)
        .... ..00 = Explicit Congestion Notification: Not ECN-Capable Transport (0)
    Total Length: 218
    Identification: 0x78f0 (30960)
    Flags: 0x40, Don't fragment
        0... .... = Reserved bit: Not set
        .1.. .... = Don't fragment: Set
        ..0. .... = More fragments: Not set
    Fragment Offset: 0
    Time to Live: 1
        [Expert Info (Note/Sequence): "Time To Live" only 1]
            ["Time To Live" only 1]
            [Severity level: Note]
            [Group: Sequence]
    Protocol: TCP (6)
    Header Checksum: 0xa74a [validation disabled]
    [Header checksum status: Unverified]
    Source Address: 172.16.0.2
    Destination Address: 172.16.0.1
Transmission Control Protocol, Src Port: 179, Dst Port: 17067, Seq: 96, Ack: 77, Len: 178
    Source Port: 179
    Destination Port: 17067
    [Stream index: 1]
    [TCP Segment Len: 178]
    Sequence Number: 96    (relative sequence number)
    Sequence Number (raw): 676411038
    [Next Sequence Number: 274    (relative sequence number)]
    Acknowledgment Number: 77    (relative ack number)
    Acknowledgment number (raw): 1016359605
    0101 .... = Header Length: 20 bytes (5)
    Flags: 0x018 (PSH, ACK)
        000. .... .... = Reserved: Not set
        ...0 .... .... = Nonce: Not set
        .... 0... .... = Congestion Window Reduced (CWR): Not set
        .... .0.. .... = ECN-Echo: Not set
        .... ..0. .... = Urgent: Not set
        .... ...1 .... = Acknowledgment: Set
        .... .... 1... = Push: Set
        .... .... .0.. = Reset: Not set
        .... .... ..0. = Syn: Not set
        .... .... ...0 = Fin: Not set
        [TCP Flags: ·······AP···]
    Window: 16308
    [Calculated window size: 16308]
    [Window size scaling factor: -2 (no window scaling used)]
    Checksum: 0xaee4 [unverified]
    [Checksum Status: Unverified]
    Urgent Pointer: 0
    [SEQ/ACK analysis]
        [iRTT: 0.001338000 seconds]
        [Bytes in flight: 197]
        [Bytes sent since last PSH flag: 178]
    [Timestamps]
        [Time since first frame in this TCP stream: 0.008751000 seconds]
        [Time since previous frame in this TCP stream: 0.000371000 seconds]
    TCP payload (178 bytes)
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 52
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 24
    Path attributes
        Path Attribute - ORIGIN: IGP
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: IGP (0)
        Path Attribute - AS_PATH: 2 65102 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 10
            AS Path segment: 2 65102
                Segment type: AS_SEQUENCE (2)
                Segment length (number of ASN): 2
                AS4: 2
                AS4: 65102
        Path Attribute - NEXT_HOP: 172.16.0.2 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: NEXT_HOP (3)
            Length: 4
            Next hop: 172.16.0.2
    Network Layer Reachability Information (NLRI)
        192.168.1.2/32
            NLRI prefix length: 32
            NLRI prefix: 192.168.1.2
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 48
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 20
    Path attributes
        Path Attribute - ORIGIN: INCOMPLETE
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: INCOMPLETE (2)
        Path Attribute - AS_PATH: 2 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 6
            AS Path segment: 2
                Segment type: AS_SEQUENCE (2)
                Segment length (number of ASN): 1
                AS4: 2
        Path Attribute - NEXT_HOP: 172.16.0.2 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: NEXT_HOP (3)
            Length: 4
            Next hop: 172.16.0.2
    Network Layer Reachability Information (NLRI)
        172.16.2.0/30
            NLRI prefix length: 30
            NLRI prefix: 172.16.2.0
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 55
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 27
    Path attributes
        Path Attribute - ORIGIN: INCOMPLETE
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: INCOMPLETE (2)
        Path Attribute - AS_PATH: 2 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 6
            AS Path segment: 2
                Segment type: AS_SEQUENCE (2)
                Segment length (number of ASN): 1
                AS4: 2
        Path Attribute - NEXT_HOP: 172.16.0.2 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: NEXT_HOP (3)
            Length: 4
            Next hop: 172.16.0.2
        Path Attribute - MULTI_EXIT_DISC: 0
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MULTI_EXIT_DISC (4)
            Length: 4
            Multiple exit discriminator: 0
    Network Layer Reachability Information (NLRI)
        172.16.0.0/30
            NLRI prefix length: 30
            NLRI prefix: 172.16.0.0
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 23
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 0

BGP VPNv4 Advertisement Received from RR

Compare the above with the VPNv4 advertisement received for 192.168.1.2/32 by ASBR2 from RR2.

No.     Time           Source                Destination           Protocol Length Info
     30 17.835966      23.23.23.23           24.24.24.24           BGP      538    UPDATE Message, UPDATE Message, UPDATE Message, UPDATE Message, ROUTE-REFRESH Message, UPDATE Message

Frame 30: 538 bytes on wire (4304 bits), 538 bytes captured (4304 bits) on interface -, id 0
    Interface id: 0 (-)
        Interface name: -
    Encapsulation type: Ethernet (1)
    Arrival Time: Oct 10, 2022 23:31:21.249960000 AEST
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1665408681.249960000 seconds
    [Time delta from previous captured frame: 0.001172000 seconds]
    [Time delta from previous displayed frame: 0.001172000 seconds]
    [Time since reference or first frame: 17.835966000 seconds]
    Frame Number: 30
    Frame Length: 538 bytes (4304 bits)
    Capture Length: 538 bytes (4304 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: eth:ethertype:ip:tcp:bgp]
    [Coloring Rule Name: Routing]
    [Coloring Rule String: hsrp || eigrp || ospf || bgp || cdp || vrrp || carp || gvrp || igmp || ismp]
Ethernet II, Src: 50:00:00:05:00:02 (50:00:00:05:00:02), Dst: 50:00:00:04:00:00 (50:00:00:04:00:00)
    Destination: 50:00:00:04:00:00 (50:00:00:04:00:00)
        Address: 50:00:00:04:00:00 (50:00:00:04:00:00)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Source: 50:00:00:05:00:02 (50:00:00:05:00:02)
        Address: 50:00:00:05:00:02 (50:00:00:05:00:02)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Type: IPv4 (0x0800)
Internet Protocol Version 4, Src: 23.23.23.23, Dst: 24.24.24.24
    0100 .... = Version: 4
    .... 0101 = Header Length: 20 bytes (5)
    Differentiated Services Field: 0xc0 (DSCP: CS6, ECN: Not-ECT)
        1100 00.. = Differentiated Services Codepoint: Class Selector 6 (48)
        .... ..00 = Explicit Congestion Notification: Not ECN-Capable Transport (0)
    Total Length: 524
    Identification: 0x17c6 (6086)
    Flags: 0x40, Don't fragment
        0... .... = Reserved bit: Not set
        .1.. .... = Don't fragment: Set
        ..0. .... = More fragments: Not set
    Fragment Offset: 0
    Time to Live: 254
    Protocol: TCP (6)
    Header Checksum: 0x0408 [validation disabled]
    [Header checksum status: Unverified]
    Source Address: 23.23.23.23
    Destination Address: 24.24.24.24
Transmission Control Protocol, Src Port: 179, Dst Port: 15139, Seq: 100, Ack: 77, Len: 484
    Source Port: 179
    Destination Port: 15139
    [Stream index: 2]
    [TCP Segment Len: 484]
    Sequence Number: 100    (relative sequence number)
    Sequence Number (raw): 1934471827
    [Next Sequence Number: 584    (relative sequence number)]
    Acknowledgment Number: 77    (relative ack number)
    Acknowledgment number (raw): 993969392
    0101 .... = Header Length: 20 bytes (5)
    Flags: 0x018 (PSH, ACK)
        000. .... .... = Reserved: Not set
        ...0 .... .... = Nonce: Not set
        .... 0... .... = Congestion Window Reduced (CWR): Not set
        .... .0.. .... = ECN-Echo: Not set
        .... ..0. .... = Urgent: Not set
        .... ...1 .... = Acknowledgment: Set
        .... .... 1... = Push: Set
        .... .... .0.. = Reset: Not set
        .... .... ..0. = Syn: Not set
        .... .... ...0 = Fin: Not set
        [TCP Flags: ·······AP···]
    Window: 16308
    [Calculated window size: 16308]
    [Window size scaling factor: -2 (no window scaling used)]
    Checksum: 0xfb77 [unverified]
    [Checksum Status: Unverified]
    Urgent Pointer: 0
    [SEQ/ACK analysis]
        [iRTT: 0.001912000 seconds]
        [Bytes in flight: 507]
        [Bytes sent since last PSH flag: 484]
    [Timestamps]
        [Time since first frame in this TCP stream: 0.010750000 seconds]
        [Time since previous frame in this TCP stream: 0.001172000 seconds]
    TCP payload (484 bytes)
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 111
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 88
    Path attributes
        Path Attribute - MP_REACH_NLRI
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MP_REACH_NLRI (14)
            Length: 33
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Next hop network address (12 bytes)
                Next Hop: Empty Label Stack RD=0:0 IPv4=21.21.21.21
            Number of Subnetwork points of attachment (SNPA): 0
            Network layer reachability information (16 bytes)
                BGP Prefix
                    Prefix Length: 120
                    Label Stack: 24 (bottom)
                    Route Distinguisher: 2:2
                    MP Reach NLRI IPv4 prefix: 192.168.2.2
        Path Attribute - ORIGIN: IGP
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: IGP (0)
        Path Attribute - AS_PATH: 65202 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 6
            AS Path segment: 65202
                Segment type: AS_SEQUENCE (2)
                Segment length (number of ASN): 1
                AS4: 65202
        Path Attribute - MULTI_EXIT_DISC: 0
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MULTI_EXIT_DISC (4)
            Length: 4
            Multiple exit discriminator: 0
        Path Attribute - LOCAL_PREF: 100
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: LOCAL_PREF (5)
            Length: 4
            Local preference: 100
        Path Attribute - EXTENDED_COMMUNITIES
            Flags: 0xc0, Optional, Transitive, Complete
                1... .... = Optional: Set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: EXTENDED_COMMUNITIES (16)
            Length: 8
            Carried extended communities: (1 community)
                Route Target: 2:2 [Transitive 2-Octet AS-Specific]
                    Type: Transitive 2-Octet AS-Specific (0x00)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (AS2): Route Target (0x02)
                    2-Octet AS: 2
                    4-Octet AN: 2
        Path Attribute - CLUSTER_LIST: 23.23.23.23
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: CLUSTER_LIST (10)
            Length: 4
            Cluster List: 23.23.23.23
                Cluster ID: 23.23.23.23
        Path Attribute - ORIGINATOR_ID: 21.21.21.21 
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGINATOR_ID (9)
            Length: 4
            Originator identifier: 21.21.21.21
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 111
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 88
    Path attributes
        Path Attribute - MP_REACH_NLRI
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MP_REACH_NLRI (14)
            Length: 33
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Next hop network address (12 bytes)
                Next Hop: Empty Label Stack RD=0:0 IPv4=21.21.21.21
            Number of Subnetwork points of attachment (SNPA): 0
            Network layer reachability information (16 bytes)
                BGP Prefix
                    Prefix Length: 120
                    Label Stack: 23 (bottom)
                    Route Distinguisher: 2:1
                    MP Reach NLRI IPv4 prefix: 192.168.1.2
        Path Attribute - ORIGIN: IGP
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: IGP (0)
        Path Attribute - AS_PATH: 65102 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 6
            AS Path segment: 65102
                Segment type: AS_SEQUENCE (2)
                Segment length (number of ASN): 1
                AS4: 65102
        Path Attribute - MULTI_EXIT_DISC: 0
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MULTI_EXIT_DISC (4)
            Length: 4
            Multiple exit discriminator: 0
        Path Attribute - LOCAL_PREF: 100
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: LOCAL_PREF (5)
            Length: 4
            Local preference: 100
        Path Attribute - EXTENDED_COMMUNITIES
            Flags: 0xc0, Optional, Transitive, Complete
                1... .... = Optional: Set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: EXTENDED_COMMUNITIES (16)
            Length: 8
            Carried extended communities: (1 community)
                Route Target: 2:1 [Transitive 2-Octet AS-Specific]
                    Type: Transitive 2-Octet AS-Specific (0x00)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (AS2): Route Target (0x02)
                    2-Octet AS: 2
                    4-Octet AN: 1
        Path Attribute - CLUSTER_LIST: 23.23.23.23
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: CLUSTER_LIST (10)
            Length: 4
            Cluster List: 23.23.23.23
                Cluster ID: 23.23.23.23
        Path Attribute - ORIGINATOR_ID: 21.21.21.21 
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGINATOR_ID (9)
            Length: 4
            Originator identifier: 21.21.21.21
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 105
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 82
    Path attributes
        Path Attribute - MP_REACH_NLRI
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MP_REACH_NLRI (14)
            Length: 33
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Next hop network address (12 bytes)
                Next Hop: Empty Label Stack RD=0:0 IPv4=21.21.21.21
            Number of Subnetwork points of attachment (SNPA): 0
            Network layer reachability information (16 bytes)
                BGP Prefix
                    Prefix Length: 118
                    Label Stack: 17 (bottom)
                    Route Distinguisher: 2:2
                    MP Reach NLRI IPv4 prefix: 172.16.2.4
        Path Attribute - ORIGIN: INCOMPLETE
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: INCOMPLETE (2)
        Path Attribute - AS_PATH: empty
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 0
        Path Attribute - MULTI_EXIT_DISC: 0
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MULTI_EXIT_DISC (4)
            Length: 4
            Multiple exit discriminator: 0
        Path Attribute - LOCAL_PREF: 100
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: LOCAL_PREF (5)
            Length: 4
            Local preference: 100
        Path Attribute - EXTENDED_COMMUNITIES
            Flags: 0xc0, Optional, Transitive, Complete
                1... .... = Optional: Set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: EXTENDED_COMMUNITIES (16)
            Length: 8
            Carried extended communities: (1 community)
                Route Target: 2:2 [Transitive 2-Octet AS-Specific]
                    Type: Transitive 2-Octet AS-Specific (0x00)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (AS2): Route Target (0x02)
                    2-Octet AS: 2
                    4-Octet AN: 2
        Path Attribute - CLUSTER_LIST: 23.23.23.23
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: CLUSTER_LIST (10)
            Length: 4
            Cluster List: 23.23.23.23
                Cluster ID: 23.23.23.23
        Path Attribute - ORIGINATOR_ID: 21.21.21.21 
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGINATOR_ID (9)
            Length: 4
            Originator identifier: 21.21.21.21
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 105
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 82
    Path attributes
        Path Attribute - MP_REACH_NLRI
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MP_REACH_NLRI (14)
            Length: 33
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Next hop network address (12 bytes)
                Next Hop: Empty Label Stack RD=0:0 IPv4=21.21.21.21
            Number of Subnetwork points of attachment (SNPA): 0
            Network layer reachability information (16 bytes)
                BGP Prefix
                    Prefix Length: 118
                    Label Stack: 16 (bottom)
                    Route Distinguisher: 2:1
                    MP Reach NLRI IPv4 prefix: 172.16.2.0
        Path Attribute - ORIGIN: INCOMPLETE
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: INCOMPLETE (2)
        Path Attribute - AS_PATH: empty
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 0
        Path Attribute - MULTI_EXIT_DISC: 0
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MULTI_EXIT_DISC (4)
            Length: 4
            Multiple exit discriminator: 0
        Path Attribute - LOCAL_PREF: 100
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: LOCAL_PREF (5)
            Length: 4
            Local preference: 100
        Path Attribute - EXTENDED_COMMUNITIES
            Flags: 0xc0, Optional, Transitive, Complete
                1... .... = Optional: Set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: EXTENDED_COMMUNITIES (16)
            Length: 8
            Carried extended communities: (1 community)
                Route Target: 2:1 [Transitive 2-Octet AS-Specific]
                    Type: Transitive 2-Octet AS-Specific (0x00)
                        0... .... = IANA Authority: Allocated on Standard Action, Early Allocation or Experimental Basis
                        .0.. .... = Transitive across AS: Transitive
                    Subtype (AS2): Route Target (0x02)
                    2-Octet AS: 2
                    4-Octet AN: 1
        Path Attribute - CLUSTER_LIST: 23.23.23.23
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: CLUSTER_LIST (10)
            Length: 4
            Cluster List: 23.23.23.23
                Cluster ID: 23.23.23.23
        Path Attribute - ORIGINATOR_ID: 21.21.21.21 
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGINATOR_ID (9)
            Length: 4
            Originator identifier: 21.21.21.21
Border Gateway Protocol - ROUTE-REFRESH Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 23
    Type: ROUTE-REFRESH Message (5)
    Address family identifier (AFI): IPv4 (1)
    Subtype: Demarcation of the ending of a route refresh (2)
    Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 29
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 6
    Path attributes
        Path Attribute - MP_UNREACH_NLRI
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MP_UNREACH_NLRI (15)
            Length: 3
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Labeled VPN Unicast (128)
            Withdrawn routes (0 bytes)

Summary

  • Extended Communities are not carried by the Inter-AS BGP session

PIM SSM Configuration: Cisco IOS

Brief Description

  1. HOST1 is the multicast Source with IP address 192.168.1.1
  2. HOST2 and HOST3 joins SSM group 232.0.0.1

Device Configuration

R1


hostname R1
!
ip multicast-routing distributed
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.1.4.1 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 192.168.1.254 255.255.255.0
 ip pim sparse-mode
 ip igmp version 3
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 1.1.1.1
 passive-interface default
 no passive-interface GigabitEthernet1
1
ip pim ssm default

R2

hostname R2
!
ip multicast-routing distributed
!
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.2.4.2 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 192.168.2.254 255.255.255.0
 ip pim sparse-mode
 ip igmp version 3
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 2.2.2.2
 passive-interface default
 no passive-interface GigabitEthernet1
!
ip pim ssm default

R3

hostname R3
!
ip multicast-routing distributed
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.3.4.3 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 192.168.3.254 255.255.255.0
 ip pim sparse-mode
 ip igmp version 3
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 3.3.3.3
 passive-interface default
 no passive-interface GigabitEthernet1
!
ip pim ssm default

R4

hostname R4
!
ip multicast-routing distributed
interface Loopback0
 ip address 4.4.4.4 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.1.4.4 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 10.2.4.4 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet3
 ip address 10.3.4.4 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 4.4.4.4
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
 no passive-interface GigabitEthernet3
!
ip pim ssm default

HOST1

hostname HOST1
!
ip multicast-routing
!
interface GigabitEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 ip igmp version 3

HOST2

hostname HOST2
!
ip multicast-routing
!
interface GigabitEthernet0/0
 ip address 192.168.2.1 255.255.255.0
ip igmp join-group 232.0.0.1 source 192.168.1.1
 ip igmp version 3

HOST3

hostname HOST2
!
ip multicast-routing
!
interface GigabitEthernet0/0
 ip address 192.168.3.1 255.255.255.0
ip igmp join-group 232.0.0.1 source 192.168.1.1
 ip igmp version 3

Verification

HOST1

HOST1#ping 232.0.0.1 repeat 5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 232.0.0.1, timeout is 2 seconds:

Reply to request 0 from 192.168.2.1, 3 ms
Reply to request 0 from 192.168.3.1, 3 ms
Reply to request 1 from 192.168.2.1, 2 ms
Reply to request 1 from 192.168.3.1, 2 ms
Reply to request 2 from 192.168.2.1, 2 ms
Reply to request 2 from 192.168.3.1, 2 ms
Reply to request 3 from 192.168.2.1, 2 ms
Reply to request 3 from 192.168.3.1, 2 ms
Reply to request 4 from 192.168.2.1, 2 ms
Reply to request 4 from 192.168.3.1, 2 ms
HOST1#

HOST2

HOST2#show ip igmp membership
Flags: A  - aggregate, T - tracked
       L  - Local, S - static, V - virtual, R - Reported through v3
       I - v3lite, U - Urd, M - SSM (S,G) channel
       1,2,3 - The version of IGMP, the group is in
Channel/Group-Flags:
       / - Filtering entry (Exclude mode (S,G), Include mode (G))
Reporter:
       <mac-or-ip-address> - last reporter if group is not explicitly tracked
       <n>/<m>      - <n> reporter in include mode, <m> reporter in exclude

 Channel/Group                  Reporter        Uptime   Exp.  Flags  Interface
 *,232.0.0.1                    192.168.2.1     00:38:09 stop  3LA    Gi0/0

HOST2#show ip igmp interface gi0/0
GigabitEthernet0/0 is up, line protocol is up
  Internet address is 192.168.2.1/24
  IGMP is enabled on interface
  Current IGMP host version is 3
  Current IGMP router version is 3
  IGMP query interval is 60 seconds
  IGMP configured query interval is 60 seconds
  IGMP querier timeout is 120 seconds
  IGMP configured querier timeout is 120 seconds
  IGMP max query response time is 10 seconds
  Last member query count is 2
  Last member query response interval is 1000 ms
  Inbound IGMP access group is not set
  IGMP activity: 1 joins, 0 leaves
  Multicast routing is disabled on interface
  Multicast TTL threshold is 0
  Multicast groups joined by this system (number of users):
      232.0.0.1(1)
HOST2#

HOST3

HOST3#show ip igmp membership
Flags: A  - aggregate, T - tracked
       L  - Local, S - static, V - virtual, R - Reported through v3
       I - v3lite, U - Urd, M - SSM (S,G) channel
       1,2,3 - The version of IGMP, the group is in
Channel/Group-Flags:
       / - Filtering entry (Exclude mode (S,G), Include mode (G))
Reporter:
       <mac-or-ip-address> - last reporter if group is not explicitly tracked
       <n>/<m>      - <n> reporter in include mode, <m> reporter in exclude

 Channel/Group                  Reporter        Uptime   Exp.  Flags  Interface
 *,232.0.0.1                    192.168.3.1     00:39:19 stop  3LA    Gi0/0
HOST3#
HOST3#
HOST3#show ip igmp interface gi0/0
GigabitEthernet0/0 is up, line protocol is up
  Internet address is 192.168.3.1/24
  IGMP is enabled on interface
  Current IGMP host version is 3
  Current IGMP router version is 3
  IGMP query interval is 60 seconds
  IGMP configured query interval is 60 seconds
  IGMP querier timeout is 120 seconds
  IGMP configured querier timeout is 120 seconds
  IGMP max query response time is 10 seconds
  Last member query count is 2
  Last member query response interval is 1000 ms
  Inbound IGMP access group is not set
  IGMP activity: 1 joins, 0 leaves
  Multicast routing is disabled on interface
  Multicast TTL threshold is 0
  Multicast groups joined by this system (number of users):
      232.0.0.1(1)
HOST3#

R1

R1#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(192.168.1.1, 232.0.0.1), 00:33:55/00:03:01, flags: sT
  Incoming interface: GigabitEthernet2, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet1, Forward/Sparse, 00:33:56/00:03:01

(*, 224.0.1.40), 00:43:38/00:02:26, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 00:43:36/00:02:26

R1#

R2

R2#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(192.168.1.1, 232.0.0.1), 00:34:22/00:02:35, flags: sTI
  Incoming interface: GigabitEthernet1, RPF nbr 10.2.4.4
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 00:34:22/00:02:35

(*, 224.0.1.40), 00:43:39/00:02:27, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 00:43:37/00:02:27

R2#

R3

R3#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(192.168.1.1, 232.0.0.1), 00:29:32/00:02:24, flags: sTI
  Incoming interface: GigabitEthernet1, RPF nbr 10.3.4.4
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 00:29:32/00:02:24

(*, 224.0.1.40), 00:43:13/00:02:50, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 00:43:11/00:02:50

R3#

R4

R4#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(192.168.1.1, 232.0.0.1), 00:35:27/00:03:22, flags: sT
  Incoming interface: GigabitEthernet1, RPF nbr 10.1.4.1
  Outgoing interface list:
    GigabitEthernet3, Forward/Sparse, 00:29:57/00:03:06
    GigabitEthernet2, Forward/Sparse, 00:35:27/00:03:22

(*, 224.0.1.40), 00:42:58/00:02:04, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 00:42:56/00:02:04

R4#

PIM ASM Configuration – BSR: Cisco IOS

Brief Description

  1. R1 has a RP priority of 255
  2. R4 has a RP priority of 128
  3. HOST1 is the multicast source
  4. HOST2 and HOST2 joins the ASM group 225.1.1.1

Device Configurations

R1

hostname R1
!
ip multicast-routing distributed
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.1.4.1 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 192.168.1.254 255.255.255.0
 ip pim sparse-mode
 ip igmp version 3
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 1.1.1.1
 passive-interface default
 no passive-interface GigabitEthernet1
!
ip pim bsr-candidate Loopback0 0
ip pim rp-candidate Loopback0 priority 255
!
ip pim ssm default
!

R2

hostname R2
!
ip multicast-routing distributed
!
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.2.4.2 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 192.168.2.254 255.255.255.0
 ip pim sparse-mode
 ip igmp version 3
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 2.2.2.2
 passive-interface default
 no passive-interface GigabitEthernet1
!
ip pim ssm default

R3

hostname R3
!
ip multicast-routing distributed
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.3.4.3 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 192.168.3.254 255.255.255.0
 ip pim sparse-mode
 ip igmp version 3
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 3.3.3.3
 passive-interface default
 no passive-interface GigabitEthernet1
!
ip pim ssm default

R4

hostname R4
!
ip multicast-routing distributed
interface Loopback0
 ip address 4.4.4.4 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.1.4.4 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 10.2.4.4 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet3
 ip address 10.3.4.4 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 4.4.4.4
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
 no passive-interface GigabitEthernet3
!
ip pim bsr-candidate Loopback0 0
ip pim rp-candidate Loopback0 priority 128
!
ip pim ssm default
!

HOST1

hostname HOST1
!
ip multicast-routing
!
interface GigabitEthernet0/0
 ip address 192.168.1.1 255.255.255.0

HOST2

hostname HOST2
!
ip multicast-routing
!
interface GigabitEthernet0/0
 ip address 192.168.2.1 255.255.255.0
 ip igmp join-group 232.0.0.1 source 192.168.1.1
 ip igmp join-group 225.1.1.1
 ip igmp version 3
 

HOST3

hostname HOST2
!
ip multicast-routing
!
interface GigabitEthernet0/0
 ip address 192.168.3.1 255.255.255.0
 ip igmp join-group 232.0.0.1 source 192.168.1.1
 ip igmp join-group 225.1.1.1
 ip igmp version 3

Verification

HOST1

HOST1#ping 225.1.1.1 repeat 5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 225.1.1.1, timeout is 2 seconds:

Reply to request 0 from 192.168.2.1, 34 ms
Reply to request 0 from 192.168.3.1, 35 ms
Reply to request 1 from 192.168.2.1, 13 ms
Reply to request 1 from 192.168.3.1, 51 ms
Reply to request 1 from 192.168.2.1, 51 ms
Reply to request 1 from 192.168.3.1, 13 ms
Reply to request 2 from 192.168.2.1, 2 ms
Reply to request 2 from 192.168.3.1, 2 ms
Reply to request 3 from 192.168.2.1, 2 ms
Reply to request 3 from 192.168.3.1, 2 ms
Reply to request 4 from 192.168.2.1, 2 ms
Reply to request 4 from 192.168.3.1, 2 ms
HOST1#

HOST2

HOST2#show ip igmp membership
Flags: A  - aggregate, T - tracked
       L  - Local, S - static, V - virtual, R - Reported through v3
       I - v3lite, U - Urd, M - SSM (S,G) channel
       1,2,3 - The version of IGMP, the group is in
Channel/Group-Flags:
       / - Filtering entry (Exclude mode (S,G), Include mode (G))
Reporter:
       <mac-or-ip-address> - last reporter if group is not explicitly tracked
       <n>/<m>      - <n> reporter in include mode, <m> reporter in exclude

 Channel/Group                  Reporter        Uptime   Exp.  Flags  Interface
 *,232.0.0.1                    192.168.2.1     01:02:23 stop  3LA    Gi0/0
 *,225.1.1.1                    192.168.2.1     00:12:39 never 3LA    Gi0/0
HOST2#

HOST3

HOST3#show ip igmp membership
Flags: A  - aggregate, T - tracked
       L  - Local, S - static, V - virtual, R - Reported through v3
       I - v3lite, U - Urd, M - SSM (S,G) channel
       1,2,3 - The version of IGMP, the group is in
Channel/Group-Flags:
       / - Filtering entry (Exclude mode (S,G), Include mode (G))
Reporter:
       <mac-or-ip-address> - last reporter if group is not explicitly tracked
       <n>/<m>      - <n> reporter in include mode, <m> reporter in exclude

 Channel/Group                  Reporter        Uptime   Exp.  Flags  Interface
 *,232.0.0.1                    192.168.3.1     01:02:46 stop  3LA    Gi0/0
 *,225.1.1.1                    192.168.3.1     00:13:06 never 3LA    Gi0/0
HOST3#

R1

R1#show ip pim rp
Group: 225.1.1.1, RP: 4.4.4.4, uptime 00:18:37, expires 00:01:58
R1#show ip pim rp-hash 225.1.1.1
  RP 4.4.4.4 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
         Uptime: 00:18:37, expires: 00:01:58
  PIMv2 Hash Value (mask 0.0.0.0)
    RP 4.4.4.4, via bootstrap, priority 128, hash value 1642267698
    RP 1.1.1.1, via bootstrap, priority 255, hash value 332477713
R1#show ip pim rp mapping
PIM Group-to-RP Mappings
This system is a candidate RP (v2)

Group(s) 224.0.0.0/4
  RP 4.4.4.4 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
         Uptime: 00:18:37, expires: 00:01:58
  RP 1.1.1.1 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 255, holdtime 150
         Uptime: 00:19:03, expires: 00:01:59
R1#show ip pim tunnel
Tunnel0
  Type       : PIM Encap
  RP         : 1.1.1.1*
  Source     : 1.1.1.1
  State      : UP
  Last event : Created (00:19:03)
Tunnel2
  Type       : PIM Encap
  RP         : 4.4.4.4
  Source     : 10.1.4.1
  State      : UP
  Last event : Created (00:18:37)
Tunnel1
  Type       : PIM Decap
  RP         : 1.1.1.1*
  Source     : -
  State      : UP
  Last event : Created (00:19:03)
R1#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(192.168.1.1, 232.0.0.1), 01:01:07/00:03:23, flags: sT
  Incoming interface: GigabitEthernet2, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet1, Forward/Sparse, 01:01:07/00:03:23

(*, 225.1.1.1), 00:00:19/stopped, RP 4.4.4.4, flags: SPF
  Incoming interface: GigabitEthernet1, RPF nbr 10.1.4.4
  Outgoing interface list: Null

(192.168.1.1, 225.1.1.1), 00:00:19/00:03:14, flags: FT
  Incoming interface: GigabitEthernet2, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet1, Forward/Sparse, 00:00:19/00:03:12

(*, 224.0.1.40), 01:10:50/00:02:14, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 01:10:48/00:02:14

R1#

R2

R2#show ip pim rp
Group: 225.1.1.1, RP: 4.4.4.4, uptime 00:23:06, expires 00:01:33
R2#show ip pim rp-hash 225.1.1.1
  RP 4.4.4.4 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
         Uptime: 00:23:06, expires: 00:01:33
  PIMv2 Hash Value (mask 0.0.0.0)
    RP 4.4.4.4, via bootstrap, priority 128, hash value 1642267698
    RP 1.1.1.1, via bootstrap, priority 255, hash value 332477713
R2#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s) 224.0.0.0/4
  RP 4.4.4.4 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
         Uptime: 00:23:06, expires: 00:01:33
  RP 1.1.1.1 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 255, holdtime 150
         Uptime: 00:23:32, expires: 00:01:32
R2#show ip pim tunnel
Tunnel0
  Type       : PIM Encap
  RP         : 1.1.1.1
  Source     : 10.2.4.2
  State      : UP
  Last event : Created (00:23:32)
Tunnel1
  Type       : PIM Encap
  RP         : 4.4.4.4
  Source     : 10.2.4.2
  State      : UP
  Last event : Created (00:23:06)
R2#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(192.168.1.1, 232.0.0.1), 01:05:36/00:02:23, flags: sTI
  Incoming interface: GigabitEthernet1, RPF nbr 10.2.4.4
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 01:05:36/00:02:23

(*, 225.1.1.1), 00:22:41/stopped, RP 4.4.4.4, flags: SJC
  Incoming interface: GigabitEthernet1, RPF nbr 10.2.4.4
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 00:22:41/00:02:23

(192.168.1.1, 225.1.1.1), 00:04:48/00:02:00, flags: JT
  Incoming interface: GigabitEthernet1, RPF nbr 10.2.4.4
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 00:04:48/00:02:23

(*, 224.0.1.40), 01:14:53/00:02:08, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 01:14:51/00:02:08

R2#

R3

R3#show ip pim rp
Group: 225.1.1.1, RP: 4.4.4.4, uptime 00:19:39, expires 00:02:00
R3#show ip pim rp-hash 225.1.1.1
  RP 4.4.4.4 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
         Uptime: 00:19:39, expires: 00:02:00
  PIMv2 Hash Value (mask 0.0.0.0)
    RP 4.4.4.4, via bootstrap, priority 128, hash value 1642267698
    RP 1.1.1.1, via bootstrap, priority 255, hash value 332477713
R3#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s) 224.0.0.0/4
  RP 4.4.4.4 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
         Uptime: 00:19:39, expires: 00:02:00
  RP 1.1.1.1 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 255, holdtime 150
         Uptime: 00:20:05, expires: 00:02:01
R3#show ip pim tunnel
Tunnel0
  Type       : PIM Encap
  RP         : 1.1.1.1
  Source     : 10.3.4.3
  State      : UP
  Last event : Created (00:20:05)
Tunnel1
  Type       : PIM Encap
  RP         : 4.4.4.4
  Source     : 10.3.4.3
  State      : UP
  Last event : Created (00:19:39)
R3#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(192.168.1.1, 232.0.0.1), 00:56:38/00:02:24, flags: sTI
  Incoming interface: GigabitEthernet1, RPF nbr 10.3.4.4
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 00:56:38/00:02:24

(*, 225.1.1.1), 00:18:58/stopped, RP 4.4.4.4, flags: SJC
  Incoming interface: GigabitEthernet1, RPF nbr 10.3.4.4
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 00:18:58/00:02:24

(192.168.1.1, 225.1.1.1), 00:01:21/00:01:38, flags: JT
  Incoming interface: GigabitEthernet1, RPF nbr 10.3.4.4
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 00:01:21/00:02:24

(*, 224.0.1.40), 01:10:19/00:02:43, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 01:10:17/00:02:43

R3#

R4

R4#show ip pim rp
Group: 225.1.1.1, RP: 4.4.4.4
R4#show ip pim rp-hash 225.1.1.1
  RP 4.4.4.4 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
         Uptime: 00:19:51, expires: 00:01:40
  PIMv2 Hash Value (mask 0.0.0.0)
    RP 4.4.4.4, via bootstrap, priority 128, hash value 1642267698
    RP 1.1.1.1, via bootstrap, priority 255, hash value 332477713
R4#show ip pim rp mapping
PIM Group-to-RP Mappings
This system is a candidate RP (v2)
This system is the Bootstrap Router (v2)

Group(s) 224.0.0.0/4
  RP 4.4.4.4 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
         Uptime: 00:19:51, expires: 00:01:40
  RP 1.1.1.1 (?), v2
    Info source: 1.1.1.1 (?), via bootstrap, priority 255, holdtime 150
         Uptime: 00:20:18, expires: 00:01:32
R4#show ip pim tunnel
Tunnel0
  Type       : PIM Encap
  RP         : 1.1.1.1
  Source     : 10.1.4.4
  State      : UP
  Last event : Created (00:20:18)
Tunnel2
  Type       : PIM Encap
  RP         : 4.4.4.4*
  Source     : 4.4.4.4
  State      : UP
  Last event : Created (00:19:51)
Tunnel1*
  Type       : PIM Decap
  RP         : 4.4.4.4*
  Source     : -
  State      : UP
  Last event : Created (00:19:51)
R4#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(192.168.1.1, 232.0.0.1), 01:02:21/00:03:00, flags: sT
  Incoming interface: GigabitEthernet1, RPF nbr 10.1.4.1
  Outgoing interface list:
    GigabitEthernet3, Forward/Sparse, 00:56:50/00:02:44
    GigabitEthernet2, Forward/Sparse, 01:02:21/00:03:00

(*, 225.1.1.1), 00:19:26/00:03:01, RP 4.4.4.4, flags: S
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet3, Forward/Sparse, 00:19:11/00:03:01
    GigabitEthernet2, Forward/Sparse, 00:19:26/00:02:43

(192.168.1.1, 225.1.1.1), 00:01:33/00:01:59, flags: T
  Incoming interface: GigabitEthernet1, RPF nbr 10.1.4.1
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 00:01:33/00:02:55
    GigabitEthernet3, Forward/Sparse, 00:01:33/00:03:01

(*, 224.0.1.40), 01:09:52/00:02:13, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 01:09:50/00:02:13

R4#

MVPN Profile 0: Cisco IOS-XE

Topology

Unicast L3VPN Configuration

PE1

hostname PE1
!
vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
 exit-address-family
!
no ip domain lookup
!
mpls label protocol ldp
!
interface Loopback0
 ip address 10.0.0.1 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.1.4.1 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 !
interface GigabitEthernet2
 vrf forwarding A
 ip address 192.168.1.1 255.255.255.0
 !
router ospf 1
 router-id 10.0.0.1
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 10.0.0.1
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 10.0.0.2 remote-as 1
 neighbor 10.0.0.2 update-source Loopback0
 neighbor 10.0.0.3 remote-as 1
 neighbor 10.0.0.3 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 10.0.0.2 activate
  neighbor 10.0.0.2 send-community extended
  neighbor 10.0.0.3 activate
  neighbor 10.0.0.3 send-community extended
 exit-address-family
  !
 address-family ipv4 vrf A
  redistribute connected
 exit-address-family
!
mpls ldp router-id Loopback0

PE2

hostname PE2
!
vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
 exit-address-family
!
no ip domain lookup
!
mpls label protocol ldp
!
interface Loopback0
 ip address 10.0.0.2 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.2.4.2 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 vrf forwarding A
 ip address 192.168.2.1 255.255.255.0
!
router ospf 1
 router-id 10.0.0.2
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 10.0.0.2
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 10.0.0.1 remote-as 1
 neighbor 10.0.0.1 update-source Loopback0
 neighbor 10.0.0.3 remote-as 1
 neighbor 10.0.0.3 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 10.0.0.1 activate
  neighbor 10.0.0.1 send-community extended
  neighbor 10.0.0.3 activate
  neighbor 10.0.0.3 send-community extended
 exit-address-family
  !
 address-family ipv4 vrf A
  redistribute connected
 exit-address-family
!
mpls ldp router-id Loopback0

PE3

hostname PE3
!
vrf definition A
 rd 1:1
 !
 address-family ipv4
  route-target export 1:1
  route-target import 1:1
 exit-address-family
!
no ip domain lookup
!
mpls label protocol ldp
!
interface Loopback0
 ip address 10.0.0.3 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.3.4.3 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
 !
interface GigabitEthernet2
 vrf forwarding A
 ip address 192.168.3.1 255.255.255.0
 !
router ospf 1
 router-id 10.0.0.3
 passive-interface default
 no passive-interface GigabitEthernet1
 mpls ldp sync
 mpls ldp autoconfig area 0
!
router bgp 1
 bgp router-id 10.0.0.3
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 10.0.0.1 remote-as 1
 neighbor 10.0.0.1 update-source Loopback0
 neighbor 10.0.0.2 remote-as 1
 neighbor 10.0.0.2 update-source Loopback0
 !
 address-family ipv4
 exit-address-family
 !
 address-family vpnv4
  neighbor 10.0.0.1 activate
  neighbor 10.0.0.1 send-community extended
  neighbor 10.0.0.2 activate
  neighbor 10.0.0.2 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf A
  redistribute connected
 exit-address-family
!
mpls ldp router-id Loopback0

P1

hostname P1
!
no ip domain lookup
!
mpls label protocol ldp
!
interface Loopback0
 ip address 10.0.0.4 255.255.255.255
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.1.4.4 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 10.2.4.4 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet3
 ip address 10.3.4.4 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 10.0.0.4
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
 no passive-interface GigabitEthernet3
 mpls ldp sync
 mpls ldp autoconfig area 0
!
mpls ldp router-id Loopback0

HOST1

hostname HOST1
!
interface GigabitEthernet0/0
 ip address 192.168.1.2 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 192.168.1.1

HOST2

hostname HOST2
!
interface GigabitEthernet0/0
 ip address 192.168.2.2 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 192.168.2.1

HOST3

hostname HOST1
!
interface GigabitEthernet0/0
 ip address 192.168.3.2 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 192.168.3.1

Check connectivity

HOST1#ping 192.168.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 ms
HOST1#ping 192.168.3.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 ms
HOST1#

HOST2#ping 192.168.3.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/2/2 ms
HOST2#

MVPN Configuration

PE1


vrf definition A
 
 address-family ipv4
  mdt default 232.0.0.1
  mdt data 232.0.1.0 0.0.0.255 threshold 100
  mdt data threshold 100
  
 exit-address-family

!
ip multicast-routing distributed
ip multicast-routing vrf A distributed
!
interface Loopback0
 ip pim sparse-mode
 !
interface GigabitEthernet1
 ip pim sparse-mode
 !
interface GigabitEthernet2
 ip pim sparse-mode
!
router bgp 1
 !
 address-family ipv4 mdt
  neighbor 10.0.0.2 activate
  neighbor 10.0.0.2 send-community extended
  neighbor 10.0.0.3 activate
  neighbor 10.0.0.3 send-community extended
 exit-address-family
 
ip pim ssm default

PE2


vrf definition A
 
 address-family ipv4
  mdt default 232.0.0.1
  mdt data 232.0.1.0 0.0.0.255 threshold 100
  mdt data threshold 100
  
 exit-address-family

!
ip multicast-routing distributed
ip multicast-routing vrf A distributed
!
interface Loopback0
 ip pim sparse-mode
 !
interface GigabitEthernet1
 ip pim sparse-mode
 !
interface GigabitEthernet2
 ip pim sparse-mode
!
router bgp 1
 !
 address-family ipv4 mdt
  neighbor 10.0.0.1 activate
  neighbor 10.0.0.1 send-community extended
  neighbor 10.0.0.3 activate
  neighbor 10.0.0.3 send-community extended
 exit-address-family
 
ip pim ssm default

PE3

P1

ip multicast-routing distributed
!
interface Loopback0
 ip pim sparse-mode
 !
interface GigabitEthernet1
 ip pim sparse-mode
 !
interface GigabitEthernet2
 ip pim sparse-mode
!
interface GigabitEthernet3
 ip pim sparse-mode

ip pim ssm default

HOST1

interface GigabitEthernet0/0
 ip igmp join-group 225.1.2.3

HOST2

interface GigabitEthernet0/0
 ip igmp join-group 225.1.2.3

Multicast Verification

HOST3

HOST3#ping 225.1.2.3 repeat 5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 225.1.2.3, timeout is 2 seconds:

Reply to request 0 from 192.168.1.2, 77 ms
Reply to request 0 from 192.168.2.2, 77 ms
Reply to request 1 from 192.168.1.2, 2 ms
Reply to request 1 from 192.168.2.2, 2 ms
Reply to request 2 from 192.168.1.2, 3 ms
Reply to request 2 from 192.168.2.2, 3 ms
Reply to request 3 from 192.168.1.2, 3 ms
Reply to request 3 from 192.168.2.2, 3 ms
Reply to request 4 from 192.168.2.2, 2 ms
Reply to request 4 from 192.168.1.2, 3 ms
HOST3#

Verification

PE1

PE1#show ip pim neighbor
PIM Neighbor Table
Mode: B - Bidir Capable, DR - Designated Router, N - Default DR Priority,
      P - Proxy Capable, S - State Refresh Capable, G - GenID Capable,
      L - DR Load-balancing Capable
Neighbor          Interface                Uptime/Expires    Ver   DR
Address                                                            Prio/Mode
10.1.4.4          GigabitEthernet1         00:59:06/00:01:35 v2    1 / DR S P G
PE1#
PE1#
PE1#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(10.0.0.3, 232.0.0.1), 00:54:30/stopped, flags: sTIZ
  Incoming interface: GigabitEthernet1, RPF nbr 10.1.4.4
  Outgoing interface list:
    MVRF A, Forward/Sparse, 00:54:30/00:02:29

(10.0.0.1, 232.0.0.1), 00:54:31/00:03:10, flags: sT
  Incoming interface: Loopback0, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet1, Forward/Sparse, 00:54:31/00:03:10

(10.0.0.2, 232.0.0.1), 00:54:31/stopped, flags: sTIZ
  Incoming interface: GigabitEthernet1, RPF nbr 10.1.4.4
  Outgoing interface list:
    MVRF A, Forward/Sparse, 00:54:31/00:02:28

(*, 224.0.1.40), 01:01:14/00:02:53, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 01:01:12/00:02:53

PE1#
PE1#show ip pim vrf A neighbor
PIM Neighbor Table
Mode: B - Bidir Capable, DR - Designated Router, N - Default DR Priority,
      P - Proxy Capable, S - State Refresh Capable, G - GenID Capable,
      L - DR Load-balancing Capable
Neighbor          Interface                Uptime/Expires    Ver   DR
Address                                                            Prio/Mode
10.0.0.2          Tunnel0                  00:55:05/00:01:15 v2    1 / S P G
10.0.0.3          Tunnel0                  00:55:05/00:01:44 v2    1 / DR S P G
PE1#
PE1#
PE1#
PE1#show tunnel endpoints Tunnel0
 Tunnel0 running in multi-GRE/IP mode

 Endpoint transport 232.0.0.1 Refcount 3 Base 0x7FBCF329A400 Create Time 00:58:07
   overlay 232.0.0.1 Refcount 2 Parent 0x7FBCF329A400 Create Time 00:58:07
PE1#
PE1#
PE1#show ip mroute vrf A
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 225.1.2.3), 01:02:08/00:02:55, RP 192.168.3.1, flags: SJC
  Incoming interface: Tunnel0, RPF nbr 10.0.0.3
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 01:02:08/00:02:55

(*, 224.0.1.40), 01:02:10/00:02:52, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 01:02:08/00:02:52

PE1#
PE1#show ip mroute vrf A
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 225.1.2.3), 01:03:23/stopped, RP 192.168.3.1, flags: SJC
  Incoming interface: Tunnel0, RPF nbr 10.0.0.3
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 01:03:23/00:02:42

(192.168.3.2, 225.1.2.3), 00:00:08/00:02:51, flags: JT
  Incoming interface: Tunnel0, RPF nbr 10.0.0.3
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 00:00:08/00:02:51

(*, 224.0.1.40), 01:03:25/00:02:41, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 01:03:23/00:02:41

PE1#

PIM Bi-Dir: Cisco IOS

Summary

  1. PIM-BiDir creates only a shared tree
  2. Efficient use of resources when there are many sources and destinations (When sources become destinations and vice versa since only (*, G) entries are created.
  3. Designated forwarder of each segment which is elected based on unicast routing metric is used to forward traffic up and down the shared tree to avoid multicast loops since PIM-BiDir violates RPF rules
  4. RP does not have to be a router. It only needs to be a routable address which is known as a phantom RP.
  5. Phantom RP is usually configured by having a loopback interface with the same address but with different subnet masks on two different routers and advertise them to IGP.
  6. Since in PIM-BiDir traffic is not sent to the RP address but traffic is passing through the RP this will result in router with more specific subnet mask becoming the RP.
  7. If the active RP fails the router with the less specific subnet mask becomes the RP. The convergence time is equal to IGP convergence time.
  8. In the diagram above R4 is the primary RP and R5 is configured as the secondary RP.
  9. All three hosts are sources and destinations of the group 225.1.1.1

Device Configurations

R1

hostname R1
!
ip multicast-routing distributed
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.1.4.1 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 192.168.1.254 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet3
 ip address 10.1.5.1 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!

router ospf 1
 router-id 1.1.1.1
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet3
!
ip pim bidir-enable

R2

hostname R2
!
ip multicast-routing distributed
!
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.2.4.2 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 192.168.2.254 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet3
 ip address 10.2.6.2 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 2.2.2.2
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet3
!
ip pim bidir-enable

R3

hostname R3
!
ip multicast-routing distributed
!
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.3.4.3 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 192.168.3.254 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet3
 ip address 10.3.5.3 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet4
 ip address 10.3.6.3 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 3.3.3.3
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet3
 no passive-interface GigabitEthernet4
!
ip pim bidir-enable

R4

hostname R4
!
ip multicast-routing distributed
!
interface Loopback0
 ip address 4.4.4.4 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface Loopback1
 ip address 172.16.0.1 255.255.255.252
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.1.4.4 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 10.2.4.4 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet3
 ip address 10.3.4.4 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 4.4.4.4
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
 no passive-interface GigabitEthernet3
!
ip pim bidir-enable
ip pim bsr-candidate Loopback1 0
ip pim rp-candidate Loopback1 bidir

R5

hostname R5
!
interface Loopback0
 ip address 5.5.5.5 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface Loopback1
 ip address 172.16.0.1 255.255.255.248
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.1.5.5 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 10.3.5.5 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 5.5.5.5
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
!
ip pim bidir-enable
ip pim bsr-candidate Loopback1 0
ip pim rp-candidate Loopback1 bidir

R6

hostname R6
!
interface Loopback0
 ip address 6.6.6.6 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface GigabitEthernet1
 ip address 10.2.6.6 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface GigabitEthernet2
 ip address 10.3.6.6 255.255.255.0
 ip pim sparse-mode
 ip ospf network point-to-point
 ip ospf 1 area 0
!
!
router ospf 1
 router-id 6.6.6.6
 passive-interface default
 no passive-interface GigabitEthernet1
 no passive-interface GigabitEthernet2
!
ip forward-protocol nd
ip pim bidir-enable

HOST1

interface GigabitEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 ip igmp join-group 225.1.1.1

ip route 0.0.0.0 0.0.0.0 192.168.1.254

HOST2

interface GigabitEthernet0/0
 ip address 192.168.2.1 255.255.255.0
 ip igmp join-group 225.1.1.1

ip route 0.0.0.0 0.0.0.0 192.168.2.254

HOST3

interface GigabitEthernet0/0
 ip address 192.168.3.1 255.255.255.0
 ip igmp join-group 225.1.1.1

ip route 0.0.0.0 0.0.0.0 192.168.3.254

Verification

HOST1

HOST1#show ip igmp groups
IGMP Connected Group Membership
Group Address    Interface                Uptime    Expires   Last Reporter   Group Accounted
225.1.1.1        GigabitEthernet0/0       01:50:04  never     192.168.1.1
HOST1#
HOST1#
HOST1#
HOST1#ping 225.1.1.1 rep
HOST1#ping 225.1.1.1 repeat 5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 225.1.1.1, timeout is 2 seconds:

Reply to request 0 from 192.168.1.1, 1 ms
Reply to request 0 from 192.168.3.1, 3 ms
Reply to request 0 from 192.168.2.1, 3 ms
Reply to request 1 from 192.168.1.1, 1 ms
Reply to request 1 from 192.168.3.1, 2 ms
Reply to request 1 from 192.168.2.1, 2 ms
Reply to request 2 from 192.168.1.1, 1 ms
Reply to request 2 from 192.168.3.1, 3 ms
Reply to request 2 from 192.168.2.1, 3 ms
Reply to request 3 from 192.168.1.1, 1 ms
Reply to request 3 from 192.168.2.1, 2 ms
Reply to request 3 from 192.168.3.1, 2 ms
Reply to request 4 from 192.168.1.1, 1 ms
Reply to request 4 from 192.168.2.1, 2 ms
Reply to request 4 from 192.168.3.1, 2 ms
HOST1#

HOST2

HOST2#ping 225.1.1.1 repeat 5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 225.1.1.1, timeout is 2 seconds:

Reply to request 0 from 192.168.2.1, 1 ms
Reply to request 0 from 192.168.3.1, 2 ms
Reply to request 0 from 192.168.1.1, 2 ms
Reply to request 1 from 192.168.2.1, 1 ms
Reply to request 1 from 192.168.3.1, 3 ms
Reply to request 1 from 192.168.1.1, 3 ms
Reply to request 2 from 192.168.2.1, 1 ms
Reply to request 2 from 192.168.3.1, 2 ms
Reply to request 2 from 192.168.1.1, 2 ms
Reply to request 3 from 192.168.2.1, 1 ms
Reply to request 3 from 192.168.3.1, 2 ms
Reply to request 3 from 192.168.1.1, 2 ms
Reply to request 4 from 192.168.2.1, 1 ms
Reply to request 4 from 192.168.3.1, 2 ms
Reply to request 4 from 192.168.1.1, 2 ms
HOST2#

HOST3

HOST3#show ip igmp groups
IGMP Connected Group Membership
Group Address    Interface                Uptime    Expires   Last Reporter   Group Accounted
225.1.1.1        GigabitEthernet0/0       01:57:03  never     192.168.3.1
HOST3#
HOST3#
HOST3#

HOST3#ping 225.1.1.1 repeat 5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 225.1.1.1, timeout is 2 seconds:

Reply to request 0 from 192.168.3.1, 1 ms
Reply to request 0 from 192.168.1.1, 2 ms
Reply to request 0 from 192.168.2.1, 2 ms
Reply to request 1 from 192.168.3.1, 1 ms
Reply to request 1 from 192.168.2.1, 3 ms
Reply to request 1 from 192.168.1.1, 2 ms
Reply to request 2 from 192.168.3.1, 1 ms
Reply to request 2 from 192.168.1.1, 2 ms
Reply to request 2 from 192.168.2.1, 2 ms
Reply to request 3 from 192.168.3.1, 1 ms
Reply to request 3 from 192.168.2.1, 2 ms
Reply to request 3 from 192.168.1.1, 2 ms
Reply to request 4 from 192.168.3.1, 1 ms
Reply to request 4 from 192.168.1.1, 2 ms
Reply to request 4 from 192.168.2.1, 2 ms
HOST3#

R1

R1#show ip pim rp
Group: 225.1.1.1, RP: 172.16.0.1, uptime 03:01:13, expires 00:01:59

R1#show ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      2.0.0.0/32 is subnetted, 1 subnets
O        2.2.2.2 [110/3] via 10.1.4.4, 02:25:04, GigabitEthernet1
      3.0.0.0/32 is subnetted, 1 subnets
O        3.3.3.3 [110/3] via 10.1.5.5, 02:25:09, GigabitEthernet3
                 [110/3] via 10.1.4.4, 02:25:09, GigabitEthernet1
      4.0.0.0/32 is subnetted, 1 subnets
O        4.4.4.4 [110/2] via 10.1.4.4, 02:25:12, GigabitEthernet1
      5.0.0.0/32 is subnetted, 1 subnets
O        5.5.5.5 [110/2] via 10.1.5.5, 02:25:11, GigabitEthernet3
      6.0.0.0/32 is subnetted, 1 subnets
O        6.6.6.6 [110/4] via 10.1.5.5, 02:25:09, GigabitEthernet3
                 [110/4] via 10.1.4.4, 02:25:09, GigabitEthernet1
      10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
O        10.2.4.0/24 [110/2] via 10.1.4.4, 02:25:12, GigabitEthernet1
O        10.2.6.0/24 [110/3] via 10.1.4.4, 02:25:04, GigabitEthernet1
O        10.3.4.0/24 [110/2] via 10.1.4.4, 02:25:12, GigabitEthernet1
O        10.3.5.0/24 [110/2] via 10.1.5.5, 02:25:11, GigabitEthernet3
O        10.3.6.0/24 [110/3] via 10.1.5.5, 02:25:09, GigabitEthernet3
                     [110/3] via 10.1.4.4, 02:25:09, GigabitEthernet1
      172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
O        172.16.0.0/29 [110/2] via 10.1.5.5, 02:25:11, GigabitEthernet3
O        172.16.0.0/30 [110/2] via 10.1.4.4, 02:25:12, GigabitEthernet1
O     192.168.2.0/24 [110/3] via 10.1.4.4, 02:25:04, GigabitEthernet1
O     192.168.3.0/24 [110/3] via 10.1.5.5, 02:25:09, GigabitEthernet3
                     [110/3] via 10.1.4.4, 02:25:09, GigabitEthernet1
R1#
R1#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*,224.0.0.0/4), 02:24:28/-, RP 172.16.0.1, flags: B
  Bidir-Upstream: GigabitEthernet1, RPF nbr: 10.1.4.4
  Incoming interface list:
    GigabitEthernet2, Accepting/Sparse
    Loopback0, Accepting/Sparse
    GigabitEthernet1, Accepting/Sparse

(*, 225.1.1.1), 02:24:28/00:02:39, RP 172.16.0.1, flags: BC
  Bidir-Upstream: GigabitEthernet1, RPF nbr 10.1.4.4
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 02:24:28/00:02:39
    GigabitEthernet1, Bidir-Upstream/Sparse, 02:24:28/stopped

(*, 224.0.1.40), 02:25:32/00:02:28, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 02:25:31/00:02:28

R1#
R1#

R2

R2#show ip pim rp
Group: 225.1.1.1, RP: 172.16.0.1, uptime 03:02:07, expires 00:02:05
R2#
R2#show ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      1.0.0.0/32 is subnetted, 1 subnets
O        1.1.1.1 [110/3] via 10.2.4.4, 02:26:14, GigabitEthernet1
      3.0.0.0/32 is subnetted, 1 subnets
O        3.3.3.3 [110/3] via 10.2.6.6, 02:26:15, GigabitEthernet3
                 [110/3] via 10.2.4.4, 02:26:14, GigabitEthernet1
      4.0.0.0/32 is subnetted, 1 subnets
O        4.4.4.4 [110/2] via 10.2.4.4, 02:26:14, GigabitEthernet1
      5.0.0.0/32 is subnetted, 1 subnets
O        5.5.5.5 [110/4] via 10.2.6.6, 02:26:15, GigabitEthernet3
                 [110/4] via 10.2.4.4, 02:26:14, GigabitEthernet1
      6.0.0.0/32 is subnetted, 1 subnets
O        6.6.6.6 [110/2] via 10.2.6.6, 02:26:15, GigabitEthernet3
      10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
O        10.1.4.0/24 [110/2] via 10.2.4.4, 02:26:14, GigabitEthernet1
O        10.1.5.0/24 [110/3] via 10.2.4.4, 02:26:14, GigabitEthernet1
O        10.3.4.0/24 [110/2] via 10.2.4.4, 02:26:14, GigabitEthernet1
O        10.3.5.0/24 [110/3] via 10.2.6.6, 02:26:15, GigabitEthernet3
                     [110/3] via 10.2.4.4, 02:26:14, GigabitEthernet1
O        10.3.6.0/24 [110/2] via 10.2.6.6, 02:26:15, GigabitEthernet3
      172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
O        172.16.0.0/29 [110/4] via 10.2.6.6, 02:26:15, GigabitEthernet3
                       [110/4] via 10.2.4.4, 02:26:14, GigabitEthernet1
O        172.16.0.0/30 [110/2] via 10.2.4.4, 02:26:14, GigabitEthernet1
O     192.168.1.0/24 [110/3] via 10.2.4.4, 02:26:14, GigabitEthernet1
O     192.168.3.0/24 [110/3] via 10.2.6.6, 02:26:15, GigabitEthernet3
                     [110/3] via 10.2.4.4, 02:26:14, GigabitEthernet1
R2#
R2#
R2#
R2#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*,224.0.0.0/4), 02:25:31/-, RP 172.16.0.1, flags: B
  Bidir-Upstream: GigabitEthernet1, RPF nbr: 10.2.4.4
  Incoming interface list:
    GigabitEthernet2, Accepting/Sparse
    GigabitEthernet3, Accepting/Sparse
    Loopback0, Accepting/Sparse
    GigabitEthernet1, Accepting/Sparse

(*, 225.1.1.1), 02:25:31/00:02:31, RP 172.16.0.1, flags: BC
  Bidir-Upstream: GigabitEthernet1, RPF nbr 10.2.4.4
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 02:25:31/00:02:31
    GigabitEthernet1, Bidir-Upstream/Sparse, 02:25:31/stopped

(*, 224.0.1.40), 02:26:32/00:02:32, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 02:26:31/00:02:32

R2#

R3

R3#show ip pim rp
Group: 225.1.1.1, RP: 172.16.0.1, uptime 03:02:56, expires 00:02:19
R3#

R3#show ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      1.0.0.0/32 is subnetted, 1 subnets
O        1.1.1.1 [110/3] via 10.3.5.5, 02:27:07, GigabitEthernet3
                 [110/3] via 10.3.4.4, 02:27:07, GigabitEthernet1
      2.0.0.0/32 is subnetted, 1 subnets
O        2.2.2.2 [110/3] via 10.3.6.6, 02:27:04, GigabitEthernet4
                 [110/3] via 10.3.4.4, 02:27:01, GigabitEthernet1
      4.0.0.0/32 is subnetted, 1 subnets
O        4.4.4.4 [110/2] via 10.3.4.4, 02:27:07, GigabitEthernet1
      5.0.0.0/32 is subnetted, 1 subnets
O        5.5.5.5 [110/2] via 10.3.5.5, 02:27:07, GigabitEthernet3
      6.0.0.0/32 is subnetted, 1 subnets
O        6.6.6.6 [110/2] via 10.3.6.6, 02:27:06, GigabitEthernet4
      10.0.0.0/8 is variably subnetted, 10 subnets, 2 masks
O        10.1.4.0/24 [110/2] via 10.3.4.4, 02:27:07, GigabitEthernet1
O        10.1.5.0/24 [110/2] via 10.3.5.5, 02:27:07, GigabitEthernet3
O        10.2.4.0/24 [110/2] via 10.3.4.4, 02:27:07, GigabitEthernet1
O        10.2.6.0/24 [110/2] via 10.3.6.6, 02:27:06, GigabitEthernet4
      172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
O        172.16.0.0/29 [110/2] via 10.3.5.5, 02:27:07, GigabitEthernet3
O        172.16.0.0/30 [110/2] via 10.3.4.4, 02:27:07, GigabitEthernet1
O     192.168.1.0/24 [110/3] via 10.3.5.5, 02:27:07, GigabitEthernet3
                     [110/3] via 10.3.4.4, 02:27:07, GigabitEthernet1
O     192.168.2.0/24 [110/3] via 10.3.6.6, 02:27:04, GigabitEthernet4
                     [110/3] via 10.3.4.4, 02:27:01, GigabitEthernet1
R3#
R3#
R3#
R3#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*,224.0.0.0/4), 02:26:22/-, RP 172.16.0.1, flags: B
  Bidir-Upstream: GigabitEthernet1, RPF nbr: 10.3.4.4
  Incoming interface list:
    GigabitEthernet4, Accepting/Sparse
    GigabitEthernet2, Accepting/Sparse
    Loopback0, Accepting/Sparse
    GigabitEthernet1, Accepting/Sparse

(*, 225.1.1.1), 02:26:21/00:02:43, RP 172.16.0.1, flags: BC
  Bidir-Upstream: GigabitEthernet1, RPF nbr 10.3.4.4
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 02:26:21/00:02:43
    GigabitEthernet1, Bidir-Upstream/Sparse, 02:26:21/stopped

(*, 224.0.1.40), 02:27:24/00:02:40, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 02:27:23/00:02:40

R3#

R4

R4#show ip pim rp
Group: 225.1.1.1, RP: 172.16.0.1
R4#
R4#
R4#
R4#show ip route connected
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      4.0.0.0/32 is subnetted, 1 subnets
C        4.4.4.4 is directly connected, Loopback0
      10.0.0.0/8 is variably subnetted, 10 subnets, 2 masks
C        10.1.4.0/24 is directly connected, GigabitEthernet1
L        10.1.4.4/32 is directly connected, GigabitEthernet1
C        10.2.4.0/24 is directly connected, GigabitEthernet2
L        10.2.4.4/32 is directly connected, GigabitEthernet2
C        10.3.4.0/24 is directly connected, GigabitEthernet3
L        10.3.4.4/32 is directly connected, GigabitEthernet3
      172.16.0.0/16 is variably subnetted, 3 subnets, 3 masks
C        172.16.0.0/30 is directly connected, Loopback1
L        172.16.0.1/32 is directly connected, Loopback1
R4#
R4#show ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      1.0.0.0/32 is subnetted, 1 subnets
O        1.1.1.1 [110/2] via 10.1.4.1, 02:48:03, GigabitEthernet1
      2.0.0.0/32 is subnetted, 1 subnets
O        2.2.2.2 [110/2] via 10.2.4.2, 02:47:59, GigabitEthernet2
      3.0.0.0/32 is subnetted, 1 subnets
O        3.3.3.3 [110/2] via 10.3.4.3, 02:48:01, GigabitEthernet3
      5.0.0.0/32 is subnetted, 1 subnets
O        5.5.5.5 [110/3] via 10.3.4.3, 02:47:59, GigabitEthernet3
                 [110/3] via 10.1.4.1, 02:48:01, GigabitEthernet1
      6.0.0.0/32 is subnetted, 1 subnets
O        6.6.6.6 [110/3] via 10.3.4.3, 02:48:01, GigabitEthernet3
                 [110/3] via 10.2.4.2, 02:47:59, GigabitEthernet2
      10.0.0.0/8 is variably subnetted, 10 subnets, 2 masks
O        10.1.5.0/24 [110/2] via 10.1.4.1, 02:48:03, GigabitEthernet1
O        10.2.6.0/24 [110/2] via 10.2.4.2, 02:47:59, GigabitEthernet2
O        10.3.5.0/24 [110/2] via 10.3.4.3, 02:48:01, GigabitEthernet3
O        10.3.6.0/24 [110/2] via 10.3.4.3, 02:48:01, GigabitEthernet3
      172.16.0.0/16 is variably subnetted, 3 subnets, 3 masks
O        172.16.0.0/29 [110/3] via 10.3.4.3, 02:47:59, GigabitEthernet3
                       [110/3] via 10.1.4.1, 02:48:01, GigabitEthernet1
O     192.168.1.0/24 [110/2] via 10.1.4.1, 02:48:03, GigabitEthernet1
O     192.168.2.0/24 [110/2] via 10.2.4.2, 02:47:59, GigabitEthernet2
O     192.168.3.0/24 [110/2] via 10.3.4.3, 02:48:01, GigabitEthernet3
R4#
R4#
R4#
R4#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*,224.0.0.0/4), 02:48:19/-, RP 172.16.0.1, flags: B
  Bidir-Upstream: Loopback1, RPF nbr: 172.16.0.1
  Incoming interface list:
    GigabitEthernet3, Accepting/Sparse
    GigabitEthernet2, Accepting/Sparse
    GigabitEthernet1, Accepting/Sparse
    Loopback0, Accepting/Sparse
    Loopback1, Accepting/Sparse

(*, 225.1.1.1), 02:47:18/00:03:23, RP 172.16.0.1, flags: B
  Bidir-Upstream: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 02:47:18/00:03:23
    GigabitEthernet3, Forward/Sparse, 02:47:18/00:02:33
    GigabitEthernet1, Forward/Sparse, 02:47:18/00:02:37

(*, 224.0.1.40), 02:48:19/00:02:42, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 02:48:18/00:02:42

R4#

R5

R5#show ip pim rp
R5#
R5#
R5#
R5#show ip pim rp map
R5#show ip pim rp mapping
PIM Group-to-RP Mappings
This system is a candidate RP (v2)
This system is the Bootstrap Router (v2)

Group(s) 224.0.0.0/4
  RP 172.16.0.1 (?), v2, bidir
    Info source: 172.16.0.1 (?), via bootstrap, priority 0, holdtime 150
         Uptime: 03:08:21, expires: 00:02:06
R5#
R5#show ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      1.0.0.0/32 is subnetted, 1 subnets
O        1.1.1.1 [110/2] via 10.1.5.1, 02:48:44, GigabitEthernet1
      2.0.0.0/32 is subnetted, 1 subnets
O        2.2.2.2 [110/4] via 10.3.5.3, 02:48:40, GigabitEthernet2
                 [110/4] via 10.1.5.1, 02:48:36, GigabitEthernet1
      3.0.0.0/32 is subnetted, 1 subnets
O        3.3.3.3 [110/2] via 10.3.5.3, 02:48:42, GigabitEthernet2
      4.0.0.0/32 is subnetted, 1 subnets
O        4.4.4.4 [110/3] via 10.3.5.3, 02:48:42, GigabitEthernet2
                 [110/3] via 10.1.5.1, 02:48:44, GigabitEthernet1
      6.0.0.0/32 is subnetted, 1 subnets
O        6.6.6.6 [110/3] via 10.3.5.3, 02:48:41, GigabitEthernet2
      10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
O        10.1.4.0/24 [110/2] via 10.1.5.1, 02:48:44, GigabitEthernet1
O        10.2.4.0/24 [110/3] via 10.3.5.3, 02:48:42, GigabitEthernet2
                     [110/3] via 10.1.5.1, 02:48:44, GigabitEthernet1
O        10.2.6.0/24 [110/3] via 10.3.5.3, 02:48:41, GigabitEthernet2
O        10.3.4.0/24 [110/2] via 10.3.5.3, 02:48:42, GigabitEthernet2
O        10.3.6.0/24 [110/2] via 10.3.5.3, 02:48:42, GigabitEthernet2
      172.16.0.0/16 is variably subnetted, 3 subnets, 3 masks
O        172.16.0.0/30 [110/3] via 10.3.5.3, 02:48:42, GigabitEthernet2
                       [110/3] via 10.1.5.1, 02:48:44, GigabitEthernet1
O     192.168.1.0/24 [110/2] via 10.1.5.1, 02:48:44, GigabitEthernet1
O     192.168.2.0/24 [110/4] via 10.3.5.3, 02:48:40, GigabitEthernet2
                     [110/4] via 10.1.5.1, 02:48:36, GigabitEthernet1
O     192.168.3.0/24 [110/2] via 10.3.5.3, 02:48:42, GigabitEthernet2
R5#
R5#
R5#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*,224.0.0.0/4), 02:48:58/-, RP 172.16.0.1, flags: B
  Bidir-Upstream: Loopback1, RPF nbr: 172.16.0.1
  Incoming interface list:
    GigabitEthernet2, Accepting/Sparse
    GigabitEthernet1, Accepting/Sparse
    Loopback0, Accepting/Sparse
    Loopback1, Accepting/Sparse

(*, 224.0.1.40), 02:48:58/00:02:02, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 02:48:57/00:02:02

R5#

R6

R6#show ip pim rp
R6#
R6#
R6#
R6#show ip pim rp map
R6#show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s) 224.0.0.0/4
  RP 172.16.0.1 (?), v2, bidir
    Info source: 172.16.0.1 (?), via bootstrap, priority 0, holdtime 150
         Uptime: 03:08:18, expires: 00:01:58
R6#
R6#
R6#
R6#
R6#sh ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      1.0.0.0/32 is subnetted, 1 subnets
O        1.1.1.1 [110/4] via 10.3.6.3, 02:49:22, GigabitEthernet2
                 [110/4] via 10.2.6.2, 02:49:21, GigabitEthernet1
      2.0.0.0/32 is subnetted, 1 subnets
O        2.2.2.2 [110/2] via 10.2.6.2, 02:49:21, GigabitEthernet1
      3.0.0.0/32 is subnetted, 1 subnets
O        3.3.3.3 [110/2] via 10.3.6.3, 02:49:22, GigabitEthernet2
      4.0.0.0/32 is subnetted, 1 subnets
O        4.4.4.4 [110/3] via 10.3.6.3, 02:49:22, GigabitEthernet2
                 [110/3] via 10.2.6.2, 02:49:21, GigabitEthernet1
      5.0.0.0/32 is subnetted, 1 subnets
O        5.5.5.5 [110/3] via 10.3.6.3, 02:49:22, GigabitEthernet2
      10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
O        10.1.4.0/24 [110/3] via 10.3.6.3, 02:49:22, GigabitEthernet2
                     [110/3] via 10.2.6.2, 02:49:21, GigabitEthernet1
O        10.1.5.0/24 [110/3] via 10.3.6.3, 02:49:22, GigabitEthernet2
O        10.2.4.0/24 [110/2] via 10.2.6.2, 02:49:21, GigabitEthernet1
O        10.3.4.0/24 [110/2] via 10.3.6.3, 02:49:22, GigabitEthernet2
O        10.3.5.0/24 [110/2] via 10.3.6.3, 02:49:22, GigabitEthernet2
      172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
O        172.16.0.0/29 [110/3] via 10.3.6.3, 02:49:22, GigabitEthernet2
O        172.16.0.0/30 [110/3] via 10.3.6.3, 02:49:22, GigabitEthernet2
                       [110/3] via 10.2.6.2, 02:49:21, GigabitEthernet1
O     192.168.1.0/24 [110/4] via 10.3.6.3, 02:49:22, GigabitEthernet2
                     [110/4] via 10.2.6.2, 02:49:21, GigabitEthernet1
O     192.168.2.0/24 [110/2] via 10.2.6.2, 02:49:21, GigabitEthernet1
O     192.168.3.0/24 [110/2] via 10.3.6.3, 02:49:22, GigabitEthernet2
R6#
R6#
R6#
R6#
R6#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*,224.0.0.0/4), 02:48:38/-, RP 172.16.0.1, flags: B
  Bidir-Upstream: GigabitEthernet2, RPF nbr: 10.3.6.3
  Incoming interface list:
    Loopback0, Accepting/Sparse
    GigabitEthernet2, Accepting/Sparse

(*, 224.0.1.40), 02:49:40/00:02:22, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 02:49:39/00:02:22

R6#

RP Failure

R1

R1#show ip pim rp
Group: 225.1.1.1, RP: 172.16.0.1, uptime 02:52:37, expires 00:01:59
R1#
R1#
R1#
R1#show ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      2.0.0.0/32 is subnetted, 1 subnets
O        2.2.2.2 [110/5] via 10.1.5.5, 00:02:13, GigabitEthernet3
      3.0.0.0/32 is subnetted, 1 subnets
O        3.3.3.3 [110/3] via 10.1.5.5, 02:53:30, GigabitEthernet3
      5.0.0.0/32 is subnetted, 1 subnets
O        5.5.5.5 [110/2] via 10.1.5.5, 02:53:32, GigabitEthernet3
      6.0.0.0/32 is subnetted, 1 subnets
O        6.6.6.6 [110/4] via 10.1.5.5, 02:53:30, GigabitEthernet3
      10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
O        10.2.4.0/24 [110/5] via 10.1.5.5, 00:02:12, GigabitEthernet3
O        10.2.6.0/24 [110/4] via 10.1.5.5, 00:02:13, GigabitEthernet3
O        10.3.4.0/24 [110/3] via 10.1.5.5, 00:02:13, GigabitEthernet3
O        10.3.5.0/24 [110/2] via 10.1.5.5, 02:53:32, GigabitEthernet3
O        10.3.6.0/24 [110/3] via 10.1.5.5, 02:53:30, GigabitEthernet3
      172.16.0.0/29 is subnetted, 1 subnets
O        172.16.0.0 [110/2] via 10.1.5.5, 02:53:32, GigabitEthernet3
O     192.168.2.0/24 [110/5] via 10.1.5.5, 00:02:13, GigabitEthernet3
O     192.168.3.0/24 [110/3] via 10.1.5.5, 02:53:30, GigabitEthernet3
R1#
R1#
R1#
R1#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*,224.0.0.0/4), 00:02:16/-, RP 172.16.0.1, flags: B
  Bidir-Upstream: GigabitEthernet3, RPF nbr: 10.1.5.5
  Incoming interface list:
    GigabitEthernet3, Accepting/Sparse
    GigabitEthernet1, Accepting/Sparse
    GigabitEthernet2, Accepting/Sparse
    Loopback0, Accepting/Sparse

(*, 225.1.1.1), 02:52:49/00:02:11, RP 172.16.0.1, flags: BC
  Bidir-Upstream: GigabitEthernet3, RPF nbr 10.1.5.5
  Outgoing interface list:
    GigabitEthernet3, Bidir-Upstream/Sparse, 00:02:19/stopped
    GigabitEthernet2, Forward/Sparse, 02:52:49/00:02:11

(*, 224.0.1.40), 02:53:53/00:02:13, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 02:53:52/00:02:13

R1#

R2

R2#show ip pim rp
Group: 225.1.1.1, RP: 172.16.0.1, uptime 02:53:26, expires 00:02:12
R2#
R2#
R2#
R2#show ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      1.0.0.0/32 is subnetted, 1 subnets
O        1.1.1.1 [110/5] via 10.2.6.6, 00:03:02, GigabitEthernet3
      3.0.0.0/32 is subnetted, 1 subnets
O        3.3.3.3 [110/3] via 10.2.6.6, 02:54:19, GigabitEthernet3
      5.0.0.0/32 is subnetted, 1 subnets
O        5.5.5.5 [110/4] via 10.2.6.6, 02:54:19, GigabitEthernet3
      6.0.0.0/32 is subnetted, 1 subnets
O        6.6.6.6 [110/2] via 10.2.6.6, 02:54:19, GigabitEthernet3
      10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
O        10.1.4.0/24 [110/5] via 10.2.6.6, 00:02:58, GigabitEthernet3
O        10.1.5.0/24 [110/4] via 10.2.6.6, 00:03:02, GigabitEthernet3
O        10.3.4.0/24 [110/3] via 10.2.6.6, 00:02:58, GigabitEthernet3
O        10.3.5.0/24 [110/3] via 10.2.6.6, 02:54:19, GigabitEthernet3
O        10.3.6.0/24 [110/2] via 10.2.6.6, 02:54:19, GigabitEthernet3
      172.16.0.0/29 is subnetted, 1 subnets
O        172.16.0.0 [110/4] via 10.2.6.6, 02:54:19, GigabitEthernet3
O     192.168.1.0/24 [110/5] via 10.2.6.6, 00:03:02, GigabitEthernet3
O     192.168.3.0/24 [110/3] via 10.2.6.6, 02:54:19, GigabitEthernet3
R2#
R2#
R2#
R2#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*,224.0.0.0/4), 00:03:03/-, RP 172.16.0.1, flags: B
  Bidir-Upstream: GigabitEthernet3, RPF nbr: 10.2.6.6
  Incoming interface list:
    GigabitEthernet1, Accepting/Sparse
    GigabitEthernet3, Accepting/Sparse
    GigabitEthernet2, Accepting/Sparse
    Loopback0, Accepting/Sparse

(*, 225.1.1.1), 02:53:36/00:02:34, RP 172.16.0.1, flags: BC
  Bidir-Upstream: GigabitEthernet3, RPF nbr 10.2.6.6
  Outgoing interface list:
    GigabitEthernet3, Bidir-Upstream/Sparse, 00:03:03/stopped
    GigabitEthernet2, Forward/Sparse, 02:53:36/00:02:34

(*, 224.0.1.40), 02:54:37/00:02:26, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 02:54:36/00:02:26

R2#

R3

R3#show ip pim rp
Group: 225.1.1.1, RP: 172.16.0.1, uptime 02:54:14, expires 00:02:24
R3#
R3#
R3#
R3#show ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      1.0.0.0/32 is subnetted, 1 subnets
O        1.1.1.1 [110/3] via 10.3.5.5, 02:55:07, GigabitEthernet3
      2.0.0.0/32 is subnetted, 1 subnets
O        2.2.2.2 [110/3] via 10.3.6.6, 02:55:04, GigabitEthernet4
      5.0.0.0/32 is subnetted, 1 subnets
O        5.5.5.5 [110/2] via 10.3.5.5, 02:55:07, GigabitEthernet3
      6.0.0.0/32 is subnetted, 1 subnets
O        6.6.6.6 [110/2] via 10.3.6.6, 02:55:06, GigabitEthernet4
      10.0.0.0/8 is variably subnetted, 10 subnets, 2 masks
O        10.1.4.0/24 [110/3] via 10.3.5.5, 00:03:47, GigabitEthernet3
O        10.1.5.0/24 [110/2] via 10.3.5.5, 02:55:07, GigabitEthernet3
O        10.2.4.0/24 [110/3] via 10.3.6.6, 00:03:47, GigabitEthernet4
O        10.2.6.0/24 [110/2] via 10.3.6.6, 02:55:06, GigabitEthernet4
      172.16.0.0/29 is subnetted, 1 subnets
O        172.16.0.0 [110/2] via 10.3.5.5, 02:55:07, GigabitEthernet3
O     192.168.1.0/24 [110/3] via 10.3.5.5, 02:55:07, GigabitEthernet3
O     192.168.2.0/24 [110/3] via 10.3.6.6, 02:55:04, GigabitEthernet4
R3#
R3#
R3#
R3#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*,224.0.0.0/4), 00:03:50/-, RP 172.16.0.1, flags: B
  Bidir-Upstream: GigabitEthernet3, RPF nbr: 10.3.5.5
  Incoming interface list:
    GigabitEthernet4, Accepting/Sparse
    GigabitEthernet3, Accepting/Sparse
    GigabitEthernet1, Accepting/Sparse
    GigabitEthernet2, Accepting/Sparse
    Loopback0, Accepting/Sparse

(*, 225.1.1.1), 02:54:23/00:02:46, RP 172.16.0.1, flags: BC
  Bidir-Upstream: GigabitEthernet3, RPF nbr 10.3.5.5
  Outgoing interface list:
    GigabitEthernet4, Forward/Sparse, 00:03:50/00:02:33
    GigabitEthernet3, Bidir-Upstream/Sparse, 00:03:50/stopped
    GigabitEthernet2, Forward/Sparse, 02:54:23/00:02:46

(*, 224.0.1.40), 02:55:26/00:02:42, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 02:55:25/00:02:42

R3#

R5

R5#show ip pim rp
Group: 225.1.1.1, RP: 172.16.0.1
R5#
R5#
R5#show ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      1.0.0.0/32 is subnetted, 1 subnets
O        1.1.1.1 [110/2] via 10.1.5.1, 02:56:06, GigabitEthernet1
      2.0.0.0/32 is subnetted, 1 subnets
O        2.2.2.2 [110/4] via 10.3.5.3, 02:56:02, GigabitEthernet2
      3.0.0.0/32 is subnetted, 1 subnets
O        3.3.3.3 [110/2] via 10.3.5.3, 02:56:04, GigabitEthernet2
      6.0.0.0/32 is subnetted, 1 subnets
O        6.6.6.6 [110/3] via 10.3.5.3, 02:56:03, GigabitEthernet2
      10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
O        10.1.4.0/24 [110/2] via 10.1.5.1, 02:56:06, GigabitEthernet1
O        10.2.4.0/24 [110/4] via 10.3.5.3, 00:04:45, GigabitEthernet2
O        10.2.6.0/24 [110/3] via 10.3.5.3, 02:56:03, GigabitEthernet2
O        10.3.4.0/24 [110/2] via 10.3.5.3, 02:56:04, GigabitEthernet2
O        10.3.6.0/24 [110/2] via 10.3.5.3, 02:56:04, GigabitEthernet2
O     192.168.1.0/24 [110/2] via 10.1.5.1, 02:56:06, GigabitEthernet1
O     192.168.2.0/24 [110/4] via 10.3.5.3, 02:56:02, GigabitEthernet2
O     192.168.3.0/24 [110/2] via 10.3.5.3, 02:56:04, GigabitEthernet2
R5#
R5#show ip route connected
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      5.0.0.0/32 is subnetted, 1 subnets
C        5.5.5.5 is directly connected, Loopback0
      10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
C        10.1.5.0/24 is directly connected, GigabitEthernet1
L        10.1.5.5/32 is directly connected, GigabitEthernet1
C        10.3.5.0/24 is directly connected, GigabitEthernet2
L        10.3.5.5/32 is directly connected, GigabitEthernet2
      172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C        172.16.0.0/29 is directly connected, Loopback1
L        172.16.0.1/32 is directly connected, Loopback1
R5#
R5#
R5#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*,224.0.0.0/4), 02:56:33/-, RP 172.16.0.1, flags: B
  Bidir-Upstream: Loopback1, RPF nbr: 172.16.0.1
  Incoming interface list:
    GigabitEthernet2, Accepting/Sparse
    GigabitEthernet1, Accepting/Sparse
    Loopback0, Accepting/Sparse
    Loopback1, Accepting/Sparse

(*, 225.1.1.1), 00:05:02/00:03:15, RP 172.16.0.1, flags: B
  Bidir-Upstream: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet2, Forward/Sparse, 00:04:59/00:03:13
    GigabitEthernet1, Forward/Sparse, 00:05:02/00:03:15

(*, 224.0.1.40), 02:56:33/00:02:27, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 02:56:32/00:02:27

R5#

R6

R6#show ip pim rp
Group: 225.1.1.1, RP: 172.16.0.1, uptime 02:56:06, expires 00:01:32
R6#
R6#
R6#show ip route ospf
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, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       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
       H - NHRP, G - NHRP registered, g - NHRP registration summary
       o - ODR, P - periodic downloaded static route, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR
       & - replicated local route overrides by connected

Gateway of last resort is not set

      1.0.0.0/32 is subnetted, 1 subnets
O        1.1.1.1 [110/4] via 10.3.6.3, 02:56:59, GigabitEthernet2
      2.0.0.0/32 is subnetted, 1 subnets
O        2.2.2.2 [110/2] via 10.2.6.2, 02:56:58, GigabitEthernet1
      3.0.0.0/32 is subnetted, 1 subnets
O        3.3.3.3 [110/2] via 10.3.6.3, 02:56:59, GigabitEthernet2
      5.0.0.0/32 is subnetted, 1 subnets
O        5.5.5.5 [110/3] via 10.3.6.3, 02:56:59, GigabitEthernet2
      10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
O        10.1.4.0/24 [110/4] via 10.3.6.3, 00:05:38, GigabitEthernet2
O        10.1.5.0/24 [110/3] via 10.3.6.3, 02:56:59, GigabitEthernet2
O        10.2.4.0/24 [110/2] via 10.2.6.2, 02:56:58, GigabitEthernet1
O        10.3.4.0/24 [110/2] via 10.3.6.3, 02:56:59, GigabitEthernet2
O        10.3.5.0/24 [110/2] via 10.3.6.3, 02:56:59, GigabitEthernet2
      172.16.0.0/29 is subnetted, 1 subnets
O        172.16.0.0 [110/3] via 10.3.6.3, 02:56:59, GigabitEthernet2
O     192.168.1.0/24 [110/4] via 10.3.6.3, 02:56:59, GigabitEthernet2
O     192.168.2.0/24 [110/2] via 10.2.6.2, 02:56:58, GigabitEthernet1
O     192.168.3.0/24 [110/2] via 10.3.6.3, 02:56:59, GigabitEthernet2
R6#
R6#
R6#
R6#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group,
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
       Q - Received BGP S-A Route, q - Sent BGP S-A Route,
       V - RD & Vector, v - Vector, p - PIM Joins on route,
       x - VxLAN group, c - PFP-SA cache created entry,
       * - determined by Assert, # - iif-starg configured on rpf intf,
       e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*,224.0.0.0/4), 00:05:42/-, RP 172.16.0.1, flags: B
  Bidir-Upstream: GigabitEthernet2, RPF nbr: 10.3.6.3
  Incoming interface list:
    GigabitEthernet1, Accepting/Sparse
    GigabitEthernet2, Accepting/Sparse
    Loopback0, Accepting/Sparse

(*, 225.1.1.1), 00:05:43/00:03:19, RP 172.16.0.1, flags: B
  Bidir-Upstream: GigabitEthernet2, RPF nbr 10.3.6.3
  Outgoing interface list:
    GigabitEthernet1, Forward/Sparse, 00:05:41/00:03:19
    GigabitEthernet2, Bidir-Upstream/Sparse, 00:05:42/stopped

(*, 224.0.1.40), 02:57:17/00:02:45, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse, 02:57:16/00:02:45

R6#