switchport general allowed vlan 461
The command adds the port as a member in native VLAN 2. If the port is
already configured as a native VLAN 3 it will automatically change the last
entry (VLAN 2). Only one native VLAN can be configured to the port.
Example
The following example configures VLAN number 123 as the native VLAN
when Ethernet port 1 is in trunk mode.
switchport general
allowed vlan
The switchport general allowed vlan Interface Configuration mode
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
Parameters
■ add vlan-list — Specifies the list of VLAN IDs to be added. Separate
nonconsecutive VLAN IDs with a comma and no spaces. A hyphen
designates a range of IDs.
■ remove vlan-list — Specifies the list of VLAN IDs to be removed.
Separate nonconsecutive VLAN IDs with a comma and no spaces. A
hyphen designates a range of IDs.
■ tagged — Indicates that the port transmits tagged packets for the
VLANs.
■ untagged — Indicates that the port transmits untagged packets for
the VLANs.
Default Configuration
If the port is added to a VLAN without specifying tagged or untagged,
the default setting is tagged.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
Console(config)# interface ethernet 1
Console(config-if)#
switchport mode trunk
Console(config-if)# switchport trunk native vlan 123