- Table of Contents
-
- 04-IP Multicast Volume
- 00-IP Multicast Volume Organization
- 01-Multicast Routing and Forwarding Commands
- 02-IGMP Commands
- 03-PIM Commands
- 04-MSDP Commands
- 05-MBGP Commands
- 06-Multicast VPN Commands
- 07-IGMP Snooping Commands
- 08-Multicast VLAN Commands
- 09-IPv6 Multicast Routing and Forwarding Commands
- 10-MLD Commands
- 11-IPv6 PIM Commands
- 12-IPv6 MBGP Commands
- 13-MLD Snooping Commands
- 14-IPv6 Multicast VLAN Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
01-Multicast Routing and Forwarding Commands | 87.93 KB |
Table of Contents
1 Multicast Routing and Forwarding Configuration Commands
Multicast Routing and Forwarding Configuration Commands
display multicast forwarding-table
display multicast routing-table
display multicast routing-table static
multicast forwarding-table downstream-limit
multicast forwarding-table route-limit
reset multicast forwarding-table
The term “router” in this document refers to a router in the generic sense or a Layer 3 switch running an IP multicast routing protocol.
Multicast Routing and Forwarding Configuration Commands
display multicast boundary
Syntax
display multicast [ all-instance | vpn-instance vpn-instance-name ] boundary [ group-address [ mask | mask-length ] ] [ interface interface-type interface-number ]
View
Any view
Default Level
1: Monitor level
Parameters
all-instance: Specifies all instances.
vpn-instance vpn-instance-name: Specifies a VPN instance. A VPN instance name is a case sensitive string of up to 31 characters and must not contain any space.
group-address: Multicast group address, in the range of 224.0.0.0 to 239.255.255.255.
mask: Mask of the multicast group address, 255.255.255.255 by default.
mask-length: Mask length of the multicast group address, in the range of 4 to 32. The system default is 32.
interface-type interface-number: Specifies an interface by its type and number.
Description
Use the display multicast boundary command to view the multicast boundary information on the specified interface or all interfaces.
Note that if neither all-instance nor vpn-instance is specified, this command displays the information on the public instance.
Related commands: multicast boundary.
Examples
# View the multicast boundary information on all interfaces in the public network instance.
<Sysname> display multicast boundary
Multicast boundary information of VPN-Instance: public net
Boundary Interface
224.1.1.0/24 Vlan1
239.2.2.0/24 Vlan2
Table 1-1 display multicast boundary command output description
Field |
Description |
Multicast boundary information of VPN-Instance: public net |
Multicast boundary for the public network |
Boundary |
Multicast group corresponding to the multicast boundary |
Interface: |
Boundary interface corresponding to the multicast boundary |
display multicast forwarding-table
Syntax
display multicast [ all-instance | vpn-instance vpn-instance-name ] forwarding-table [ source-address [ mask { mask | mask-length } ] | group-address [ mask { mask | mask-length } ] | incoming-interface { interface-type interface-number | register } | outgoing-interface { { exclude | include | match } { interface-type interface-number | register } } | statistics | slot slot-number ] * [ port-info ]
View
Any view
Default Level
1: Monitor level
Parameters
all-instance: Specifies all instances.
vpn-instance vpn-instance-name: Specifies a VPN instance. A VPN instance name is a case sensitive string of up to 31 characters and must not contain any space.
source-address: Multicast source address.
group-address: Multicast group address, in the range of 224.0.0.0 to 239.255.255.255.
mask: Mask of the multicast group/source address, 255.255.255.255 by default.
mask-length: Mask length of the multicast group/source address. For a multicast group address, this argument has an effective value range of 4 to 32; for a multicast source address, this argument has an effective value range of 0 to 32. The system default is 32 in both cases.
incoming-interface: Displays forwarding entries of which the incoming interface is the specified one.
interface-type interface-number: Specifies the interface by its type and number.
register: Displays forwarding entries of which the incoming interface is the register interface of PIM-SM.
outgoing-interface: Displays forwarding entries of which the outgoing interface is the specified one.
exclude: Displays the forwarding entries of which the outgoing interface list excludes the specified interface.
include: Displays the forwarding entries of which the outgoing interface list includes the specified interface.
match: Specifies the forwarding entries of which the outgoing interface list includes and includes only the specified interface.
statistics: Specifies to display the statistics information of the multicast forwarding table.
slot slot-number: Displays forwarding entries of the interface card specified by the slot number. If you do not specify this option, this command will display the multicast forwarding table information of the main processing board.
port-info: Specifies to display Layer 2 port information.
Description
Use the display multicast forwarding-table command to view the multicast forwarding table information.
Note that:
l If neither all-instance nor vpn-instance is specified, this command displays the information on the public instance.
l Multicast forwarding tables are used to guide multicast forwarding. You can view the forwarding state of multicast traffic by checking the multicast forwarding table.
Related commands: multicast forwarding-table downstream-limit, multicast forwarding-table route-limit, display multicast routing-table.
Examples
# View the multicast forwarding table information in the public network instance.
<Sysname> display multicast forwarding-table
Multicast Forwarding Table of VPN-Instance: public net
Total 1 entry
Total 1 entry matched
00001. (172.168.0.2, 227.0.0.1)
MID: 0, Flags: 0x0:0
Uptime: 00:08:32, Timeout in: 00:03:26
Incoming interface: Vlan-interface1
List of 1 outgoing interfaces:
1: Vlan-interface2
Matched 19648 packets(20512512 bytes), Wrong If 0 packets
Forwarded 19648 packets(20512512 bytes)
Table 1-2 display multicast forwarding-table command output description
Field |
Description |
Multicast Forwarding Table of VPN-Instance: public net |
Multicast forwarding table for the public network |
Total 1 entry |
Total number of (S, G) entries in the multicast forwarding table |
Total 1 entry matched |
Total number of matched (S, G) entries in the multicast forwarding table |
00001 |
Sequence number of the (S, G) entry |
(172.168.0.2,227.0.0.1) |
An (S, G) entry of the multicast forwarding table |
MID |
(S, G) entry ID. Each (S, G) entry has a unique MID |
Flags |
Current state of the (S, G) entry. Different bits are used to indicate different states of (S, G) entries. Major values of this field are described in Table 1-1. |
Uptime |
Length of time for which the (S, G) entry has been up, in hours:minutes:seconds |
Timeout in |
Length of time in which the (S, G) entry will expire, in hours:minutes:seconds |
Incoming interface |
Incoming interface of the (S, G) entry |
List of 1 outgoing interface: 1: Vlan-interface2 |
Outgoing interface list Interface number: outgoing interface name and number |
Matched 19648 packets (20512512 bytes), Wrong If 0 packets |
(S, G)-matched packets (bytes), packets with incoming interface errors |
Forwarded 19648 packets (20512512 bytes) |
(S, G)-forwarded packets (bytes) |
Table 1-3 Major values of the flags field
Value |
Meaning |
0x00000001 |
Indicates that a register-stop message must be sent |
0x00000002 |
Indicates whether the multicast source corresponding to the (S, G) is active |
0x00000004 |
Indicates a null forwarding entry |
0x00000008 |
Indicates whether the RP is a PIM domain border router |
0x00000010 |
Indicates that a register outgoing interface is available |
0x00000400 |
Identifies an (S, G) entry to be deleted |
0x00008000 |
Indicates that the (S, G) entry is in the smoothening process after active/standby switchover |
0x00010000 |
Indicates that the (S, G) has been updated during the smoothing process |
0x00080000 |
Indicates that the (S, G) entry has been repeatedly updated and needs to be deleted before a new entry is added |
0x00100000 |
Indicates that an entry is successfully added |
display multicast routing-table
Syntax
display multicast [ all-instance | vpn-instance vpn-instance-name ] routing-table [ source-address [ mask { mask | mask-length } ] | group-address [ mask { mask | mask-length } ] | incoming-interface { interface-type interface-number | register } | outgoing-interface { { exclude | include | match } { interface-type interface-number | register } } ] *
View
Any view
Default Level
1: Monitor level
Parameters
all-instance: Specifies all instances.
vpn-instance vpn-instance-name: Specifies a VPN instance. A VPN instance name is a case sensitive string of up to 31 characters and must not contain any space.
source-address: Multicast source address.
group-address: Multicast group address, in the range of 224.0.0.0 to 239.255.255.255.
mask: Mask of the multicast group/source address, 255.255.255.255 by default.
mask-length: Mask length of the multicast group/source address. For a multicast group address, this argument has an effective value range of 4 to 32; for a multicast source address, this argument has an effective value range of 0 to 32. The system default is 32 in both cases.
incoming-interface: Displays multicast routing entries of which the incoming interface is the specified one.
interface-type interface-number: Specifies an interface by its type and number.
register: Displays multicast routing entries of which the incoming interface is the specified register interface of PIM-SM.
outgoing-interface: Displays multicast routing entries of which the outgoing interface is the specified one.
exclude: Displays routing entries of which the outgoing interface list excludes the specified interface.
include: Displays routing entries of which the outgoing interface list includes the specified interface.
match: Displays routing entries of which the outgoing interface list includes only the specified interface.
Description
Use the display multicast routing-table command to view the multicast routing table information.
Note that:
l If neither all-instance nor vpn-instance is specified, this command displays the information on the public instance.
l Multicast routing tables are the basis of multicast forwarding. You can view the establishment state of an (S, G) entry by checking the multicast routing table.
Related commands: display multicast forwarding-table.
Examples
# View the routing information in the multicast routing table of the public instance.
<Sysname> display multicast routing-table
Multicast routing table of VPN-Instance: public net
Total 1 entry
00001. (172.168.0.2, 227.0.0.1)
Uptime: 00:00:28
Upstream Interface: Vlan-interface1
List of 2 downstream interfaces
1: Vlan-interface2
2: Vlan-interface3
Table 1-4 display multicast routing-table command output description
Field |
Description |
Multicast routing table of VPN-Instance: public net |
Multicast routing table for the public network |
Total 1 entry |
Total number of (S, G) entries in the multicast routing table |
00001 |
Sequence number of the (S, G) entry |
(172.168.0.2, 227.0.0.1) |
An (S, G) entry of the multicast forwarding table |
Uptime |
Length of time for which the (S, G) entry has been up, in hours:minutes:seconds |
Upstream interface |
Upstream interface the (S, G) entry: multicast packets should arrive at this interface |
List of 2 downstream interfaces |
Downstream interface list: these interfaces need to forward multicast packets |
display multicast routing-table static
Syntax
display multicast routing-table [ all-instance | vpn-instance vpn-instance-name ] static [ config ] [ source-address { mask-length | mask } ]
View
Any view
Default Level
1: Monitor level
Parameters
all-instance: Specifies all instances.
vpn-instance vpn-instance-name: Specifies a VPN instance. A VPN instance name is a case sensitive string of up to 31 characters and must not contain any space.
config: Displays the configuration information of static routes.
source-address: Multicast source address.
mask: Mask of the multicast source address.
mask-length: Mask length of the multicast source address, in the range of 0 to 32.
Description
Use the display multicast routing-table static command to view the information of multicast static routes.
Note that if neither all-instance nor vpn-instance is specified, this command displays the information on the public instance.
Examples
# View all the multicast static routes in the public instance.
<Sysname> display multicast routing-table static
Multicast Routing Table of VPN-Instance: public net
Routes : 1
Mroute 10.10.0.0/16
Interface = Vlan-interface1 RPF Neighbor = 2.2.2.2
Matched routing protocol = <none>, Route-policy = <none>
Preference = 1, Order = 1
Running Configuration = ip rpf-route-static 10.10.0.0 16 2.2.2.2 order 1
# View the configuration information of multicast static routes in the public instance.
<Sysname> display multicast routing-table static config
Multicast Routing Table of VPN-Instance: public net
Routes : 1
Mroute 10.10.0.0/16, RPF neighbor = 2.2.2.2
Matched routing protocol = <none>, Route-policy = <none>
Preference = 1, Order = 1
Table 1-5 display multicast routing-table static command output description
Field |
Description |
Multicast Routing Table of VPN-Instance: public net |
Multicast routing table for the public network |
Mroute |
Multicast route source address and its mask length |
Interface |
Outgoing interface to the multicast source |
RPF Neighbor |
IP address of the RPF neighbor through which the multicast source is reachable |
Matched routing protocol |
If a protocol is configured, the multicast source address of the route should be the destination address of an entry in unicast routing table. |
Route-policy |
Routing policy. The multicast source address of the route should match the routing policy. |
Preference |
Route preference |
Order |
Sequence number of the route |
display multicast rpf-info
Syntax
display multicast [ all-instance | vpn-instance vpn-instance-name ] rpf-info source-address [ group-address ]
View
Any view
Default Level
1: Monitor level
Parameters
all-instance: Specifies all instances.
vpn-instance vpn-instance-name: Specifies a VPN instance. A VPN instance name is a case sensitive string of up to 31 characters and must not contain any space..
source-address: Multicast source address.
group-address: Multicast group address, in the range of 224.0.1.0 to 239.255.255.255.
Description
Use the display multicast rpf-info command to view the RPF information of a multicast source.
Note that if neither all-instance nor vpn-instance is specified, this command displays the information on the public instance.
Related commands: display multicast routing-table, display multicast forwarding-table.
Examples
# View all the RPF information of multicast source 192.168.1.55 in the public network.
<Sysname> display multicast rpf-info 192.168.1.55
RPF information about source 192.168.1.55:
VPN instance: public net
RPF interface: Vlan-interface1, RPF neighbor: 10.1.1.1
Referenced route/mask: 192.168.1.0/24
Referenced route type: igp
Route selection rule: preference-preferred
Load splitting rule: disable
Table 1-6 display multicast rpf-info command output description
Field |
Description |
RPF information about source 192.168.1.55 |
Information of the RPF path to multicast source 192.168.1.55 |
RPF interface |
RPF interface |
RPF neighbor |
IP address of the RPF neighbor |
Referenced route/mask |
Referenced route and its mask length |
Referenced route type |
Type of the referenced route, which can be any of the following: l igp: unicast route (IGP) l egp: unicast route (BGP) l unicast (direct): unicast route (directly connected) l unicast: other unicast route (such as unicast static route) l mbgp: MBGP route l multicast static: multicast static route |
Route selection rule |
Rule for RPF route selection, which can be based on the preference of the routing protocol or based on the longest match on the destination address |
Load splitting rule |
Status of the load splitting rule (enabled/disabled) |
ip rpf-route-static
Syntax
ip rpf-route-static [ vpn-instance vpn-instance-name ] source-address { mask | mask-length } [ protocol [ process-id ] ] [ route-policy policy-name ] { rpf-nbr-address | interface-type interface-number } [ preference preference ] [ order order-number ]
undo ip rpf-route-static [ vpn-instance vpn-instance-name ] source-address { mask | mask-length } [ protocol [ process-id ] ] [ route-policy policy-name ]
View
System view
Default Level
2: System level
Parameters
vpn-instance vpn-instance-name: Specifies a VPN instance. A VPN instance name is a case sensitive string of up to 31 characters and must not contain any space..
source-address: Multicast source address.
mask: Mask of the multicast source address.
mask-length: Mask length of the multicast source address, in the range of 0 to 32.
protocol: Routing protocol, which can have any of the following values:
l bgp: Specifies the BGP protocol.
l isis: Specifies the IS-IS protocol.
l ospf: Specifies the OSPF protocol.
l rip: Specifies the RIP protocol.
l statitc: Specifies a static route.
process-id: Process number of the unicast routing protocol, in the range of 1 to 65535. This argument must be provided if IS-IS, OSPF or RIP is the specified unicast routing protocol.
policy-name: Name of the multicast route match rule, a case sensitive string of up to 19 characters without any space.
rpf-nbr-address: Specifies an RPF neighbor by the IP address.
interface-type interface-number: Specifies an interface by its type and number.
preference: Route preference, in the range of 1 to 255 and defaulting to 1.
order-number: Match order for routes on the same segment, in the range of 1 to 100.
Description
Use the ip rpf-route-static command to configure a multicast static route.
Use the undo ip rpf-route-static command to delete a multicast static route from the multicast static routing table.
By default, no multicast static route is configured.
Note that:
l If vpn-instance is not specified, this configuration takes effect only on the public instance.
l The arguments source-address { mask | mask-length }, protocol and policy-name are critical elements in multicast static route configuration. The variation of any of these three arguments results in a different configuration.
l In the configuration, you can use the display multicast routing-table static command to check whether the multicast static route information contains this configuration. If you find a match, modify the corresponding fields without changing the configuration sequence; otherwise, add a multicast static route.
l When configuring a multicast static route, you can specify an RPF neighbor only by providing its IP address (rpf-nbr-address) rather than its interface type and number (interface-type interface-number) if the interface type of the RPF neighbor is Ethernet, Layer 3 aggregate, Loopback, RPR, or VLAN-interface.
l Because outgoing interface iteration may fail or the specified interface may be in the down state, the multicast static route configured with this command may fail to take effect. Therefore, we recommend that you use the display multicast routing-table static command after you configure a multicast static route to check whether the route has been successfully configured or whether the route has taken effect.
Related commands: display multicast routing-table static.
Examples
# Configure a multicast static route to the multicast source 10.1.1.1/24, specifying a router with the IP address of 192.168.1.23 as its RPF neighbor.
<Sysname> system-view
[Sysname] ip rpf-route-static 10.1.1.1 24 192.168.1.23
mtracert
Syntax
mtracert source-address [ [ last-hop-router-address ] group-address ]
View
Any view
Default Level
1: Monitor level
Parameters
source-address: Specifies a multicast source address.
group-address: Specifies a multicast group address, in the range of 224.0.1.0 to 239.255.255.255.
last-hop-router-address: Specifies a last-hop router address, which is the IP address of the local router by default.
Description
Use the mtracert command to trace the path down which the multicast traffic flows to the last-hop router.
Note that if the last-hop-router-address argument is given in the command to trace the path for a specific (S, G) multicast stream, the interface corresponding to the last-hop router address must be the outgoing interface for the (S, G) entry; otherwise the multicast traceroute will fail.
Examples
# Trace the path down which the (6.6.6.6, 225.2.1.1) multicast traffic flows to the last-hop router with an IP address of 5.5.5.8.
<Sysname> mtracert 6.6.6.6 5.5.5.8 225.2.1.1
Type Ctrl+C to quit mtrace facility
Tracing reverse path of (6.6.6.6, 225.2.1.1) from last-hop router (5.5.5.8) to source via multicast routing-table
-1 5.5.5.8
Incoming interface address: 4.4.4.8
Previous-hop router address: 4.4.4.7
Input packet count on incoming interface: 17837
Output packet count on outgoing interface: 0
Total number of packets for this source-group pair: 8000
Protocol: PIM
Forwarding TTL: 0
Forwarding code: No error
-2 4.4.4.7
Incoming interface address: 6.6.6.7
Previous-hop router address: 0.0.0.0
Input packet count on incoming interface: 2
Output packet count on outgoing interface: 259
Total number of packets for this source-group pair: 8100
Protocol: PIM
Forwarding TTL: 0
Forwarding code: No error
Table 1-7 mtracert command output description
Field |
Description |
(6.6.6.6, 225.2.1.1) |
The (S, G) multicast stream for which the forwarding path is being traced |
-1 5.5.5.8 |
The (S, G) outgoing interface address of each hop, starting from the last-hop router |
Incoming interface address |
The address of the interface on which the (S, G) packets arrive |
Previous-hop router address |
The IP address of the router from which this router receives packets from this source |
Input packet count on incoming interface |
The total number of multicast packets received on the incoming interface |
Output packet count on outgoing interface |
The total number of multicast packets transmitted on the outgoing interface |
Total number of packets for this source-group pair |
The total number of packets from the specified source forwarded by this router to the specified group |
Protocol |
The multicast routing protocol in use |
Forwarding TTL |
The minimum TTL that a packet is required to have before it can be forwarded over the outgoing interface |
multicast boundary
Syntax
multicast boundary group-address { mask | mask-length }
undo multicast boundary { group-address { mask | mask-length } | all }
View
Interface view
Default Level
2: System level
Parameters
group-address: Multicast group address, in the range of 224.0.0.0 to 239.255.255.255.
mask: Mask of the multicast group address.
mask-length: Mask length of the multicast group address, in the range of 4 to 32.
all: Specifies to remove all forwarding boundaries configured on the interface.
Description
Use the multicast boundary command to configure a multicast forwarding boundary.
Use the undo multicast boundary command to remove a multicast forwarding boundary.
By default, no multicast forwarding boundary is configured.
Note that:
l A multicast forwarding boundary sets the boundary condition for the multicast groups in the specified range. If the destination address of a multicast packet matches the set boundary condition, the packet will not be forwarded.
l If an interface needs to act as a forwarding boundary for multiple multicast groups, just carry out this command on the interface once for each group.
l Assume that Set A and Set B are both multicast forwarding boundary sets to be configured, and B is a subset of A. If A has been configured on an interface, it is not allowed to configure B on the interface; if B has been configured on the interface before A is configured, the previously configured B will be removed.
Related commands: display multicast boundary.
Examples
# Configure VLAN-interface 100 to be the forwarding boundary of multicast group 239.2.0.0/16.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] multicast boundary 239.2.0.0 16
multicast forwarding-table downstream-limit
Syntax
multicast forwarding-table downstream-limit limit
undo multicast forwarding-table downstream-limit
View
System view, VPN instance view
Default Level
2: System level
Parameters
limit: Maximum number of downstream nodes (namely, the maximum number of outgoing interfaces) for a single multicast forwarding entry. The value ranges from 0 to 128.
Description
Use the multicast forwarding-table downstream-limit command to configure the maximum number of downstream nodes for a single entry in the multicast forwarding table.
Use the undo multicast forwarding-table downstream-limit command to restore the system default.
By default, the maximum number of downstream nodes for a single multicast forwarding entry is the maximum number allowed by the system, namely 128.
The system-allowed maximum number varies with different device models.
Related commands: display multicast forwarding-table.
Examples
# Set the maximum number of downstream nodes for a single multicast forwarding entry of the public instance to 120.
<Sysname> system-view
[Sysname] multicast forwarding-table downstream-limit 120
# Set the maximum number of downstream nodes for a single multicast forwarding entry of VPN instance mvpn to 60.
<Sysname> system-view
[Sysname] ip vpn-instance mvpn
[Sysname-vpn-instance-mvpn] multicast forwarding-table downstream-limit 60
multicast forwarding-table route-limit
Syntax
multicast forwarding-table route-limit limit
undo multicast forwarding-table route-limit
View
System view, VPN instance view
Default Level
2: System level
Parameters
limit: Maximum number of entries in the multicast forwarding table. The value ranges 0 to 1000.
Description
Use the multicast forwarding-table route-limit command to configure the maximum number of entries in the multicast forwarding table.
Use the undo multicast forwarding-table route-limit command to restore the maximum number of entries in the multicast forwarding table to the system default.
By default, the maximum number of entries in the multicast forwarding table is the maximum number allowed by the system, namely 1000.
The system-allowed maximum number varies with different device models.
Related commands: display multicast forwarding-table.
Examples
# Set the maximum number of entries in the multicast forwarding table of the public instance to 200.
<Sysname> system-view
[Sysname] multicast forwarding-table route-limit 200
# Set the maximum number of entries in the multicast forwarding table of VPN instance mvpn to 200.
<Sysname> system-view
[Sysname] ip vpn-instance mvpn
[Sysname-vpn-instance-mvpn] multicast forwarding-table route-limit 200
multicast load-splitting
Syntax
multicast load-splitting { source | source-group }
undo multicast load-splitting
View
System view, VPN instance view
Default Level
2: System level
Parameters
source: Specifies to implement per-source load splitting.
source-group: Specifies to implement per-source and per-group load splitting simultaneously.
Description
Use the multicast load-splitting command to enable load splitting of multicast traffic.
Use the undo multicast load-splitting command to disable load splitting of multicast traffic.
By default, load splitting of multicast traffic is disabled.
Examples
# Enable per-source load splitting of multicast traffic in the public instance.
<Sysname> system-view
[Sysname] multicast load-splitting source
# Enable per-source load splitting of multicast traffic in VPN instance mvpn.
<Sysname> system-view
[Sysname] ip vpn-instance mvpn
[Sysname-vpn-instance-mvpn] multicast load-splitting source
multicast longest-match
Syntax
multicast longest-match
undo multicast longest-match
View
System view, VPN instance view
Default Level
2: System level
Parameters
None
Description
Use the multicast longest-match command to configure the device to select the RPF route based on the longest match principle, namely to select the route with the longest mask as the RPF route.
Use the undo multicast longest-match command to restore the default.
By default, the device selects the route with the highest priority as the RPF route.
Examples
# Configure the device to select the RPF route based on the longest match principle in the public instance.
<Sysname> system-view
[Sysname] multicast longest-match
# Configure route selection based on the longest match in VPN instance mvpn.
<Sysname> system-view
[Sysname] ip vpn-instance mvpn
[Sysname-vpn-instance-mvpn] multicast longest-match
multicast routing-enable
Syntax
multicast routing-enable
undo multicast routing-enable
View
System view, VPN instance view
Default Level
2: System level
Parameters
None
Description
Use the multicast routing-enable command to enable IP multicast routing.
Use the undo multicast routing-enable command to disable IP multicast routing.
IP multicast routing is disabled by default.
Note that:
l You must enable IP multicast routing in the public instance or VPN instance before you can carry out other Layer 3 multicast commands in the corresponding instance.
l The device does not forward any multicast packets before IP multicast routing is enabled.
Examples
# Enable IP multicast routing in the public instance.
<Sysname> system-view
[Sysname] multicast routing-enable
# Enable IP multicast routing in VPN instance mvpn.
<Sysname> system-view
[Sysname] ip vpn-instance mvpn
[Sysname-vpn-instance-mvpn] route-distinguisher 100:1
[Sysname-vpn-instance-mvpn] multicast routing-enable
reset multicast forwarding-table
Syntax
reset multicast [ all-instance | vpn-instance vpn-instance-name ] forwarding-table { { source-address [ mask { mask | mask-length } ] | group-address [ mask { mask | mask-length } ] | incoming-interface { interface-type interface-number | register } } * | all }
View
User view
Default Level
2: System level
Parameters
all-instance: Specifies all instances.
vpn-instance vpn-instance-name: Specifies a VPN instance. A VPN instance name is a case sensitive string of up to 31 characters and must not contain any space.
source-address: Multicast source address.
group-address: Multicast group address, in the range of 224.0.0.0 to 239.255.255.255.
mask: Mask of the multicast group/source address, 255.255.255.255 by default.
mask-length: Mask length of the multicast group/source address. For a multicast group address, this argument has an effective value range of 4 to 32; for a multicast source address, this argument has an effective value range of 0 to 32. The system default is 32 in both cases.
incoming-interface: Specifies to clear multicast forwarding entries of which the incoming interface is the specified one.
interface-type interface-number: Specifies an interface by its type and number.
register: Specifies o clear multicast forwarding entries of which the incoming interface is the specified register interface of PIM-SM..
all: Specifies to clear all the forwarding entries from the multicast forwarding table.
Description
Note that:
l If neither all-instance nor vpn-instance is specified, this command clears the forwarding table information on the public instance.
l When a forwarding entry is deleted from the multicast forwarding table, the corresponding route entry is also deleted from the multicast routing table.
Related commands: reset multicast routing-table, display multicast routing-table, display multicast forwarding-table.
Examples
# Clear the multicast forwarding entries related to multicast group 225.5.4.3 from the multicast forwarding table of the public instance.
<Sysname> reset multicast forwarding-table 225.5.4.3
# Clear the multicast forwarding entries related to multicast group 226.1.2.3 from the multicast forwarding table of VPN instance mvpn.
<Sysname> reset multicast vpn-instance mvpn forwarding-table 226.1.2.3
reset multicast routing-table
Syntax
reset multicast [ all-instance | vpn-instance vpn-instance-name ] routing-table { { source-address [ mask { mask | mask-length } ] | group-address [ mask { mask | mask-length } ] | incoming-interface { interface-type interface-number | register } } * | all }
View
User view
Default Level
2: System level
Parameters
all-instance: Specifies all instances.
vpn-instance vpn-instance-name: Specifies a VPN instance. A VPN instance name is a case sensitive string of up to 31 characters and must not contain any space.
source-address: Multicast source address.
group-address: Multicast group address, in the range of 224.0.0.0 to 239.255.255.255.
mask: Mask of the multicast group/source address, 255.255.255.255 by default.
mask-length: Mask length of the multicast group/source address. For a multicast group address, this argument has an effective value range of 4 to 32; for a multicast source address, this argument has an effective value range of 0 to 32. The system default is 32 in both cases.
incoming-interface: Specifies to clear the routing entries of which the incoming interface is the specified one..
register: Specifies to clear the routing entries of which the incoming interface is the specified register interface of PIM-SM..
all: Specifies to clear all the routing entries from the multicast routing table.
Description
Use the reset multicast routing-table command to clear multicast routing entries from the multicast routing table.
Note that:
l If neither all-instance nor vpn-instance is specified, this command displays the information on the public instance.
l When a route entry is deleted from the multicast routing table, the corresponding forwarding entry is also deleted from the multicast forwarding table.
Related commands: reset multicast forwarding-table, display multicast routing-table, display multicast forwarding-table.
Examples
# Clear the route entries related to multicast group 225.5.4.3 from the multicast routing table of the public instance.
<Sysname> reset multicast routing-table 225.5.4.3
# Clear the route entries related to multicast group 226.1.2.3 from the multicast routing table of VPN instance mvpn.
<Sysname> reset multicast vpn-instance mvpn routing-table 226.1.2.3