Configure Multicast Static Routes
The following example shows how to configure multiple static routes in IPv4 and IPv6 address family
configuration modes:
/* Enables a static routing process */
Router(config)# router static
/* Configures the IPv4 address-family for the unicast topology with a destination prefix.
*/
Router(config-static)# address-family ipv4 unicast
Router(config-static-afi)# 10.1.1.0/24 198.51.100.1
Router(config-static-afi)# 223.255.254.254/32 203.0.113.1
Router(config-static-afi)# exit
/* Configures the IPv4 address-family for the multicast topology with a destination prefix.
*/
Router(config-static)# address-family ipv4 multicast
Router(config-static-afi)# 198.51.100.20/32 209.165.201.0
Router(config-static-afi)# 192.0.2.10/32 209.165.201.0
Router(config-static-afi)# exit
/* Enable the address family IPv4 and IPv6 multicast on the next hop interface. */
Router(config)# interface TenGigE 0/0/0/12
Router(config-if)# address-family ipv4 multicast
Router(config-if)# address-family ipv6 multicast
Running Configuration
router static
address-family ipv4 unicast
10.1.1.0/24 198.51.100.1
223.255.254.254/32 203.0.113.1
!
address-family ipv4 multicast
198.51.100.20/32 209.165.201.0
192.0.2.10/32 209.165.201.0
!
interface TenGigE 0/0/0/12
address-family ipv4 multicast
address-family ipv6 multicast
Verification
Verify the IPv4 multicast routes.
show route ipv4 multicast
Codes: C - connected, S - static, R - RIP, B - BGP, (>) - Diversion path
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, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G - DAGR, l - LISP
A - access/subscriber, a - Application route
M - mobile route, r - RPL, t - Traffic Engineering, (!) - FRR Backup path
Gateway of last resort is 10.1.1.20 to network 0.0.0.0
Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.3.x
197
Implementing Static Routes
Configure Multicast Static Routes