Example
The following example adds VLANs 1, 2, 5 to 6 to the allowed list of Ethernet port 1/
e16.
Console(config)# interface ethernet 1/e16
console(config-if)# switchport trunk allowed vlan add 1-2,5-6
Related Commands
switchport mode
switchport access vlan
switchport trunk native vlan
switchport general allowed vlan
switchport general pvid
switchport general ingress-filtering disable
switchport general acceptable-frame-type tagged-only
switchport forbidden vlan
show interfaces switchport
switchport access multicast-tv vlan
switchport trunk native vlan
The
switchport trunk native vlan
the native VLAN when the interface is in trunk mode. To return to the default
configuration, use the
Syntax
switchport trunk native vlan
no switchport trunk native vlan
Parameters
• vlan-id — Specifies the ID of the native VLAN.
Default Setting
VID=1.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
Command Usage
The command adds the port as a member in the VLAN. If the port is already a
member in the VLAN (not as a native), it should be first removed from the
VLAN.
Interface Configuration mode command defines
form of this command.
no
vlan-id
4
VLAN Commands
671