Configuring MAC VLAN
MAC VLAN Configuration
User Guide
159
2.2 Using the CLI
2.2.1 Configuring 802.1Q VLAN
Before configuring MAC VLAN, create an 802.1Q VLAN and set the port type according to
network requirements. For details, refer to
Configuring 802.1Q VLAN
.
2.2.2 Binding the MAC Address to the VLAN
Follow these steps to bind the MAC address to the VLAN:
Step 1
configure
Enter global configuration mode.
Step 2
mac-vlan mac-address
mac-addr
vlan
vlan-id
[description
descript
]
Bind the MAC address to the VLAN.
mac-addr
: Specify the MAC address of the device in the format of xx:xx:xx:xx:xx:xx.
vlan-id
: Enter the ID number of the 802.1Q VLAN that will be bound to the MAC VLAN.
descript
: Specify the MAC address description for identification, with up to 8 characters.
Step 3
show mac-vlan { all | mac-address
mac-addr
| vlan
vlan-id
}
Verify the configuration of MAC VLAN.
vid
: Specify the MAC VLAN to be displayed.
Step 4
end
Return to privileged EXEC mode.
Step 5
copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to bind the MAC address 00:19:56:8A:4C:71 to VLAN 10,
with the address description as Dept.A.
Switch#configure
Switch(config)#mac-vlan mac-address
00:19:56:8a:4c:71
vlan
10
description
Dept.A
Switch(config)#show mac-vlan vlan
10
MAC-Addr
Name
VLAN-ID
--------------
----------- ------------
00:19:56:8A:4C:71 Dept.A 10
Switch(config)#end
Downloaded from