11 switchport general allowed vlan, Syntax, Default configuration – PLANET WGSD-1022 User Manual

Page 323: Command mode, User guidelines, Example

Advertising
background image

Console (config-if)# switchport trunk native vlan 123

5.27.11 switchport general allowed vlan

The switchport general allowed vlan interface configuration command adds or removes VLANs from a

general port.

Syntax

switchport general allowed vlan add vlan-list [ tagged | untagged ]

switchport general allowed vlan remove vlan-list

ƒ add vlan-list — List of VLAN IDs to add. Separate non consecutive VLAN IDs with a comma and

no spaces. A hyphen designates a range of IDs.

ƒ remove vlan-list — List of VLAN IDs to remove. Separate non consecutive VLAN IDs with a

comma and no spaces. A hyphen designates a range of IDs.

ƒ tagged — Sets the port to transmit tagged packets for the VLANs. If the port is added to a VLAN

without specifying tagged or untagged the default is tagged.

ƒ untagged — Sets the port to transmit untagged packets for the VLANs.

Default Configuration

This command has no default configuration.

Command Mode

Interface Configuration (Ethernet, port-channel) mode

User Guidelines

There are no user guidelines for this command.

Example

The following example shows how to add VLANs 2, 5, and 6 to the allowed list.

Console (config)# interface ethernet e8

Console (config-if)# switchport general allowed vlan add 2,5,6 tagged

Advertising