Binding MAC address to VLAN using CLI commands:
The following table summarizes the equivalent CLI commands for binding MAC addresses to VLAN.
Table 7-84. Binding MAC address to VLANs CLI Commands
CLI Command
mac-to-vlan mac-address
vlan-id
switchport access vlan
dynamic
show mac-to-vlan
no mac-to-vlan mac-
address
The following is an example of the CLI commands:
console(config-vlan)# mac-to-vlan 0060.704c.73ff 123
console(config-vlan)# exit
console(config)# exit
console# show vlan mac-to-vlan
MAC Address
VLAN
------------ ------
0060.704c.73ff 123
Description
Binds the MAC address to the VLAN.
Configures private VLANs.
Displays the MAC to VLAN database
Unbinds the MAC address from the VLAN.
Configuring Switch Information
311