switchport mac
Sets the MAC port information.
Input format
To set information:
swtichport mac vlan
swtichport mac native vlan
switchport mac dot1q vlan
To change information:
switchport mac {vlan
<VLAN ID list>
switchport mac dot1q 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>
Sets the effective MAC VLANs on the port. When this parameter is changed, the
effective MAC VLAN list is replaced by the list set for the parameter.
1.
2.
native vlan
Sets the VLAN that receives frames that have an unregistered source MAC address.
Frames can also be sent from the VLAN that is set. Specifiable VLANs are port
VLANs.
1.
2.
dot1q vlan
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.
<VLAN ID list>
<VLAN ID list>
| native vlan
Default value when this parameter is omitted:
This parameter cannot be omitted.
Range of values:
For details about how to set
Specifiable values for parameters.
<VLAN ID>
Default value when this parameter is omitted:
This parameter cannot be omitted.
Range of values:
See Specifiable values for parameters.
<VLAN ID list>
<VLAN ID>
<VLAN ID list>
| vlan add
<VLAN
ID>}
<VLAN ID list>
| add
<VLAN ID list>
<VLAN ID list>
and the specifiable values, see
switchport mac
<VLAN ID list>
| vlan remove
| remove
<VLAN
131