70
Configuring multicast routing and forwarding
Before you configure multicast routing and forwarding, complete the following tasks:
•
Configure a unicast routing protocol so that all devices in the domain can interoperate at the
network layer.
•
Enable PIM-DM or PIM-SM.
Configuring static multicast routes
To configure a static multicast route for a given multicast source, you can specify an RPF interface or
an RPF neighbor for the multicast traffic from that source.
To configure a static multicast route:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure
a
static
multicast route.
ip rpf-route-static
[
vpn-instance
vpn-instance-name
]
source-address
{
mask-length
|
mask
} {
rpf-nbr-address
|
interface-type interface-number
}
[
preference
preference
]
By default, no static multicast
routes exist.
3.
(Optional.) Delete static
multicast routes.
•
Delete a specific static multicast
route:
undo ip rpf-route-static
[
vpn-instance
vpn-instance-name
]
source-address
{
mask-length
|
mask
} {
rpf-nbr-address
|
interface-type interface-number
}
•
Delete all static multicast routes:
delete
ip rpf-route-static
[
vpn-instance
vpn-instance-name
]
N/A
Specifying the longest prefix match principle
You can enable the device to use the longest prefix match principle for RPF route selection. For more
information about RPF route selection, see "
To specify the longest prefix match principle for RPF route selection:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter MRIB view.
multicast routing
[
vpn-instance
vpn-instance-name
]
N/A
3.
Specify the longest prefix
match principle for RPF route
selection.
longest-match
By default, the route preference
principle is used.