Configuration Guide Vol. 1


26.8.3 Configuring Native VLAN for MAC Ports

Points to note

Set native VLANs to handle untagged frames that do not match the MAC addresses registered for MAC VLANs on a MAC port. Only port VLANs can be set for native VLANs.

When the VLAN ID of a native VLAN is specified by the switchport mac native vlan command, the VLAN handles untagged frames that do not match the MAC addresses registered for the MAC port. The native VLAN is VLAN 1 (the default VLAN) unless explicitly specified otherwise in the configuration.

If state suspend command is set for the native VLAN, frames that do not match the registered MAC address are not forwarded.

Command examples

  1. (config)# vlan 10,20 mac-based

    (config-vlan)# exit

    (config)# vlan 30

    (config-vlan)# exit

    Creates VLAN 10 and 20 as MAC VLANs. Then, creates VLAN 30 as a port VLAN.

  2. (config)# interface gigabitethernet 1/0/1

    (config-if)# switchport mode mac-vlan

    Switches to the Ethernet interface configuration mode for port 1/0/1. Also, sets the port as a MAC port.

  3. (config-if)# switchport mac native vlan 30

    Sets the native VLAN of port 1/0/1 as port VLAN 30. VLAN 30 handles untagged frames from MAC addresses not registered for port 1/0/1.