31
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] last-member-query-interval 3
mac-address multicast
Syntax
In system view:
mac-address multicast
mac-address
interface
interface-list
vlan
vlan-id
undo mac-address
[
multicast
] [ [
mac-address
[
interface
interface-list
] ]
vlan
vlan-id
]
In Ethernet interface view or Layer 2 aggregate interface view:
mac-address multicast
mac-address
vlan
vlan-id
undo mac-address
[
multicast
]
mac-address
vlan
vlan-id
View
System view, Ethernet interface view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
mac-address
: Specifies a static multicast MAC address, which can be any multicast MAC address except
0100-5Exx-xxxx and 3333-xxxx-xxxx, where x represents an arbitrary hexadecimal number from 0 to F.
A multicast MAC address is a MAC address whose the least significant bit of the most significant octet
is 1. The system gives a prompt if the configured static multicast MAC address conflicts with the MAC
address of other protocols.
interface-list
: Specifies a list of interfaces. You can specify up to
n
single interfaces, interface ranges, or
combinations of both for the list. A single interface takes the form of
interface-type interface-number
. An
interface range takes the form of
interface-type interface-number
to
interface-type interface-number
,
where the end interface number must be greater than the start interface number.
vlan
vlan-id
: Specifies the VLAN to which the interface belongs.
vlan-id
is in the range of 1 to 4094. The
specified VLAN must exist and the system gives a prompt if the specified interface does not belong to the
VLAN.
Description
Use
mac-address multicast
to configure a static multicast MAC address entry.
Use
undo mac-address multicast
to delete a static multicast MAC address entry.
By default, no static multicast MAC address entry is configured.
If
multicast
is not specified when using the
undo mac-address multicast
command, all MAC address
entries (including static multicast MAC address entries and unicast MAC address entries) are deleted.
Related commands:
display mac-address multicast
;
mac-address
(
Layer 2—LAN Switching Command
Reference
)
.
Examples
# Configure a static multicast MAC address entry with the MAC address of 0100-0001-0001 and
outgoing interfaces GigabitEthernet 1/0/1 through GigabitEthernet 1/0/5 in VLAN 2.
<Sysname> system-view