Specifications
switchport mac
134
switchport mac
Sets the MAC port information.
Syntax
To set information:
switchport mac vlan <VLAN ID list>
switchport mac native vlan
<VLAN ID>
switchport mac dot1q vlan
<VLAN ID list>
To change information:
switchport mac {vlan <VLAN ID list> | vlan add <VLAN ID list> | vlan remove
<VLAN ID list> | native vlan <VLAN ID> }
switchport mac dot1q vlan{
<VLAN ID list> | add <VLAN ID list> | remove
<VLAN ID list>}
To delete information:
no switchport mac vlan
no switchport mac native vlan
no switchport mac dot1q vlan
Input mode
(config-if)
Parameters
vlan <VLAN-ID-list>
Specifies the list of valid MAC VLANs that applies to a switch port. When this
parameter is changed, the effective MAC VLAN list is replaced by the list set for the
parameter.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
For details about how to specify <VLAN ID list> and the specifiable range of
values, see Specifiable values for parameters.
native vlan <VLAN ID>
Sets the VLAN that receives frames that have an unregistered source MAC address.
Frames can also be sent from the specified VLAN. Specifiable VLANs are port
VLANs.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
See Specifiable values for parameters.
dot1q vlan <VLAN ID list>
Sends the frames of the VLANs in the VLAN list set by using this parameter in the
form of tagged frames. In addition, the tagged frames can be forwarded in the VLAN
set by using this parameter. If a tagged frame is received by another VLAN, the
frame is discarded.
Specifiable VLANs are port VLANs or MAC VLANs. A VLAN set by using the