Command Usage

If an interface is not a member of VLAN 1 and you assign its PVID to this VLAN, the interface will automatically be added to VLAN 1 as an untagged member. For all other VLANs, an interface must first be configured as an untagged member before you can assign its PVID to that group.

If acceptable frame types is set to all or switchport mode is set to hybrid, the PVID will be inserted into all untagged frames entering the ingress port.

Example

The following example shows how to set the PVID for port SNP1 to VLAN 3:

Console(config)#interface ethernet SNP1

Console(config-if)#switchport native vlan 3

Console(config-if)#

4.3.12.8switchport allowed vlan

Use this command to configure VLAN groups on the selected interface. Use the no form to restore the default.

Syntax

switchport allowed vlan {add vlan [tagged untagged] remove vlan}

no switchport allowed vlan

add vlan – VLAN identifier to add.

remove vlan – VLAN identifier to remove. Do not enter leading zeros. (Range: 1-4094)

Note – You cannot use the no switchport allowed vlan command on the NETMGT port. (If you do, the switch will display an error message.)

Chapter 4 Command-Line Reference 4-127

Page 325
Image 325
Sunfire B1600 manual Switchport allowed vlan