01-09 IPv4 Multicast Route Management Configuration
01-09 IPv4 Multicast Route Management Configuration
Switches
Configuration Guide - IP Multicast 9 IPv4 Multicast Route Management Configuration
This chapter explains the multicast protocols that a switch can use to control
multicast routing and forwarding, by exchanging messages between the control
plane and the forwarding plane.
NOTE
In this chapter, the word "router" and the router icon used in figures refer to a conventional
router or Layer 3 switch.
9.1 Overview
9.2 Principles
9.3 Configuration Task Summary
9.4 Licensing Requirements and Limitations for IPv4 Multicast Route Management
9.5 Default Configuration
9.6 Configuring RPF Check Policies
9.7 Configuring a Multicast Boundary
9.8 Disabling Software Forwarding for Multicast Packets
9.9 Configuring Parameters for Controlling the MFIB
9.10 Maintaining Multicast Routes
9.11 Configuration Examples
9.12 Common Misconfigurations
9.1 Overview
Definition
Multicast route management refers to the control of multicast packet forwarding
by creating or changing multicast routes, as well as checking and maintaining
multicast forwarding paths.
Purpose
Multicast route management ensures that multicast packets are forwarded
efficiently through the correct paths.
In multicast routing and forwarding, each multicast routing protocol creates and
maintains its own routing table. The routing information from these tables is then
used to create a general multicast routing table. Multicast routers use this general
multicast routing table to determine optimal routes, according to multicast
routing and forwarding policies. The optimal route information is then delivered to
the multicast forwarding information base (MFIB), where multicast data
forwarding is controlled.
Function Description
9.2 Principles
Field Description
Field Description
00001. (*, 225.1.1.1) 00001 is the entry number, and (*, 225.1.1.1) is
an (*, G) entry, where * indicates any source
and G indicates a group address.
(192.168.0.12, 227.0.0.1)
RP: 10.2.2.2
Protocol: pim-sm, Flag: SPT LOC ACT
UpTime: 02:54:43
Upstream interface: Vlanif 10
Upstream neighbor: NULL
RPF prime neighbor: NULL
Downstream interface(s) information:
Total number of downstreams: 1
1: Vlanif 20
Protocol: pim-sm, UpTime: 02:54:43, Expires: 00:02:47
Field Description
Field Description
Flag: SPT LOC ACT Indicates the flag of the PIM routing entry.
RPF prime neighbor: NULL NULL indicates that no reverse path check
(RPF) neighbor is available.
For details about PIM routing entries, see 5.2.1 Concepts in the PIM feature
description.
MFIB
An MFIB is created and maintained by the route management module of a router
according to multicast routing information. Routers forward multicast data
according to their MFIBs. You can use the display multicast forwarding-table
command to view entries in an MFIB. An MFIB has the same functions as a unicast
FIB. The following is an example of an MFIB.
<HUAWEI> display multicast forwarding-table
Multicast Forwarding Table
Total 1 entry, 1 matched
Field Description
1. The router selects an optimal route from each of the unicast routing table,
MBGP routing table, and multicast static routing table according to the source
address of the multicast packet. The outbound interfaces of the unicast and
MBGP routes are RPF interfaces, and the next hops of those routes are the
RPF neighbors. The RPF interface and RPF neighbor of the multicast static
route have been specified when the route is manually configured.
2. The router selects one of the three routes as the RPF route according to the
following rules:
– If the longest match rule is configured, the router selects the route with
the longest mask. If more than one route has the longest mask, the
router selects the one with the highest preference. If more than one route
has the highest preference, the router uses the following order of priority:
multicast static route, MBGP route, and unicast route.
– If the longest match rule is not configured, the router selects the route
with the highest preference. If more than one route has the highest
preference, the router uses the following order of priority: multicast static
route, MBGP route, and unicast route.
3. The router compares the inbound interface of the packet with the RPF
interface of the selected RPF route. If the inbound interface is the same as the
RPF interface, the router considers that the packet has arrived on the correct
path from the source and forwards the packet downstream. If the inbound
interface is different from the RPF interface, the packet fails the RPF check.
The router considers that the packet is received from an incorrect interface
and drops the packet.
In Figure 9-1, a multicast stream sent from source 10.10.2.2 arrives at interface
Int1 of the router. The router checks the routing table and finds that the multicast
stream from this source should arrive at interface Int0. The RPF check fails, and
the router drops the multicast stream.
Int1
Int0 Int2
In Figure 9-2, a multicast stream sent from the source 10.10.2.2 arrives at
interface Int0 of the router. The router checks the routing table and finds that the
RPF interface is also Int0. The RPF check succeeds, and the multicast stream is
correctly forwarded.
If a router searches the unicast routing table to perform an RPF check on every
multicast data packet received, many system resources are consumed. To save
system resources, a router first searches for the matching (S, G) entry after
receiving a data packet sent from a source to a group.
● If no matching (S, G) entry is found, the router performs an RPF check to find
the RPF interface for the packet. The router then creates a multicast route
with the RPF interface as the upstream interface and delivers the route to the
multicast forwarding information base (MFIB). If the RPF check succeeds, the
inbound interface of the packet is the RPF interface, and the router forwards
the packet to all the downstream interfaces in the forwarding entry. If the RPF
check fails, the packet has been forwarded along an incorrect path, so the
router drops the packet.
● If a matching (S, G) entry is found and the inbound interface of the packet is
the same as the upstream interface in the entry, the router replicates the
packet to all downstream interfaces specified in the entry.
● If a matching (S, G) entry is found but the inbound interface of the packet is
different from the upstream interface in the entry, the router performs an RPF
check on the packet. Based on the RPF check result, the router processes the
packet as follows:
– If the RPF interface is the same as the upstream interface in the entry,
the (S, G) entry is correct and the packet has been forwarded along an
incorrect path. The router drops the packet.
– If the RPF interface is different from the upstream interface in the entry,
the (S, G) entry is outdated, and the router changes the upstream
interface in the entry to be the same as the RPF interface. The router
then compares the RPF interface with the inbound interface of the
packet. If the inbound interface is the RPF interface, the router replicates
the packet to all downstream interfaces specified in the (S, G) entry. If
the inbound interface is different from the RPF interface, the router drops
the packet.
RPF checks can be performed using multicast static routes. Multicast static routes
can be used to change and connect RPF routes.
In Figure 9-3, RouterA is the RPF neighbor of RouterC towards the multicast
source (Source). Multicast packets sent from Source are transmitted along the
path Source → RouterA → RouterC. If you configure a multicast static route on
RouterC and specify RouterB as the RPF neighbor, the transmission path of
multicast packets sent from Source changes to Source → RouterA → RouterB →
RouterC. In this way, the multicast path diverges from the unicast path.
Figure 9-3 Configuring a multicast static route to change the RPF route
Multicast Routing Table on RouterC
Source/Mask Interface RPF Neighbor/Mask
192.168.1.1/24 Int0 10.2.2.1/24
Receiver
RouterB
Int0
10.2.2.1/24
Source Int0 Receiver
10.2.2.2/24
Int1
192.168.1.1/24 RouterA
RouterC
Multicast stream
Multicast static route
Int0
10.2.2.1/24
Domain1
Source Int0 Receiver
10.3.3.1/24 10.3.3.2/24 10.2.2.2/24
Int0 Int1
Multicast stream
Multicast static route
NOTE
Multicast static routes are local to the router where they are configured and are not
advertised or redistributed to any other router.
Implementation
By default, a router selects an RPF route from multiple equal-cost optimal routes
to forward multicast packets according to the following RPF check policy:
● If the equal-cost routes are in the same routing table, for example, a unicast
routing table, multicast static routing table, or MBGP routing table, the router
selects the route with the largest next-hop address as the RPF route.
● If the equal-cost routes are in different routing tables, the router selects the
route with the highest preference. If multiple routes have the highest
preference, the router selects the route with the longest mask length. If
multiple routes have the longest mask length, the router uses an algorithm to
select a route as the RPF route.
In this default configuration, the router selects only one route as the RPF route,
regardless of which condition is met.
Multicast load splitting enables a router to distribute multicast traffic to multiple
equal-cost routes, instead of selecting only one route based on the RPF check
policy.
As shown in Figure 9-5, the multicast source (Source) sends multicast streams to
group G. RouterA and RouterD run an Interior Gateway Protocol (IGP), OSPF for
example, to implement IP interworking. Two equal-cost paths are available:
RouterA → RouterB → RouterD and RouterA → RouterC → RouterD. Based on the
default RPF check policy, multicast streams are forwarded through interface Int0
of RouterA because Int0 has a larger IP address than Int1. After multicast load
splitting is configured on RouterA, RouterA does not select forwarding paths by
comparing the next-hop IP addresses. Instead, multicast streams are forwarded
along both of the two equal-cost paths.
Figure 9-5 Multicast forwarding without and with multicast load splitting
RouterB
Source Receiver
Int0 10.1.2.1
RouterD
Int1 10.1.1.1
RouterA
RouterC
RouterB
Source Receiver
Int0 10.1.2.1
RouterD
Int1 10.1.1.1
RouterA
RouterC
Multicast Packets
Router5 Receiver
Router2
(S, G1)
(S, G2) Source
Router7
.
. Router3
.
(S, G10) Router6
Router4
Router7
.
. Router3
.
Router6
Router4
(S10, G)
Source10
Router7
.
. Router3
.
Router6
Router4
(S10, G10)
Source10
Router2
Router7
Router3
Router6
Router4
The following load balancing methods can also be used on the network
shown in Figure 9-9:
– Stable-preferred load splitting
When route flapping occurs on a multicast network, frequent changes of
multicast traffic distribution on equal-cost paths will worsen route
flapping. Stable-preferred load splitting can be configured to solve this
problem. When route flapping occurs, a router with stable-preferred load
splitting adjusts traffic distribution on equal-cost paths until route
flapping ends. When the network topology becomes stable, the router
evenly distributes (S, G) streams from the same source to equal-cost
paths.
– Balance-preferred load splitting
Balance-preferred load splitting enables routers to immediately adjust
traffic distribution among equal-cost paths when route flapping occurs
on a multicast network. When the network topology becomes stable, the
router evenly distributes (S, G) streams from the same source to equal-
cost paths.
– Unbalanced load splitting
● MPing: a tool for detecting multicast services. MPing sends Internet Control
Message Protocol (ICMP) Echo Request messages to trigger the setup of the
multicast forwarding tree and detect members of reserved multicast groups
on the network.
NOTE
Reserved multicast group addresses range from 224.0.0.0 to 224.0.0.255. For example, 224.0.0.5
is reserved for the OSPF multicast group, and 224.0.0.13 is reserved for the PIM multicast group.
● MTrace: a tool for tracing multicast forwarding paths. MTrace traces the path
from a receiver to a multicast source along the multicast forwarding tree.
MPing
MPing uses standard ICMP messages to detect the connectivity of a multicast
path. MPing constructs an ICMP Echo Request message with the encapsulated
destination address being a multicast address (either a multicast address for the
reserved multicast group or a common multicast group address).
MTrace
MTrace complies with the protocol draft draft-fenner-traceroute-ipm-01.txt
defined by the Internet Engineering Task Force (IETF).
This draft describes a mechanism to trace the path along which multicast data is
forwarded from the multicast source to the designated receiver. Figure 9-10
shows message exchanges in an MTrace process.
MTrace takes effect only on a network where a multicast protocol (such as PIM-
SM) is enabled and the multicast distribution tree is established. MTrace detects
the multicast forwarding path by sending query messages. Query messages
include IGMP Tracert Query messages, IGMP Tracert Request messages, and IGMP
Tracert Response messages.
MTrace is implemented as follows:
1. The querier sends an IGMP Tracert Query message to the last-hop device
connected to the destination host.
2. After receiving the IGMP Tracert Query message, the last-hop device adds a
response data block containing information about the interface that received
the IGMP Tracert Query message, and sends an IGMP Tracert Request
message to the previous-hop device.
3. Devices of each hop add a response data block to the IGMP Tracert Request
message and send the message upstream.
4. When the first-hop device connected to the multicast source receives the
IGMP Tracert Request message, it adds a response data block and sends the
IGMP Tracert Response message to the querier.
5. The querier analyzes the IGMP Tracert Response message and obtains
information about the forwarding path from the multicast source to the
destination host.
6. If the IGMP Tracert Request message cannot reach the first-hop device due to
an error, the IGMP Tracert Response message is directly sent to the querier.
The querier then analyzes the data block information for locating and
monitoring the faulty node.
Licensing Requirements
IPv4 multicast route management is a basic feature of a switch and is not under
license control.
Version Requirements
Table 9-8 Products and versions supporting IPv4 multicast route management
S5720LI V200R011C10
and
S5720S-LI
S5730SI V200R011C10
S5730S-EI V200R011C10
S6720LI V200R011C10
and
S6720S-LI
NOTE
To know details about software mappings, see Hardware Query Tool.
Feature Limitations
● IPv4 multicast route management-capable switches support IPv4 multicast
route management configuration on physical interfaces that have been
switched to Layer 3 mode using the undo portswitch command since
V200R005. This configuration, however, is not supported on the S6720SI,
S6720S-SI, S6720LI, S6720S-LI, S5720LI, S5720S-LI, S5720SI, S5730SI, S5730S-
EI, and S5720S-SI.
● Only the following products and versions support configuration of IPv4
multicast route management in a VPN instance:
– V200R005C01: S6700EI and S5700HI
– V200R005C02: S6700EI, S5700HI, and S5710HI
– V200R005C03: S5710HI
– V200R010 and later versions: S5720EI, S5720HI, S6720EI, and S6720S-EI
● When configuring IPv4 multicast route management in a VPN instance,
ensure that the VPN instance is not bound to a physical interface that has
been switched to Layer 3 mode using the undo portswitch command.
Longest match rule for Not configured. The reverse path forwarding (RPF)
multicast route route is selected based on router preference during an
selection RPF check.
Pre-configuration Tasks
Before configuring an RPF check policy, complete the following tasks:
● Configure a unicast routing protocol to ensure normal unicast routing on the
network.
● Run the multicast routing-enable command in the system view to enable
Layer 3 multicast routing globally.
Configuration Process
The following configuration tasks can be performed in any sequence.
The devices can perform an RPF check using the specified RPF interfaces so
that multicast packets can be forwarded successfully.
Procedure
Step 1 Run:
system-view
----End
Context
By default, a switch selects reverse path forwarding (RPF) routes based on route
preference. If you change the RPF check policy to longest match, the switch
compares mask lengths of routes to select an RPF route, and compares route
preference when multiple routes have the longest mask length.
Procedure
Step 1 Run:
system-view
----End
● If the equal-cost routes are in the same routing table, for example, a unicast
routing table, multicast static routing table, or Multiprotocol Border Gateway
Protocol (MBGP) routing table, the switch selects the route with the largest
next-hop address as the RPF route.
● If the equal-cost routes are in different routing tables, the switch selects the
route with the highest preference. If multiple routes have the highest
preference, the switch selects the route with the longest mask length. If
multiple routes have the longest preference, the switch uses an algorithm to
select an RPF route.
In this default configuration, the switch selects only one route as the RPF route,
regardless of which condition is met. Multicast load splitting enables the switch to
distribute multicast data among multiple equal-cost paths based on a specific load
splitting policy. This function improves quality of multicast forwarding.
NOTE
● It is recommended that you use a fixed load splitting policy that best suits your network.
The stable-preferred or balance-preferred load splitting policy is recommended.
● The load splitting timer and load splitting weights can be configured when the stable-
preferred or balance-preferred load splitting policy is used.
● If Protocol Independent Multicast Dense Mode (PIM-DM) is enabled on the current
switch, the stable-preferred or balance-preferred policy cannot be used.
Procedure
Step 1 Run:
system-view
● source: load splitting by source address. Use this policy in scenarios where
one group receives data from multiple sources.
● source-group: load splitting by source address and group address. Use this
policy in scenarios where multiple sources send data to multiple groups.
Step 3 (Optional) Run:
multicast load-splitting-timer interval
Only the S5720HI, S5720EI, S6720EI, and S6720S-EI support switching between Layer
2 and Layer 3 modes.
3. Run:
multicast load-splitting weight weight-value
----End
Context
After changing the reverse path forwarding (RPF) check policy, check the multicast
static routing table, multicast routing table, and RPF routing table to verify that
the multicast network can operate normally.
Procedure
● Run the display multicast routing-table [ vpn-instance vpn-instance-
name ] static [ config ] [ source-address { mask | mask-length } ] command
to check the multicast static routing table.
● Run either of the following commands to check the multicast routing table:
– display multicast [ vpn-instance vpn-instance-name | all-instance ]
routing-table [ group-address [ mask { group-mask | group-mask-
length } ] | source-address [ mask { source-mask | source-mask-length } ]
| incoming-interface { interface-type interface-number | register } |
outgoing-interface { include | exclude | match } { interface-type
Pre-configuration Tasks
Before configuring the multicast boundary, complete the following tasks:
● Configure a unicast routing protocol to ensure normal unicast routing on the
network.
● Run the multicast routing-enable command in the system view to enable
Layer 3 multicast routing globally.
Context
To restrict forwarding of multicast packets sent to a multicast group within a
range, configure a multicast boundary on interfaces. Once the multicast boundary
is configured on an interface, multicast packets sent to the group cannot be
forwarded through the interface.
Procedure
Step 1 Run:
system-view
Only the S5720HI, S5720EI, S6720EI, and S6720S-EI support switching between Layer 2 and
Layer 3 modes.
Step 4 Run:
multicast boundary group-address { mask | mask-length }
----End
● Run either of the following commands to check the multicast routing table:
– display multicast routing-table [ group-address [ mask { group-mask |
group-mask-length } ] | source-address [ mask { source-mask | source-
mask-length } ] | incoming-interface { interface-type interface-number |
register } | outgoing-interface { include | exclude | match } { interface-
type interface-number | register | none } ] * [ outgoing-interface-
number [ number ] ]
● Run the display multicast boundary [ group-address [ mask | mask-
length ] ] [ interface interface-type interface-number ] command to check
information about the multicast boundary configured on an interface.
Pre-configuration Tasks
Before disabling software forwarding for multicast packets, complete the following
tasks:
Context
In most cases, a switch performs software forwarding before hardware forwarding
entries are generated. After hardware forwarding entries are generated, the switch
performs hardware forwarding. Software forwarding for multicast packets must be
disabled on the switch to prevent packet loss and mis-sequencing caused by the
low forwarding speed and first packet cache mechanism of software forwarding.
Procedure
Step 1 Run:
system-view
Step 2 Run:
multicast cpu-forward disable
----End
Context
The multicast forwarding information base (MFIB) of a device controls forwarding
of multicast packets. You can control forwarding of multicast packets by
configuring the parameters for controlling the MFIB.
Pre-configuration Tasks
Before configuring the parameters for controlling the multicast forwarding table,
complete the following tasks:
● Configure a unicast routing protocol to ensure normal unicast routing on the
network.
● Run the multicast routing-enable command in the system view to enable
Layer 3 multicast routing globally.
Configuration Process
The following configuration tasks can be performed in any sequence.
Default Configuration
By default, a maximum of 1024 entries are allowed in the MFIB of the S5720SI
and S5720S-SI and a maximum of 4096 entries are allowed in the MFIB of the
S5720EI, S5720HI, S6720EI, and S6720S-EI.
Procedure
Step 1 Run:
system-view
----End
Context
When the switch receives a multicast packet, it copies the packet for each
downstream node in the matching multicast forwarding entry. If there are too
many downstream nodes, the switch is overloaded. To reduce the load on the
switch, limit the number of downstream nodes in each multicast forwarding entry.
Default Configuration
By default, a multicast forwarding entry can contain a maximum of 128
downstream nodes.
Procedure
Step 1 Run:
system-view
Step 2 Run:
multicast forwarding-table downstream-limit limit
----End
Context
To improve multicast forwarding performance, the switch uses a hash algorithm to
learn multicast addresses. When a large number of multicast hash collisions occur,
the switch will fail to learn some multicast addresses. If this occurs, you can
change the multicast hash algorithm to reduce hash collisions.
NOTICE
MAC addresses are randomly distributed on a network, so the best hash algorithm
cannot be determined. The default hash algorithm is the best algorithm in most
cases, so changing the hash algorithm is not recommended.
After changing the hash algorithm, restart the switch for the configuration to take
effect.
Product Support
Product Support
Default Configuration
The default multicast hash algorithm is crc-32-lower.
Procedure
Step 1 Run:
system-view
----End
Procedure
● Run the display multicast forwarding-table [ group-address [ mask
{ group-mask | group-mask-length } ] | source-address [ mask { source-mask |
source-mask-length } ] | incoming-interface { interface-type interface-
number | register } | outgoing-interface { include | exclude | match }
{ interface-type interface-number | register | none } | { statistics | verbose } ]
* command to check the multicast forwarding table.
----End
Context
You can check multicast service performance using multicast ping (MPing) and
multicast traceroute (MTrace) functions, delete multicast forwarding and routing
entries, and monitor multicast routing and forwarding.
Context
Multicast devices need to support not only multicast forwarding and multicast
routing protocols but also multicast diagnostic tools.
Procedure
Step 1 Run the ping multicast [ -c count | -h ttl-value | -i interface-type interface-
number | -m time | -p pattern | -q | -s packetsize | -t timeout | -tos tos-value | -v ]
* host command to monitor multicast service performance.
By specifying a reserved group address, you can check whether the switch
interface connected to the specified interface is running the corresponding
protocol and has joined the reserved group.
NOTE
When the destination address is a reserved group address, you must specify the parameter -i.
When the destination is not a reserved group address, you cannot specify the parameter -i.
----End
Context
During multicast service troubleshooting and routine maintenance, run the
mtrace command to collect traffic information, which helps you locate the failure
points and reduce configuration errors. You can also perform tracert tests multiple
times to figure out rates of multicast flows.
Procedure
● Run the mtrace [ -l [ stat-times ] [ -st stat-int ] | -m max-ttl | [ -mr | -ur
resp-dest ] | -q nqueries | -tr ttl | -ts ttl | -v | -vpn-instance vpn-instance-
name | -w timeout ] * source source-address command to trace the reverse
path forwarding (RPF) path from a multicast source to the querier.
----End
Follow-up Procedure
Run the display mtrace statistics command to display statistics about an mtrace
test instance. After multiple MTrace tests are performed, the accumulated
statistics make the analysis result inaccurate. In this case, run the reset mtrace
statistics command to reset MTrace statistics.
Context
After confirming that multicast forwarding entries and routing entries can be
deleted, run the reset commands in the user view to delete the entries.
NOTICE
Procedure
● Run either of the following commands in the user view to delete multicast
forwarding entries:
– reset multicast [ vpn-instance vpn-instance-name | all-instance ]
forwarding-table all
– reset multicast [ vpn-instance vpn-instance-name | all-instance ]
forwarding-table { group-address [ mask { group-mask | group-mask-
length } ] | source-address [ mask { source-mask | source-mask-length } ]
| incoming-interface { interface-type interface-number | register } } *
● Run either of the following commands in the user view to delete multicast
routing entries:
– reset multicast [ vpn-instance vpn-instance-name | all-instance ]
routing-table all
– reset multicast [ vpn-instance vpn-instance-name | all-instance ]
routing-table { group-address [ mask { group-mask | group-mask-
length } ] | source-address [ mask { source-mask | source-mask-length } ]
| incoming-interface { interface-type interface-number | register } } *
----End
Context
During routine maintenance, run the following commands in any view to check
the running status of the multicast forwarding and routing tables.
Procedure
● Run the display multicast [ vpn-instance vpn-instance-name | all-instance ]
boundary [ group-address [ mask | mask-length ] ] [ interface interface-type
interface-number ] command to check the multicast boundary configured on
an interface.
● Run the display multicast[ vpn-instance vpn-instance-name | all-instance ]
forwarding-table [ group-address [ mask { group-mask | group-mask-
length } ] | source-address [ mask { source-mask | source-mask-length } ] |
incoming-interface { interface-type interface-number | register } | outgoing-
interface { include | exclude | match } { interface-type interface-number |
register | none } | { statistics | verbose } ] * command to check the MFIB.
● Run the display multicast routing-table [ vpn-instance vpn-instance-
name ] static [ config ] [ source-address { mask-length | mask } ] command
to check the multicast static routing table.
● Run either of the following commands to check the multicast routing table:
– display multicast { vpn-instance vpn-instance-name | all-instance }
routing-table [ group-address [ mask { group-mask | group-mask-
length } ] | source-address [ mask { source-mask | source-mask-length } ]
| incoming-interface { interface-type interface-number | register } |
outgoing-interface { include | exclude | match } { interface-type
interface-number | register | none } ] * [ outgoing-interface-number
[ number ] ]
● Run the display multicast [ vpn-instance vpn-instance-name | all-instance ]
rpf-info source-address [ group-address ] [ rpt | spt ] command to check the
reverse path forwarding (RPF) route.
----End
Context
If multicast forwarding entries or Multicast Source Discovery Protocol (MSDP)
peer relationships cannot be established on a network, you can configure the
maximum number of invalid multicast protocol packets that the switch can store.
Then check statistics and details about invalid multicast packets for
troubleshooting.
Procedure
Step 1 Run the system-view command to enter the system view.
Step 2 Run the multicast invalid-packet { igmp | msdp | pim } max-count max-number
command to set the maximum number of invalid multicast protocol packets that
the switch can store.
By default, a switch can store a maximum of 10 invalid packets for each multicast
protocol.
NOTE
Only the following versions and products support the mdt keyword.
----End
Networking Requirements
In Figure 9-11, SwitchA, SwitchB, and SwitchC run Open Shortest Path First
(OSPF) to implement IP interworking, and their interfaces use Protocol
Independent Multicast Sparse Mode (PIM-SM) to provide multicast services. Data
sent from the multicast source (Source) is forwarded to the receiver host
(Receiver) through SwitchA and SwitchB. The link between SwitchA and SwitchB
transmits unicast and multicast services simultaneously. To reduce load on this
link, multicast data needs to be transmitted along the path SwitchA → SwitchC →
SwitchB.
NOTE
In this scenario, to avoid loops, ensure that all connected interfaces have STP disabled and
connected interfaces are removed from VLAN 1. If STP is enabled and VLANIF interfaces of
switches are used to construct a Layer 3 ring network, an interface on the network will be
blocked. As a result, Layer 3 services on the network cannot run normally.
GE0/0/3 GE0/0/2
VLANIF30 VLANIF40
10.1.12.2/24 10.1.13.2/24
10.1.12.1/24 10.1.13.1/24
VLANIF30 PIM-SM VLANIF40
GE0/0/3 GE0/0/2
SwitchA SwitchB
GE0/0/1 GE0/0/1
GE0/0/2 VLANIF10 VLANIF10
10.1.9.1/24 10.1.9.2/24 GE0/0/3
VLANIF20 VLANIF50
10.1.8.1/24 10.1.7.1/24
10.1.8.2/24 10.1.7.2/24
Source Receiver
Configuration Roadmap
By configuring a multicast static route, you can change the reverse path
forwarding (RPF) interface used to receive multicast data, so that multicast and
unicast services are transmitted through different links to reduce load on a single
link. The configuration roadmap is as follows:
Procedure
Step 1 Configure IP addresses for interfaces and configure OSPF on each switch. SwitchB
is used as an example in the following operations. Configurations of the other
switches are similar.
# Configure OSPF.
[SwitchB] ospf
[SwitchB-ospf-1] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 10.1.7.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] network 10.1.9.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] network 10.1.13.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] quit
[SwitchB-ospf-1] quit
Step 2 Enable multicast routing on all switches and enable PIM-SM on all Layer 3
interfaces.
# Enable multicast routing globally, PIM-SM on all Layer 3 interfaces, and IGMP
on the interface connected to the network segment of the receiver host. (The
configurations on the other switches are similar to the configuration on SwitchB.)
[SwitchB] multicast routing-enable
[SwitchB] interface vlanif 10
[SwitchB-Vlanif10] pim sm
[SwitchB-Vlanif10] quit
[SwitchB] interface vlanif 40
[SwitchB-Vlanif40] pim sm
[SwitchB-Vlanif40] quit
[SwitchB] interface vlanif 50
[SwitchB-Vlanif50] pim sm
[SwitchB-Vlanif50] igmp enable
[SwitchB-Vlanif50] quit
# Run the display multicast rpf-info command on SwitchB to check the RPF
route to Source. The following command output shows that the RPF route
originates from a unicast routing protocol, and the RPF neighbor is SwitchA.
----End
Configuration Files
● SwitchA configuration file
#
sysname SwitchA
#
vlan batch 10 20 30
#
multicast routing-enable
#
interface Vlanif10
ip address 10.1.9.1 255.255.255.0
pim sm
#
interface Vlanif20
ip address 10.1.8.1 255.255.255.0
pim sm
#
interface Vlanif30
ip address 10.1.12.1 255.255.255.0
pim sm
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 30
#
ospf 1
area 0.0.0.0
network 10.1.8.0 0.0.0.255
network 10.1.9.0 0.0.0.255
network 10.1.12.0 0.0.0.255
#
pim
static-rp 10.1.12.2
#
return
● SwitchB configuration file
#
sysname SwitchB
#
vlan batch 10 40 50
#
multicast routing-enable
#
interface Vlanif10
ip address 10.1.9.2 255.255.255.0
pim sm
#
interface Vlanif40
ip address 10.1.13.1 255.255.255.0
pim sm
#
interface Vlanif50
ip address 10.1.7.1 255.255.255.0
pim sm
igmp enable
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 40
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 50
#
ospf 1
area 0.0.0.0
network 10.1.7.0 0.0.0.255
network 10.1.9.0 0.0.0.255
network 10.1.13.0 0.0.0.255
#
pim
static-rp 10.1.12.2
#
ip rpf-route-static 10.1.8.0 24 10.1.13.2
#
return
● SwitchC configuration file
#
sysname SwitchC
#
vlan batch 30 40
#
multicast routing-enable
#
interface Vlanif30
ip address 10.1.12.2 255.255.255.0
pim sm
#
interface Vlanif40
ip address 10.1.13.2 255.255.255.0
pim sm
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 40
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 30
#
ospf 1
area 0.0.0.0
network 10.1.12.0 0.0.0.255
network 10.1.13.0 0.0.0.255
#
pim
static-rp 10.1.12.2
#
return
Networking Requirements
In Figure 9-12, SwitchB and SwitchC run Open Shortest Path First (OSPF) to
implement IP interworking, but they have no unicast route to SwitchA. Switch
interfaces must run Protocol Independent Multicast Sparse Mode (PIM-SM) to
provide multicast services. The receiver host (Receiver) can receive data from
Source1 and also needs to receive data from Source2.
10.1.3.1/24 10.1.4.1/24
VLANIF13 VLANIF40
GE0/0/2 GE0/0/3 SwitchA
SwitchB
GE0/0/3
GE0/0/1 VLANIF40
PIM-SM 10.1.4.2/24 GE0/0/1
VLANIF20
VLANIF11
10.1.2.2/24
10.1.2.1/24 10.1.5.1/24
VLANIF20
OSPF GE0/0/1
SwitchC
GE0/0/2
VLANIF12
10.1.1.1/24
Source2
10.1.5.2/24
Receiver
Configuration Roadmap
An RPF route to Source2 can be established on the path SwitchC → SwitchB →
SwitchA by configuring multicast static routes on SwitchB and SwitchC. The
configuration roadmap is as follows:
Procedure
Step 1 Configure IP addresses for interfaces and configure OSPF on each switch. SwitchB
is used as an example in the following operations. Configurations of the other
switches are similar.
# Create VLANs and add Layer 2 physical interfaces to the VLANs on the switches.
<HUAWEI> system-view
[HUAWEI] sysname SwitchB
[SwitchB] vlan batch 13 20 40
[SwitchB] interface gigabitethernet0/0/1
[SwitchB-GigabitEthernet0/0/1] port link-type trunk
[SwitchB-GigabitEthernet0/0/1] port trunk allow-pass vlan 20
[SwitchB-GigabitEthernet0/0/1] quit
[SwitchB] interface gigabitethernet0/0/2
[SwitchB-GigabitEthernet0/0/2] port link-type trunk
[SwitchB-GigabitEthernet0/0/2] port trunk allow-pass vlan 13
[SwitchB-GigabitEthernet0/0/2] quit
[SwitchB] interface gigabitethernet0/0/3
[SwitchB-GigabitEthernet0/0/3] port link-type trunk
[SwitchB-GigabitEthernet0/0/3] port trunk allow-pass vlan 40
[SwitchB-GigabitEthernet0/0/3] quit
# Configure IP addresses and masks for Layer 3 VLANIF interfaces on the switches.
[SwitchB] interface vlanif 13
[SwitchB-Vlanif13] ip address 10.1.3.1 24
[SwitchB-Vlanif13] quit
[SwitchB] interface vlanif 20
[SwitchB-Vlanif20] ip address 10.1.2.2 24
[SwitchB-Vlanif20] quit
[SwitchB] interface vlanif 40
[SwitchB-Vlanif40] ip address 10.1.4.1 24
[SwitchB-Vlanif40] quit
Step 2 Enable multicast routing on all switches and enable PIM-SM on all Layer 3
interfaces.
# Enable multicast routing globally, PIM-SM on all Layer 3 interfaces, and IGMP
on the interface connected to the network segment of the receiver host.
Configure SwitchA.
[SwitchA] multicast routing-enable
[SwitchA] interface vlanif11
[SwitchA-Vlanif11] pim sm
[SwitchA-Vlanif11] quit
[SwitchA] interface vlanif 40
[SwitchA-Vlanif40] pim sm
[SwitchA-Vlanif40] quit
Configure SwitchB.
[SwitchB] multicast routing-enable
[SwitchB] interface vlanif 20
[SwitchB-Vlanif20] pim sm
[SwitchB-Vlanif20] quit
[SwitchB] interface vlanif 13
[SwitchB-Vlanif13] pim sm
[SwitchB-Vlanif13] quit
[SwitchB] interface vlanif 40
[SwitchB-Vlanif40] pim sm
[SwitchB-Vlanif40] quit
Configure SwitchC.
[SwitchC] multicast routing-enable
[SwitchC] interface vlanif 20
[SwitchC-Vlanif20] pim sm
[SwitchC-Vlanif20] quit
[SwitchC] interface vlanif 12
[SwitchC-Vlanif12] pim sm
[SwitchC-Vlanif12] igmp enable
[SwitchC-Vlanif12] quit
# Run the display pim routing-table command on SwitchC to check the PIM
routing table. SwitchC has multicast entries for Source2, indicating that Receiver
can now receive multicast data from Source2.
[SwitchC] display pim routing-table
VPN-Instance: public net
Total 1 (*, G) entry; 2 (S, G) entries
(*, 225.1.1.1)
RP: 10.1.2.2
Protocol: pim-sm, Flag: WC
UpTime: 03:54:19
Upstream interface: Vlanif20
Upstream neighbor: 10.1.2.2
RPF prime neighbor: 10.1.2.2
Downstream interface(s) information:
Total number of downstreams: 1
1: Vlanif12
Protocol: igmp, UpTime: 01:38:19, Expires: -
(10.1.3.2, 225.1.1.1)
RP: 10.1.2.2
Protocol: pim-sm, Flag: SPT ACT
UpTime: 00:00:44
Upstream interface: Vlanif20
Upstream neighbor: 10.1.2.2
RPF prime neighbor: 10.1.2.2
Downstream interface(s) information:
Total number of downstreams: 1
1: Vlanif12
Protocol: pim-sm, UpTime: 00:00:44, Expires: -
(10.1.5.2, 225.1.1.1)
RP: 10.1.2.2
Protocol: pim-sm, Flag: SPT ACT
UpTime: 00:00:44
Upstream interface: Vlanif20
Upstream neighbor: 10.1.2.2
RPF prime neighbor: 10.1.2.2
Downstream interface(s) information:
Total number of downstreams: 1
1: Vlanif12
Protocol: pim-sm, UpTime: 00:00:44, Expires: -
----End
Configuration Files
● SwitchA configuration file
#
sysname SwitchA
#
vlan batch 11 40
#
multicast routing-enable
#
interface Vlanif11
ip address 10.1.5.1 255.255.255.0
pim sm
#
interface Vlanif40
ip address 10.1.4.2 255.255.255.0
pim sm
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 11
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 40
#
pim
static-rp 10.1.2.2
#
ip route-static 10.1.2.2 255.255.255.255 10.1.4.1
#
return
● SwitchB configuration file
#
sysname SwitchB
#
vlan batch 13 20 40
#
multicast routing-enable
#
interface Vlanif13
ip address 10.1.3.1 255.255.255.0
pim sm
#
interface Vlanif20
ip address 10.1.2.2 255.255.255.0
pim sm
#
interface Vlanif40
ip address 10.1.4.1 255.255.255.0
pim sm
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 13
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 40
#
ospf 1
area 0.0.0.0
network 10.1.2.0 0.0.0.255
network 10.1.3.0 0.0.0.255
#
pim
static-rp 10.1.2.2
#
ip rpf-route-static 10.1.5.0 24 10.1.4.2
#
return
● SwitchC configuration file
#
sysname SwitchC
#
vlan batch 12 20
#
multicast routing-enable
#
interface Vlanif12
ip address 10.1.1.1 255.255.255.0
pim sm
igmp enable
#
interface Vlanif20
ip address 10.1.2.1 255.255.255.0
pim sm
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 12
#
ospf 1
area 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.1.2.0 0.0.0.255
#
pim
static-rp 10.1.2.2
#
ip rpf-route-static 10.1.5.0 24 10.1.2.2
#
return
Networking Requirements
In Figure 9-13, SwitchE connects to HostA and has three equal-cost routes to the
multicast source (Source). According to the default reverse path forwarding (RPF)
check policy, SwitchE will select one of these equal-cost routes to transmit
multicast data. When the rate of multicast traffic is high, the network will become
congested, lowering the quality of multicast services. To ensure the quality of
multicast services, multicast load splitting needs to be configured so that multicast
data can be transmitted through multiple equal-cost routes.
NOTE
In this scenario, to avoid loops, ensure that all connected interfaces have STP disabled and
connected interfaces are removed from VLAN 1. If STP is enabled and VLANIF interfaces of
switches are used to construct a Layer 3 ring network, an interface on the network will be
blocked. As a result, Layer 3 services on the network cannot run normally.
Source
24 19
.2/ V 2.16
6 8.1 IF201 GELANI 8.4.1
2.1 AN 0/ 0/0 F6 /2
19 VL GE0/ /2 0 4
SwitchB
4 19
1/2 2.1
8 .1. 68
6 VL .4.2
2.1 20 PIM-SM
19 NIF 1 GE ANIF /24
A 0/0 60
10.110.1.2/24 VL 0/0/ /1
VLANIF10 GE 192.168.2.1/24 SwitchC
192.168.5.2/24
GE0/0/4 SwitchE
VLANIF30 VLANIF80
GE0/0/2 GE0/0/2
SwitchA
GE0/0/1 GE0/0/2
VLANIF30 VLANIF80 GE0/0/4
GE 3
0 192.168.2.2/24 192.168.5.1/24 /0/00 10.110.2.2/24
VL /0/3 0
GE IF1 4 VLANIF140
19 ANI AN 2/2
2.1 F4 V 8.6.
L
68 0 6
.3. 2 .1
1/2 19
Loopback0 4
GE /2 00 24
10.1.1.1/32 19 0
2.1 VLAN /0/1 0/0 IF1 /
68 GE LAN 8.6.1
.3. IF40 V .16
2/2 2
4 19
SwitchD
HostA
Configuration Roadmap
The configuration roadmap is as follows:
1. Configure IP addresses for interfaces on the switches.
2. Configure a unicast routing protocol, Intermediate System-Intermediate
System (IS-IS) in this example, to implement interworking among all switches
and ensure that route costs are the same.
3. Enable multicast routing on all switches and enable PIM-SM on all Layer 3
interfaces. Configure the loopback interface on SwitchA as a candidate
bootstrap router (C-BSR) and candidate rendezvous point (C-RP).
4. On SwitchE, configure stable-preferred multicast load splitting to ensure
stable transmission of multicast services.
5. On SwitchE, configure static multicast groups on the interface connected to
the network segment of HostA, because HostA needs to receive data of these
groups for a long time.
6. On SwitchE, configure different multicast load splitting weights for the
interfaces connected to the upstream switches to implement unbalanced load
splitting, because HostA needs to receive multicast data of new groups.
Procedure
Step 1 Configure IP addresses for interfaces on the switches. SwitchA is used as an
example in the following operations. Configurations of the other switches are
similar.
# Create VLANs and add Layer 2 physical interfaces to the VLANs.
<HUAWEI> system-view
[HUAWEI] sysname SwitchA
[SwitchA] vlan batch 10 20 30 40
[SwitchA] interface gigabitethernet0/0/4
[SwitchA-GigabitEthernet0/0/4] port link-type trunk
[SwitchA-GigabitEthernet0/0/4] port trunk allow-pass vlan 10
[SwitchA-GigabitEthernet0/0/4] quit
[SwitchA] interface gigabitethernet0/0/1
[SwitchA-GigabitEthernet0/0/1] port link-type trunk
[SwitchA-GigabitEthernet0/0/1] port trunk allow-pass vlan 20
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet0/0/2
[SwitchA-GigabitEthernet0/0/2] port link-type trunk
[SwitchA-GigabitEthernet0/0/2] port trunk allow-pass vlan 30
[SwitchA-GigabitEthernet0/0/2] quit
[SwitchA] interface gigabitethernet0/0/3
[SwitchA-GigabitEthernet0/0/3] port link-type trunk
[SwitchA-GigabitEthernet0/0/3] port trunk allow-pass vlan 40
[SwitchA-GigabitEthernet0/0/3] quit
Step 2 Configure IS-IS to implement interworking among all switches and ensure that
route costs are the same (SwitchA as an example).
[SwitchA] isis 1
[SwitchA-isis-1] network-entity 10.0000.0000.0001.00
[SwitchA-isis-1] quit
[SwitchA] interface vlanif 10
[SwitchA-Vlanif10] isis enable 1
[SwitchA-Vlanif10] quit
[SwitchA] interface vlanif 20
[SwitchA-Vlanif20] isis enable 1
[SwitchA-Vlanif20] quit
[SwitchA] interface vlanif 30
[SwitchA-Vlanif30] isis enable 1
[SwitchA-Vlanif30] quit
[SwitchA] interface vlanif 40
[SwitchA-Vlanif40] isis enable 1
[SwitchA-Vlanif40] quit
[SwitchA] interface loopback0
[SwitchA-LoopBack0] isis enable 1
[SwitchA-LoopBack0] quit
Step 3 Enable multicast routing on all switches and enable Protocol Independent
Multicast Sparse Mode (PIM-SM) on all Layer 3 interfaces (SwitchA as an
example).
[SwitchA] multicast routing-enable
[SwitchA] interface vlanif 10
[SwitchA-Vlanif10] pim sm
[SwitchA-Vlanif10] quit
[SwitchA] interface vlanif 20
[SwitchA-Vlanif20] pim sm
[SwitchA-Vlanif20] quit
[SwitchA] interface vlanif 30
[SwitchA-Vlanif30] pim sm
[SwitchA-Vlanif30] quit
[SwitchA] interface vlanif 40
[SwitchA-Vlanif40] pim sm
[SwitchA-Vlanif40] quit
[SwitchA] interface loopback 0
[SwitchA-LoopBack0] pim sm
[SwitchA-LoopBack0] quit
Step 6 Configure static multicast groups on the interface of SwitchE connected to the
network segment of HostA.
# Configure static multicast groups 225.1.1.1 to 225.1.1.3 on VLANIF 140.
[SwitchE] interface Vlanif140
[SwitchE-Vlanif140] igmp static-group 225.1.1.1 inc-step-mask 32 number 3
[SwitchE-Vlanif140] quit
00001.(*, 225.1.1.1)
Upstream interface:Vlanif100
Number of downstream:1
00002.(10.110.1.1, 225.1.1.1)
Upstream interface:Vlanif100
Number of downstream:1
00003.(*, 225.1.1.2)
Upstream interface:Vlanif80
Number of downstream:1
00004.(10.110.1.1, 225.1.1.2)
Upstream interface:Vlanif80
Number of downstream:1
00005.(*, 225.1.1.3)
Upstream interface:Vlanif60
Number of downstream:1
00006.(10.110.1.1, 225.1.1.3)
Upstream interface:Vlanif60
Number of downstream:1
(*, G) and (S, G) entries are evenly distributed on the three equal-cost routes. The
upstream interfaces of the routes are VLANIF 100, VLANIF 80, and VLANIF 60,
respectively.
NOTE
The load splitting algorithm processes (*, G) and (S, G) entries separately using the same
rule.
Step 8 Set different multicast load splitting weights for upstream interfaces of SwitchE to
implement uneven multicast load splitting.
# Set the multicast load splitting weight of VLANIF 60 to 3.
[SwitchE] interface Vlanif60
[SwitchE-Vlanif60] multicast load-splitting weight 3
[SwitchE-Vlanif60] quit
Step 9 Configure new static multicast groups on the interface of SwitchE connected to
the network segment of HostA.
# Configure static multicast groups 225.1.1.4 to 225.1.1.6 on VLANIF 140.
[SwitchE] interface Vlanif140
[SwitchE-Vlanif140] igmp static-group 225.1.1.4 inc-step-mask 32 number 3
[SwitchE-Vlanif140] quit
00001.(*, 225.1.1.1)
Upstream interface:Vlanif60
Number of downstream:1
00002.(10.110.1.1, 225.1.1.1)
Upstream interface:Vlanif60
Number of downstream:1
00003.(*, 225.1.1.2)
Upstream interface:Vlanif80
Number of downstream:1
00004.(10.110.1.1, 225.1.1.2)
Upstream interface:Vlanif80
Number of downstream:1
00005.(*, 225.1.1.3)
Upstream interface:Vlanif100
Number of downstream:1
00006.(10.110.1.1, 225.1.1.3)
Upstream interface:Vlanif100
Number of downstream:1
00007.(*, 225.1.1.4)
Upstream interface:Vlanif60
Number of downstream:1
00008.(10.110.1.1, 225.1.1.4)
Upstream interface:Vlanif60
Number of downstream:1
00009.(*, 225.1.1.5)
Upstream interface:Vlanif60
Number of downstream:1
00010.(10.110.1.1, 225.1.1.5)
Upstream interface:Vlanif60
Number of downstream:1
00011.(*, 225.1.1.6)
Upstream interface:Vlanif80
Number of downstream:1
00012.(10.110.1.1, 225.1.1.6)
Upstream interface:Vlanif80
Number of downstream:1
The upstream interfaces of existing (*, G) and (S, G) entries remain unchanged.
VLANIF 60 has a larger multicast load splitting weight (3) than VLANIF 80 (2).
Therefore, more new (*, G) and (S, G) entries are distributed to the route with
VLANIF 60 as the upstream interface. The multicast load splitting weight of
VLANIF 100 is 1 (default value), smaller than the weights of VLANIF60 and
VLANIF80. Therefore, the route with VLANIF 100 as the upstream interface does
not have new entries.
----End
Configuration Files
● SwitchA configuration file
#
sysname SwitchA
#
vlan batch 10 20 30 40
#
multicast routing-enable
#
isis 1
network-entity 10.0000.0000.0001.00
#
interface Vlanif10
ip address 10.110.1.2 255.255.255.0
isis enable 1
pim sm
#
interface Vlanif20
ip address 192.168.1.1 255.255.255.0
isis enable 1
pim sm
#
interface Vlanif30
ip address 192.168.2.1 255.255.255.0
isis enable 1
pim sm
#
interface Vlanif40
ip address 192.168.3.1 255.255.255.0
isis enable 1
pim sm
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 30
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 40
#
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 10
#
interface LoopBack0
ip address 10.1.1.1 255.255.255.255
isis enable 1
pim sm
#
pim
static-rp 10.1.1.1
#
return
● SwitchB configuration file
#
sysname SwitchB
#
vlan batch 20 60
#
multicast routing-enable
#
isis 1
network-entity 10.0000.0000.0002.00
#
interface Vlanif20
ip address 192.168.1.2 255.255.255.0
isis enable 1
pim sm
#
interface Vlanif60
ip address 192.168.4.1 255.255.255.0
isis enable 1
pim sm
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 60
#
pim
static-rp 10.1.1.1
#
return
● SwitchC configuration file
#
sysname SwitchC
#
vlan batch 30 80
#
multicast routing-enable
#
isis 1
network-entity 10.0000.0000.0003.00
#
interface Vlanif30
ip address 192.168.2.2 255.255.255.0
isis enable 1
pim sm
#
interface Vlanif80
ip address 192.168.5.1 255.255.255.0
isis enable 1
pim sm
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 30
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 80
#
pim
static-rp 10.1.1.1
#
return
● SwitchD configuration file
#
sysname SwitchD
#
vlan batch 40 100
#
multicast routing-enable
#
isis 1
network-entity 10.0000.0000.0004.00
#
interface Vlanif40
ip address 192.168.3.2 255.255.255.0
isis enable 1
pim sm
#
interface Vlanif100
ip address 192.168.6.1 255.255.255.0
isis enable 1
pim sm
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 40
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 100
#
pim
static-rp 10.1.1.1
#
return
● SwitchE configuration file
#
sysname SwitchE
#
vlan batch 60 80 100 140
#
multicast routing-enable
multicast load-splitting stable-preferred
#
isis 1
network-entity 10.0000.0000.0005.00
#
interface Vlanif60
ip address 192.168.4.2 255.255.255.0
isis enable 1
pim sm
multicast load-splitting weight 3
#
interface Vlanif80
ip address 192.168.5.2 255.255.255.0
isis enable 1
pim sm
multicast load-splitting weight 2
#
interface Vlanif100
ip address 192.168.6.2 255.255.255.0
isis enable 1
pim sm
#
interface Vlanif140
ip address 10.110.2.2 255.255.255.0
isis enable 1
pim sm
igmp static-group 225.1.1.1 inc-step-mask 0.0.0.1 number 3
igmp static-group 225.1.1.4 inc-step-mask 0.0.0.1 number 3
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 60
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 80
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 100
#
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 140
#
pim
static-rp 10.1.1.1
#
return
Fault Description
A device does not run any dynamic routing protocols, and a multicast static route
is configured on the device. Multicast data cannot be forwarded to user hosts
through this multicast static route even though the physical status and link-layer
protocol status of the interface are both Up.
Procedure
Step 1 Check whether the multicast static route is configured correctly and has been
added to the multicast routing table.
Run the display multicast routing-table static command to check whether the
multicast static route is configured correctly.
If the multicast static route is not configured correctly or does not match the
network topology because the topology has changed, the multicast routing table
will not contain the routing entry or configuration of the multicast static route. In
this case, run the ip rpf-route-static command to configure a multicast static
route that matches the current network topology.
Step 2 Check whether the multicast static route has been added to the routing table of
the specified routing protocol.
If a routing protocol has been specified for the multicast static route, run the
display ip routing-table command to check whether this route has been added
to the routing table of the protocol. If not, configure a matching unicast route for
the routing protocol.
Step 3 Check whether the multicast static route matches the specified routing policy.
If a routing protocol has been specified for the multicast static route, run the
display route-policy command to check whether the source address of the
multicast static route matches the routing policy. If not, run the route-policy
command to change the matching rule of the routing policy. Ensure that the
multicast static route matches the routing policy and can be added to the routing
table.
----End
Fault Description
After multicast routing configuration is complete, Protocol Independent Multicast
(PIM) routing entries are created. However, the upstream interface in multicast
forwarding entries is incorrect, and multicast data cannot be sent to user network
segments.
Procedure
Step 1 Run the display multicast forwarding-table command to check whether the
upstream interface in multicast forwarding entries is a loopback interface.
If the upstream interface is a loopback interface, a possible reason is that the
source IP address of multicast data packets is the same as a VLANIF interface
address on the device. In this case, change the multicast source address or the
VLANIF interface address. Ensure that the two IP addresses are different but
remain on the same network segment.
----End