10G Core Routing Switch User Manual
陈泽科技有限公司
- - 65 - -
www.stephen-tele.com
Configuring a Host Statically to Join a Group
Hosts or Layer 2 ports normally join multicast groups dynamically, but you can also statically configure a host on an
interface. Beginning in privileged EXEC mode, follow these steps to add a Layer 2 port as a member of a multicast
group:
Command
Purpose
Step 1
config terminal
Enter global configuration mode.
Step 2
igmp-snooping
static
vlan
vlan-id
ip-address
interface
interface-id
Statically configure a Layer 2 port as a member of a
multicast group:
•
vlan-id
is the multicast group VLAN ID.
•
ip-address
is the group IP address.
•
interface-id
is the member port. It can be a physical
interface or port channel (1 to 12).
Step 3
show igmp-snooping
Verify your entries.
configuration
Step 4
Copy
running-config
startup-config
(Optional) Save your entries in the configuration file.
To remove the Layer 2 port from the multicast group, use the
no
igmp-snooping static vlan
vlan-id
ip-address
interface
interface-id
global configuration command.
Enabling IGMP Immediate Leave
When you enable IGMP Immediate Leave, the switch immediately removes a port when it detects an IGMP Version 2
leave message on that port. You should only use the Immediate-Leave feature when there is a single receiver present.
Beginning in privileged EXEC mode, follow these steps to enable IGMP Immediate Leave:
Command
Purpose
Step 1
config terminal
Enter global configuration mode.
Step 2
igmp-snooping
immediate-leave enable
Enable IGMP Immediate Leave
Step 3
show
igmp-snooping
configuration
Verify your entries.
Step 4
Copy
running-config
startup-config
(Optional) Save your entries in the configuration file.
To disable IGMP Immediate Leave, use the
no igmp-snooping immediate-leave
global configuration command.
This example shows how to enable IGMP Immediate Leave:
Switch#
configure terminal
Switch(config)#
igmp-snooping immediate-leave