3.25.1 MAC-Based VLAN Membership Configuration

Use this command to configure MAC address to VLAN ID mappings. Add/delete MAC-based VLAN Classification List entries and assign the entries to different ports.

Command Syntax:

switchport vlan mac <mac_addr> vlan <vid>
Table 3-103. Command Description

Argument

Description

Parameter

<mac_addr>

48 bit unicast MAC address: xx:xx:xx:xx:xx:xx

<vid>

VLAN ID required for the group to VLAN mapping. The range is from 1–4095.

Default

N.A

Mode

Port List Interface mode

Usage

Configure MAC address to VLAN ID association. To remove the MAC address to VLAN ID association, use the ‘no’ version of the command.

Example

Example:

(config)# interface GigabitEthernet1/4
(config-if)# switchport vlan mac 00-00-00-00-00-11 vlan 3