Adding or removing source MAC addresses for a VLAN

Add or remove a VLAN source MAC addresses to configure the source MAC address for a source MAC-based VLAN.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Add a VLAN source MAC address:

    vlan srcmac <1-4059> <0x00:0x00:0x00:0x00:0x00:0x00>

  3. Remove a VLAN source MAC address:

    no vlan srcmac <1-4059> <0x00:0x00:0x00:0x00:0x00:0x00>

Example

Add a VLAN source MAC address:

Switch(config)# vlan create 10 type srcmac-mstprstp 0

Switch(config)# vlan srcmac 10 0x00:0x00:0x00:0x00:0x00:0x11