Page 2
SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V G, V G, PSPT, XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co., Ltd. All other trademarks that may be mentioned in this manual are the property of their respective owners.
Page 3
Preface The H3C S5120-EI documentation set includes 10 command references, which describe the commands and command syntax options for the S5120-EI Release 2202. The IP Multicast Command Reference describes multicast configuration commands. It covers the commands for configuring IPv4 multicast and IPv6 multicast. With these multicast configuration commands, you can implement efficient point-to-multipoint data transmission in your network.
Page 4
Means reader be careful. Improper operation may cause data loss or damage to equipment. Means a complementary description. About the H3C S5120-EI Documentation Set The H3C S5120-EI documentation set also includes: Category Documents Purposes Marketing brochures Describe product specifications and benefits.
Page 5
Obtaining Documentation You can access the most up-to-date H3C product documentation on the World Wide Web at http://www.h3c.com. Click the links on the top navigation bar to obtain different categories of product documentation: [Technical Support &...
IGMP Snooping Configuration Commands IGMP Snooping Configuration Commands display igmp-snooping group Syntax display igmp-snooping group [ vlan vlan-id ] [ slot slot-number ] [ verbose ] View Any view Default Level 1: Monitor level Parameters vlan vlan-id: Displays the IGMP Snooping multicast group information in the specified VLAN, where vlan-id is in the range of 1 to 4094.
IP group address:224.1.1.1 (0.0.0.0, 224.1.1.1): Attribute: Host Port Host port(s):total 1 port. GE1/0/2 (D) ( 00:03:23 ) MAC group(s): MAC group address:0100-5e01-0101 Host port(s):total 1 port. GE1/0/2 Table 1-1 display igmp-snooping group command output description Field Description Total 1 IP Group(s). Total number of IP multicast groups Total 1 IP Source(s).
Description Use the display igmp-snooping statistics command to view the statistics information of IGMP messages learned by IGMP Snooping. Examples # View the statistics information of IGMP messages learned by IGMP Snooping. <Sysname> display igmp-snooping statistics Received IGMP general queries:0. Received IGMPv1 reports:0.
Parameters vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID.
Description Use the group-policy command to configure a global multicast group filter, namely to control the multicast groups a host can join. Use the undo group-policy command to remove the configured global multicast group filter. By default, no global multicast group filter is configured, namely a host can join any valid multicast group.
<Sysname> system-view [Sysname] igmp-snooping [Sysname-igmp-snooping] host-aging-time 300 igmp-snooping Syntax igmp-snooping undo igmp-snooping View System view Default Level 2: System level Parameters None Description Use the igmp-snooping command to enable IGMP Snooping globally and enter IGMP-Snooping view. Use the undo igmp-snooping command to disable IGMP Snooping globally. By default, IGMP Snooping is disabled.
By default, this function is disabled, that is, unknown multicast data is flooded. This command takes effect only if IGMP Snooping is enabled in the VLAN. Examples # In VLAN 2, enable the function of dropping unknown multicast data. <Sysname> system-view [Sysname] vlan 2 [Sysname-vlan2] igmp-snooping drop-unknown igmp-snooping enable...
Parameters vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID.
Description Use the igmp-snooping general-query source-ip command to configure the source address of IGMP general queries. Use the undo igmp-snooping general-query source-ip command to restore the default configuration. By default, the source IP address of IGMP general queries is 0.0.0.0. This command takes effect only if IGMP Snooping is enabled in the VLAN.
Examples # Specify to allow a maximum of 10 multicast groups to be joined on GigabitEthernet1/0/1 in VLAN 2. <Sysname> system-view [Sysname] interface gigabitethernet1/0/1 [Sysname-GigabitEthernet1/0/1] igmp-snooping group-limit 10 vlan 2 igmp-snooping group-policy Syntax igmp-snooping group-policy acl-number [ vlan vlan-list ] undo igmp-snooping group-policy [ vlan vlan-list ] View Ethernet port view, Layer 2 aggregate port view, port group view...
Default Level 2: System level Parameters group-address: Address of the multicast group that the simulated host is to join, in the range of 224.0.1.0 to 239.255.255.255. source-address: Address of the multicast source that the simulated host is to join. The value of this argument should be a valid unicast address or 0.0.0.0.
View VLAN view Default Level 2: System level Parameters interval: Interval between IGMP last-member queries, in seconds. The effective range is 1 to 5. Description Use the igmp-snooping last-member-query-interval command to configure the interval between IGMP last-member queries in the VLAN. Use the undo igmp-snooping last-member-query-interval command to restore the default setting.
undo igmp-snooping querier View VLAN view Default Level 2: System level Parameters None Description Use the igmp-snooping querier command to enable the IGMP Snooping querier function. Use the undo igmp-snooping querier command to disable the IGMP Snooping querier function. By default, the IGMP Snooping querier function is disabled. Note that: This command takes effect only if IGMP Snooping is enabled in the VLAN.
Parameters None Description Use the igmp-snooping source-deny command to enable multicast source port filtering. Use the undo igmp-snooping source-deny command to disable multicast source port filtering. By default, multicast source port filtering is disabled. This command works on IGMP Snooping–enabled VLANs. Examples # Enable source port filtering for multicast data on GigabitEthernet1/0/1.
igmp-snooping static-group Syntax igmp-snooping static-group group-address [ source-ip source-address ] vlan vlan-id undo igmp-snooping static-group group-address [ source-ip source-address ] vlan vlan-id View Ethernet port view, Layer 2 aggregate port view, port group view Default Level 2: System level Parameters group-address: Address of the multicast group to be statically joined, in the range of 224.0.0.0 to 239.255.255.255.
igmp-snooping static-router-port Syntax igmp-snooping static-router-port vlan vlan-id undo igmp-snooping static-router-port vlan vlan-id View Ethernet port view, Layer 2 aggregate port view, port group view Default Level 2: System level Parameters vlan vlan-id: Specifies a VLAN in which one or more static router ports are to be configured, where vlan-id is in the range of 1 to 4094.
Parameters version-number: IGMP snooping version, in the range of 2 to 3. Description Use the igmp-snooping version command to configure the IGMP Snooping version. Use the undo igmp-snooping version command to restore the default setting. By default, the IGMP Snooping version is 2. Note that: This command can take effect only if IGMP Snooping is enabled in the VLAN.
[Sysname] igmp-snooping [Sysname-igmp-snooping] last-member-query-interval 3 max-response-time (IGMP-Snooping view) Syntax max-response-time interval undo max-response-time View IGMP-Snooping view Default Level 2: System level Parameters interval: Maximum response time to IGMP general queries, in seconds. The effective range is 1 to 25. Description Use the max-response-time command to configure the maximum response time to IGMP general queries globally.
Use the undo overflow-replace command to disable the multicast group replacement function globally. By default, the multicast group replacement function is disabled. Note that: This command works on IGMP Snooping–enabled VLANs. If you do not specify any VLAN, the command will take effect for all VLANs; if you specify a VLAN or multiple VLANs, the command will take effect for the specified VLAN(s) only.
Default Level 2: System level Parameters group-address: Specifies an IGMP snooping group. The value range of group-address is 224.0.1.0 to 239.255.255.255. all: Specifies all IGMP snooping groups. vlan vlan-id: Specifies a VLAN. The effective range of vlan-id is 1 to 4094. Description Use the reset igmp-snooping group command to remove the dynamic group entries of a specific IGMP snooping group or all IGMP snooping groups.
Default Level 2: System level Parameters interval: Dynamic router port aging time, in seconds. The effective range is 1 to 1,000. Description Use the router-aging-time command to configure the aging time of dynamic router ports globally. Use the undo router-aging-time command to restore the default setting. By default, the aging time of dynamic router ports is 105 seconds.
Page 32
[Sysname-igmp-snooping] source-deny port gigabitethernet1/0/1 to gigabitethernet1/0/4 1-25...
Multicast VLAN Configuration Commands Multicast VLAN Configuration Commands display multicast-vlan Syntax display multicast-vlan [ vlan-id ] View Any view Default Level 1: Monitor level Parameters vlan-id: VLAN ID of a multicast VLAN, in the range of 1 to 4094. If this argument is not provided, the information about all multicast VLANs will be displayed.
multicast-vlan Syntax multicast-vlan vlan-id undo multicast-vlan { all | vlan-id } View System view Default Level 2: System level Parameters vlan-id: Specifies a VLAN by its ID, in the range of 1 to 4094. all: Deletes all multicast VLANs. Description Use the multicast-vlan command to configure the specified VLAN as a multicast VLAN and enter multicast VLAN view.
View Multicast VLAN view Default Level 2: System level Parameters interface-list: Specifies a port in the form of interface-type interface-number, or a port range in the form of interface-type start-interface-number to interface-type end-interface-number, where the end interface number must be greater than the start interface number. all: Deletes all the ports in the current multicast VLAN.
Note that a port can belong to only one multicast VLAN. Examples # Assign GigabitEthernet1/0/1 to multicast VLAN 100. <Sysname> system-view [Sysname] interface gigabitethernet1/0/1 [Sysname- gigabitethernet1/0/1] port multicast-vlan 100 subvlan (multicast VLAN view) Syntax subvlan vlan-list undo subvlan { all | vlan-list } View Multicast VLAN view Default Level...
MLD Snooping Configuration Commands MLD Snooping Configuration Commands display mld-snooping group Syntax display mld-snooping group [ vlan vlan-id ] [ slot slot-number ] [ verbose ] View Any view Default Level 1: Monitor level Parameters vlan vlan-id: Displays the MLD Snooping multicast group information in the specified VLAN, where vlan-id is in the range of 1 to 4094.
IP group(s):the following ip group(s) match to one mac group. IP group address:FF1E::101 (::, FF1E::101): Attribute: Host Port Host port(s):total 1 port. GE1/0/2 (D) ( 00:03:23 ) MAC group(s): MAC group address:3333-0000-0101 Host port(s):total 1 port. GE1/0/2 Table 3-1 display mld-snooping group command output description Field Description Total 1 IP Group(s).
Parameters None Description Use the display mld-snooping statistics command to view the statistics information of MLD messages learned by MLD Snooping. Examples # View the statistics information of all kinds of MLD messages learned by MLD Snooping. <Sysname> display mld-snooping statistics Received MLD general queries:0.
Default Level 2: System level Parameters vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID.
to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094. Description Use the group-policy command to configure a global IPv6 multicast group filter, namely to control the IPv6 multicast groups a host can join.
This command works on MLD Snooping–enabled VLANs Related commands: mld-snooping host-aging-time. Examples # Set the aging time of dynamic member ports globally to 300 seconds. <Sysname> system-view [Sysname] mld-snooping [Sysname-mld-snooping] host-aging-time 300 last-listener-query-interval (MLD-Snooping view) Syntax last-listener-query-interval interval undo last-listener-query-interval View MLD-Snooping view Default Level...
Default Level 2: System level Parameters interval: Maximum response time for MLD general queries, in units of seconds. The effective range is 1 to 25. Description Use the max-response-time command to configure the maximum response time for MLD general queries globally. Use the undo max-response-time command to restore the system default.
mld-snooping enable Syntax mld-snooping enable undo mld-snooping enable View VLAN view Default Level 2: System level Parameters None Description Use the mld-snooping enable command to enable MLD Snooping in the current VLAN. Use the undo mld-snooping enable command to disable MLD Snooping in the current VLAN. By default, MLD Snooping is disabled in a VLAN.
Description Use the mld-snooping fast-leave command to enable fast leave processing on the current port or group of ports. With this function enabled, when the switch receives an MLD leave message on a port, it directly removes that port from the forwarding table entry for the specific group. Use the undo mld-snooping fast-leave command to disable fast leave processing on the current port or group of ports.
Use the undo mld-snooping general-query source-ip command to restore the default configuration. By default, the source IPv6 address of MLD general queries is FE80::02FF:FFFF:FE00:0001. This command takes effect only if MLD Snooping is enabled in the VLAN. Examples # In VLAN 2, specify FE80:0:0:1::1 as the source IPv6 address of MLD general queries. <Sysname>...
Default Level 2: System level Parameters ipv6-group-address: Address of IPv6 multicast group which the simulated host is to join. The effective range is FFxy::/16 (excluding FFx0::/16, FFx1::/16, FFx2::/16 and FF0y::), where x and y represent any hexadecimal number between 0 and F, inclusive. ipv6-source-address: Address of the IPv6 multicast source that the simulated host is to join.
undo mld-snooping last-listener-query-interval View VLAN view Default Level 2: System level Parameters interval: MLD last listener query interval in units of seconds, namely the length of time the device waits between sending IGMP multicast-address-specific queries. The effective range is 1 to 5. Description Use the mld-snooping last-listener-query-interval command to configure the MLD last-listener query interval in the VLAN.
Examples # Set the maximum response time for MLD general queries to 5 seconds in VLAN 2. <Sysname> system-view [Sysname] vlan 2 [Sysname-vlan2] mld-snooping max-response-time 5 mld-snooping overflow-replace Syntax mld-snooping overflow-replace [ vlan vlan-list ] undo mld-snooping overflow-replace [ vlan vlan-list ] View Ethernet port view, Layer 2 aggregate port view, port group view Default Level...
mld-snooping querier Syntax mld-snooping querier undo mld-snooping querier View VLAN view Default Level 2: System level Parameters None Description Use the mld-snooping querier command to enable the MLD Snooping querier function. Use the undo mld-snooping querier command to disable the MLD Snooping querier function. By default, the MLD Snooping querier function is disabled.
Use the undo mld-snooping query-interval command to restore the system default. By default, the MLD query interval is 125 seconds. This command takes effect only if MLD Snooping is enabled in the VLAN. Related commands: mld-snooping querier, mld-snooping max-response-time, max-response-time. Examples # Set the MLD query interval to 20 seconds in VLAN 2.
Default Level 2: System level Parameters None Description Use the mld-snooping source-deny command to enable IPv6 multicast source port filtering. Use the undo mld-snooping source-deny command to disable IPv6 multicast source port filtering. By default, IPv6 multicast source port filtering is disabled. This command works on MLD Snooping–enabled VLANs.
mld-snooping version Syntax mld-snooping version version-number undo mld-snooping version View VLAN view Default Level 2: System level Parameters version-number: MLD snooping version, in the range of 1 to 2. Description Use the mld-snooping version command to configure the MLD Snooping version. Use the undo mld-snooping version command to restore the default setting.
to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094. Description Use the overflow-replace command to enable the IPv6 multicast group replacement function globally. Use the undo overflow-replace command to disable the IPv6 multicast group replacement function globally.
reset mld-snooping group Syntax reset mld-snooping group { ipv6-group-address | all } [ vlan vlan-id ] View User view Default Level 2: System level Parameters ipv6-group-address: Specifies an IPv6 multicast group. The effective range of ipv6-group-address is FFxy::/16 (excluding FFx0::/16, FFx1::/16, FFx2::/16 and FF0y::), where x and y represent any hexadecimal number between 0 and F, inclusive.
router-aging-time (MLD-Snooping view) Syntax router-aging-time interval undo router-aging-time View MLD-Snooping view Default Level 2: System level Parameters interval: Dynamic router port aging time, in seconds. The effective range is 1 to 1,000. Description Use the router-aging-time command to configure the aging time of dynamic router ports globally. Use the undo router-aging-time command to restore the default setting.
Page 61
By default, IPv6 multicast source port filtering is disabled. This command works on MLD Snooping–enabled VLANs. Examples # Enable source port filtering for IPv6 multicast data on interfaces GigabitEthernet1/0/1 through GigabitEthernet1/0/4. <Sysname> system-view [Sysname] mld-snooping [Sysname-mld-snooping] source-deny port gigabitethernet1/0/1 to gigabitethernet1/0/4 3-25...
IPv6 Multicast VLAN Configuration Commands IPv6 Multicast VLAN Configuration Commands display multicast-vlan ipv6 Syntax display multicast-vlan ipv6 [ vlan-id ] View Any view Default Level 1: Monitor level Parameters vlan-id: VLAN ID of an IPv6 multicast VLAN, in the range of 1 to 4094. If this argument is not provided, the information about all IPv6 multicast VLANs will be displayed.
multicast-vlan ipv6 Syntax multicast-vlan ipv6 vlan-id undo multicast-vlan ipv6 { all | vlan-id } View System view Default Level 2: System level Parameters vlan-id: Specifies a VLAN by its ID, in the range of 1 to 4094. all: Deletes all IPv6 multicast VLANs. Description Use the multicast-vlan ipv6 command to configure the specified VLAN as an IPv6 multicast VLAN and enter IPv6 multicast VLAN view.
View IPv6 multicast VLAN view Default Level 2: System level Parameters interface-list: Specifies a port in the form of interface-type interface-number, or a port range in the form of interface-type start-interface-number to interface-type end-interface-number, where the end interface number must be greater than the start interface number. all: Deletes all the ports in the current IPv6 multicast VLAN.
Index A B C D E F G H I J K L M N O P Q R S T U V W X Y Z igmp-snooping last-member-query-interval 1-12 igmp-snooping max-response-time 1-13 igmp-snooping overflow-replace 1-14 igmp-snooping querier 1-14 igmp-snooping query-interval 1-15 display igmp-snooping group igmp-snooping router-aging-time...
Need help?
Do you have a question about the S5120-EI Series and is the answer not in the manual?
Questions and answers