This section describes how to configure IPv4
multicast in a non-default VRF instance using the topology shown in
the following illustration.
![Multicast VRF sample configuration](https://dl.dell.com/content/guides/public/Html/smartfabric-os-user-guide-10-5-1/images/GUID-205C430C-DB1D-4A68-9E50-1E427A05640C-low.png)
Perform the
following configuration on each of the nodes, R1, R2, R3, and R4.
Sample configuration on R1:
R1# configure terminal
R1(config)# ip vrf red
R1(conf-vrf)# end
R1# configure terminal
R1(config)# interface port-channel 11
R1(conf-if-po-11)# no switchport
R1(conf-if-po-11)# ip vrf forwarding red
R1(conf-if-po-11)# end
R1# configure terminal
R1(config)# interface ethernet 1/1/6
R1(conf-if-eth1/1/6)# no ip vrf forwarding
R1(conf-if-eth1/1/6)# no switchport
R1(conf-if-eth1/1/6)# channel-group 11
R1(conf-if-eth1/1/6)# end
R1# configure terminal
R1(config)# interface ethernet 1/1/7
R1(conf-if-eth1/1/7)# no switchport
R1(conf-if-eth1/1/7)# interface ethernet 1/1/7
R1(conf-if-eth1/1/7)# ip vrf forwarding red
R1(conf-if-eth1/1/7)# ip address 201.1.1.2/24
R1(conf-if-eth1/1/7)# ip pim sparse-mode
R1(conf-if-eth1/1/7)# no shutdown
R1(conf-if-eth1/1/7)# end
R1# configure terminal
R1(config)# interface ethernet 1/1/9
R1(conf-if-eth1/1/9)# no switchport
R1(conf-if-eth1/1/9)# interface ethernet 1/1/9
R1(conf-if-eth1/1/9)# ip vrf forwarding red
R1(conf-if-eth1/1/9)# ip address 191.1.1.1/24
R1(conf-if-eth1/1/9)# ip pim sparse-mode
R1(conf-if-eth1/1/9)# no shutdown
R1(conf-if-eth1/1/9)# end
R1# configure terminal
R1(config)# interface port-channel 11
R1(conf-if-po-11)# no switchport
R1(conf-if-po-11)# interface port-channel 11
R1(conf-if-po-11)# ip vrf forwarding red
R1(conf-if-po-11)# ip address 193.1.1.1/24
R1(conf-if-po-11)# ip pim sparse-mode
R1(conf-if-po-11)# no shutdown
R1(conf-if-po-11)# end
R1# configure terminal
R1(config)# interface Lo0
R1(conf-if-lo-0)# ip vrf forwarding red
R1(conf-if-lo-0)# ip address 2.2.2.2/32
R1(conf-if-lo-0)# ip pim sparse-mode
R1(conf-if-lo-0)# no shutdown
R1(conf-if-lo-0)# end
R1# configure terminal
R1(config)# router ospf 100 vrf red
R1(config-router-ospf-100)# interface ethernet 1/1/7
R1(conf-if-eth1/1/7)# ip ospf 100 area 0
R1(conf-if-eth1/1/7)# end
R1# configure terminal
R1(config)# router ospf 100 vrf red
R1(config-router-ospf-100)# interface ethernet 1/1/9
R1(conf-if-eth1/1/9)# ip ospf 100 area 0
R1(conf-if-eth1/1/9)# end
R1# configure terminal
R1(config)# router ospf 100 vrf red
R1(config-router-ospf-100)# interface port-channel 11
R1(conf-if-po-11)# ip ospf 100 area 0
R1(conf-if-po-11)# end
R1# configure terminal
R1(config)# ip multicast-routing vrf red
R1(config)# end
R1# configure terminal
R1(config)# ip pim vrf red rp-address 182.190.168.224 group-address 224.0.0.0/4
R1(config)# end
Sample configuration
on R2:
R2# configure terminal
R2(config)# ip vrf red
R2(conf-vrf)# end
R2# configure terminal
R2(config)# interface vlan 1001
R2(conf-if-vl-1001)# ip vrf forwarding red
R2(conf-if-vl-1001)# end
R2# configure terminal
R2(config)# interface ethernet 1/1/21:4
R2(conf-if-eth1/1/21:4)# switchport mode trunk
R2(conf-if-eth1/1/21:4)# switchport trunk allowed vlan 1001
R2(conf-if-eth1/1/21:4)# end
R2# configure terminal
R2(config)# interface ethernet 1/1/12:1
R2(conf-if-eth1/1/12:1)# no switchport
R2(conf-if-eth1/1/12:1)# ip vrf forwarding red
R2(conf-if-eth1/1/12:1)# ip address 191.1.1.2/24
R2(conf-if-eth1/1/12:1)# ip pim sparse-mode
R2(conf-if-eth1/1/12:1)# no shutdown
R2(conf-if-eth1/1/12:1)# end
R2# configure terminal
R2(config)# interface vlan 1001
R2(conf-if-vl-1001)# ip vrf forwarding red
R2(conf-if-vl-1001)# ip address 192.1.1.2/24
R2(conf-if-vl-1001)# ip pim sparse-mode
R2(conf-if-vl-1001)# no shutdown
R2(conf-if-vl-1001)# end
R2# configure terminal
R2(config)# interface Lo0
R2(conf-if-lo-0)# ip vrf forwarding red
R2(conf-if-lo-0)# ip address 1.1.1.1/32
R2(conf-if-lo-0)# ip pim sparse-mode
R2(conf-if-lo-0)# no shutdown
R2(conf-if-lo-0)# end
R2# configure terminal
R2(config)# router ospf 100 vrf red
R2(config-router-ospf-100)# interface ethernet 1/1/12:1
R2(conf-if-eth1/1/12:1)# ip ospf 100 area 0
R2(conf-if-eth1/1/12:1)# end
R2# configure terminal
R2(config)# router ospf 100 vrf red
R2(config-router-ospf-100)# interface vlan 1001
R2(conf-if-vl-1001)# ip ospf 100 area 0
R2(conf-if-vl-1001)# end
R2# configure terminal
R2(config)# ip multicast-routing vrf red
R2(config)# end
R2# configure terminal
R2(config)# ip pim vrf red rp-address 182.190.168.224 group-address 224.0.0.0/4
R2(config)# end
Sample configuration
on R3:
R3# configure terminal
R3(config)# ip vrf red
R3(conf-vrf)# end
R3# configure terminal
R3(config)# interface vlan 1001
R3(conf-if-vl-1001)# ip vrf forwarding red
R3(conf-if-vl-1001)# end
R3# configure terminal
R3(config)# interface ethernet 1/1/12
R3(conf-if-eth1/1/12)# no ip vrf forwarding
R3(conf-if-eth1/1/12)# switchport mode trunk
R3(conf-if-eth1/1/12)# switchport trunk allowed vlan 1001
R3(conf-if-eth1/1/12)# end
R3# configure terminal
R3(config)# interface port-channel 12
R3(conf-if-po-12)# no switchport
R3(conf-if-po-12)# ip vrf forwarding red
R3(conf-if-po-12)# end
R3# configure terminal
R3(config)# interface ethernet 1/1/5
R3(conf-if-eth1/1/5)# no ip vrf forwarding
R3(conf-if-eth1/1/5)# no switchport
R3(conf-if-eth1/1/5)# channel-group 12
R3(conf-if-eth1/1/5)# end
R3# configure terminal
R3(config)# interface vlan 1001
R3(conf-if-vl-1001)# ip vrf forwarding red
R3(conf-if-vl-1001)# ip address 192.1.1.1/24
R3(conf-if-vl-1001)# ip pim sparse-mode
R3(conf-if-vl-1001)# no shutdown
R3(conf-if-vl-1001)# end
R3# configure terminal
R3(config)# interface port-channel 12
R3(conf-if-po-12)# no switchport
R3(conf-if-po-12)# interface port-channel 12
R3(conf-if-po-12)# ip vrf forwarding red
R3(conf-if-po-12)# ip address 194.1.1.1/24
R3(conf-if-po-12)# ip pim sparse-mode
R3(conf-if-po-12)# no shutdown
R3(conf-if-po-12)# end
R3# configure terminal
R3(config)# interface Lo0
R3(conf-if-lo-0)# ip vrf forwarding red
R3(conf-if-lo-0)# ip address 3.3.3.3/32
R3(conf-if-lo-0)# ip pim sparse-mode
R3(conf-if-lo-0)# no shutdown
R3(conf-if-lo-0)# end
R3# configure terminal
R3(config)# router ospf 100 vrf red
R3(config-router-ospf-100)# interface vlan 1001
R3(conf-if-vl-1001)# ip ospf 100 area 0
R3(conf-if-vl-1001)# end
R3# configure terminal
R3(config)# router ospf 100 vrf red
R3(config-router-ospf-100)# interface port-channel 12
R3(conf-if-po-12)# ip ospf 100 area 0
R3(conf-if-po-12)# end
R3# configure terminal
R3(config)# router ospf 100 vrf red
R3(config-router-ospf-100)# interface Lo1
R3(conf-if-lo-1)# ip ospf 100 area 0
R3(conf-if-lo-1)# end
R3# configure terminal
R3(config)# ip multicast-routing vrf red
R3(config)# end
R3# configure terminal
R3(config)# interface Lo1
R3(conf-if-lo-1)# ip vrf forwarding red
R3(conf-if-lo-1)# ip address 182.190.168.224/32
R3(conf-if-lo-1)# ip pim sparse-mode
R3(conf-if-lo-1)# no shutdown
R3(conf-if-lo-1)# end
R3# configure terminal
R3(config)# ip pim vrf red rp-address 182.190.168.224 group-address 224.0.0.0/4
R3(config)# end
Sample configuration
on R4:
R4# configure terminal
R4(config)# ip vrf red
R4(conf-vrf)# end
R4# configure terminal
R4(config)# interface vlan 2001
R4(conf-if-vl-2001)# ip vrf forwarding red
R4(conf-if-vl-2001)# end
R4# configure terminal
R4(config)# interface ethernet 1/1/40:1
R4(conf-if-eth1/1/40:1)# no ip vrf forwarding
R4(conf-if-eth1/1/40:1)# switchport mode trunk
R4(conf-if-eth1/1/40:1)# switchport trunk allowed vlan 2001
R4(conf-if-eth1/1/40:1)# end
R4# configure terminal
R4(config)# interface port-channel 11
R4(conf-if-po-11)# no switchport
R4(conf-if-po-11)# ip vrf forwarding red
R4(conf-if-po-11)# end
R4# configure terminal
R4(config)# interface port-channel 12
R4(conf-if-po-12)# no switchport
R4(conf-if-po-12)# ip vrf forwarding red
R4(conf-if-po-12)# end
R4# configure terminal
R4(config)# interface ethernet 1/1/26:1
R4(conf-if-eth1/1/26:1)# no ip vrf forwarding
R4(conf-if-eth1/1/26:1)# no switchport
R4(conf-if-eth1/1/26:1)# channel-group 11
R4(conf-if-eth1/1/26:1)# end
R4# configure terminal
R4(config)# interface ethernet 1/1/5:1
R4(conf-if-eth1/1/5:1)# no ip vrf forwarding
R4(conf-if-eth1/1/5:1)# no switchport
R4(conf-if-eth1/1/5:1)# channel-group 12
R4(conf-if-eth1/1/5:1)# end
R4# configure terminal
R4(config)# interface vlan 2001
R4(conf-if-vl-2001)# ip vrf forwarding red
R4(conf-if-vl-2001)# ip address 208.1.1.2/24
R4(conf-if-vl-2001)# ip pim sparse-mode
R4(conf-if-vl-2001)# no shutdown
R4(conf-if-vl-2001)# end
R4# configure terminal
R4(config)# interface port-channel 11
R4(conf-if-po-11)# no switchport
R4(conf-if-po-11)# interface port-channel 11
R4(conf-if-po-11)# ip vrf forwarding red
R4(conf-if-po-11)# ip address 193.1.1.2/24
R4(conf-if-po-11)# ip pim sparse-mode
R4(conf-if-po-11)# no shutdown
R4(conf-if-po-11)# end
R4# configure terminal
R4(config)# interface port-channel 12
R4(conf-if-po-12)# no switchport
R4(conf-if-po-12)# interface port-channel 12
R4(conf-if-po-12)# ip vrf forwarding red
R4(conf-if-po-12)# ip address 194.1.1.2/24
R4(conf-if-po-12)# ip pim sparse-mode
R4(conf-if-po-12)# no shutdown
R4(conf-if-po-12)# end
R4# configure terminal
R4(config)# interface Lo0
R4(conf-if-lo-0)# ip vrf forwarding red
R4(conf-if-lo-0)# ip address 4.4.4.4/32
R4(conf-if-lo-0)# ip pim sparse-mode
R4(conf-if-lo-0)# no shutdown
R4(conf-if-lo-0)# end
R4# configure terminal
R4(config)# router ospf 100 vrf red
R4(config-router-ospf-100)# interface vlan 2001
R4(conf-if-vl-2001)# ip ospf 100 area 0
R4(conf-if-vl-2001)# end
R4# configure terminal
R4(config)# router ospf 100 vrf red
R4(config-router-ospf-100)# interface port-channel 11
R4(conf-if-po-11)# ip ospf 100 area 0
R4(conf-if-po-11)# end
R4# configure terminal
R4(config)# router ospf 100 vrf red
R4(config-router-ospf-100)# interface port-channel 12
R4(conf-if-po-12)# ip ospf 100 area 0
R4(conf-if-po-12)# end
R4# configure terminal
R4(config)# ip multicast-routing vrf red
R4(config)# end
R4# configure terminal
R4(config)# ip pim vrf red rp-address 182.190.168.224 group-address 224.0.0.0/4
R4(config)# end
Verify the configuration
To verify the configuration, use the following show commands.
First hop router
(R1)
R1# show ip pim vrf red neighbor
Neighbor Address Interface Uptime/Expires Ver DR Priority / Mode
---------------------------------------------------------------------------
191.1.1.2 ethernet1/1/9 02:13:21/00:01:25 v2 1/ DR S
193.1.1.2 port-channel11 02:15:29/00:01:22 v2 1/ DR S
R1# show ip pim vrf red tib
PIM Multicast Routing Table
Flags: S - Sparse, C - Connected, L - Local, P - Pruned,
R - RP-bit set, F - Register Flag, T - SPT-bit set, J - Join SPT,
K - Ack-Pending state
Timers: Uptime/Expires
Interface state: Interface, next-Hop, State/Mode
(201.1.1.1, 224.1.1.1), uptime 00:00:33, expires 00:02:56, flags: FT
Incoming interface: ethernet1/1/7, RPF neighbor 0.0.0.0
Outgoing interface list:
port-channel11 Forward/Sparse 00:00:33/00:02:56
R1# show ip pim vrf red rp
Group RP
---------------------------------
224.1.1.1 182.190.168.224
R1# show ip pim vrf red rp mapping
Group(s) : 224.0.0.0/4, Static
RP : 182.190.168.224, v2
R1# show ip pim vrf red mcache
PIM Multicast Routing Cache Table
(201.1.1.1, 224.1.1.1)
Incoming interface : ethernet1/1/7
Outgoing interface list :
port-channel11
Rendezvous
point (R3)
R3# show ip pim vrf red neighbor
Neighbor Address Interface Uptime/Expires Ver DR Priority / Mode
----------------------------------------------------------------------------
192.1.1.2 vlan1001 02:11:46/00:01:33 v2 1/ DR S
194.1.1.2 port-channel12 02:14:12/00:01:33 v2 1/ DR S
R3# show ip pim vrf red tib
PIM Multicast Routing Table
Flags: S - Sparse, C - Connected, L - Local, P - Pruned,
R - RP-bit set, F - Register Flag, T - SPT-bit set, J - Join SPT,
K - Ack-Pending state
Timers: Uptime/Expires
Interface state: Interface, next-Hop, State/Mode
(*, 224.1.1.1), uptime 00:01:48, expires 00:00:00, RP 182.190.168.224, flags: S
Incoming interface: Null, RPF neighbor 0.0.0.0
Outgoing interface list:
port-channel12 Forward/Sparse 00:01:48/00:02:41
R3# show ip pim vrf red mcache
PIM Multicast Routing Cache Table
(*, 224.1.1.1)
Incoming interface :
Outgoing interface list :
port-channel12
R3# show ip rpf vrf red
RPF information for 182.190.168.224
RPF interface:
RPF neighbor: 0.0.0.0
RPF route/mask: 0.0.0.0/0.0.0.0
RPF type: Unicast
R3# show ip pim vrf red rp mapping
Group(s) : 224.0.0.0/4, Static
RP : 182.190.168.224, v2
R3# show ip pim vrf red rp
Group RP
---------------------------------
224.1.1.1 182.190.168.224
R3# show ip pim vrf red rp
Group RP
---------------------------------
224.1.1.1 182.190.168.224
R3# show ip pim vrf red tib
PIM Multicast Routing Table
Flags: S - Sparse, C - Connected, L - Local, P - Pruned,
R - RP-bit set, F - Register Flag, T - SPT-bit set, J - Join SPT,
K - Ack-Pending state
Timers: Uptime/Expires
Interface state: Interface, next-Hop, State/Mode
(*, 224.1.1.1), uptime 00:04:41, expires 00:00:00, RP 182.190.168.224, flags: S
Incoming interface: Null, RPF neighbor 0.0.0.0
Outgoing interface list:
port-channel12 Forward/Sparse 00:04:41/00:02:48
(201.1.1.1, 224.1.1.1), uptime 00:01:55, expires 00:02:29, flags: P
Incoming interface: port-channel12, RPF neighbor 194.1.1.2
Outgoing interface list:
R3# show ip pim vrf red mcache
PIM Multicast Routing Cache Table
(*, 224.1.1.1)
Incoming interface :
Outgoing interface list :
port-channel12
Last hop router
(R4)
R4# show ip pim vrf red neighbor
Neighbor Address Interface Uptime/Expires Ver DR Priority / Mode
-----------------------------------------------------------------------------
193.1.1.1 port-channel11 02:11:48/00:01:26 v2 1 / S
194.1.1.1 port-channel12 02:12:07/00:01:41 v2 1 / S
R4# show ip pim vrf red rp mapping
Group(s) : 224.0.0.0/4, Static
RP : 182.190.168.224, v2
R4# show ip pim vrf red rp
Group RP
---------------------------------
224.1.1.1 182.190.168.224
R4# show ip igmp vrf red groups
Total Number of Groups: 1
IGMP Connected Group Membership
Group Address Interface Mode Uptime Expires Last Reporter
224.1.1.1 vlan2001 IGMPv2-Compat 00:00:18 00:02:07 208.1.1.1
R4# show ip rpf vrf red
RPF information for 182.190.168.224
RPF interface: port-channel12
RPF neighbor: 194.1.1.1
RPF route/mask: 182.190.168.224/255.255.255.255
RPF type: Unicast
R4# show ip pim vrf red tib
PIM Multicast Routing Table
Flags: S - Sparse, C - Connected, L - Local, P - Pruned,
R - RP-bit set, F - Register Flag, T - SPT-bit set, J - Join SPT,
K - Ack-Pending state
Timers: Uptime/Expires
Interface state: Interface, next-Hop, State/Mode
(*, 224.1.1.1), uptime 00:05:44, expires 00:00:15, RP 182.190.168.224, flags: SCJ
Incoming interface: port-channel12, RPF neighbor 194.1.1.1
Outgoing interface list:
vlan2001 Forward/Sparse 00:05:44/Never
(201.1.1.1, 224.1.1.1), uptime 00:02:58, expires 00:00:31, flags: CT
Incoming interface: port-channel11, RPF neighbor 193.1.1.1
Outgoing interface list:
vlan2001 Forward/Sparse 00:02:58/Never
R4# show ip pim vrf red mcache
PIM Multicast Routing Cache Table
(*, 224.1.1.1)
Incoming interface : port-channel12
Outgoing interface list :
vlan2001
(201.1.1.1, 224.1.1.1)
Incoming interface : port-channel11
Outgoing interface list :
vlan2001
R4# show ip pim vrf red summary
Entries in PIM-TIB/MFC: 3/2
Active Modes:
PIM-SM
Interface summary:
4 active PIM interfaces
0 passive PIM interfaces
2 active PIM neighbor
TIB Summary:
1/1 (*,G) entries in PIM-TIB/MFC
1/1 (S,G) entries in PIM-TIB/MFC
1/0 (S,G,Rpt) entries in PIM-TIB/MFC
1 RP
1 sources
Message Summary:
81268/13033 Joins/Prunes sent/received
0 Null Register messages received
0/0 Register-stop messages sent/received
Data path event summary:
0/0 pim-assert messages sent/received
0/0 register messages sent/received