Switchport Trunk Allowed Vlan - Cisco Nexus 5500 Series Command Reference Manual

Nx-os layer 2 interfaces command reference
Hide thumbs Also See for Nexus 5500 Series:
Table of Contents

Advertisement

Chapter
S Commands

switchport trunk allowed vlan

To configure the allowed VLANs for a virtual Ethernet interface, use the switchport trunk allowed vlan
command. To remove the configuration, use the no form of this command.
Syntax Description
add
except
remove
vlan_list
all
none
Command Default
None
Command Modes
Interface configuration mode
Virtual Ethernet interface configuration mode
Command History
Release
5.2(1)N1(1)
Usage Guidelines
This command does not require a license.
Examples
This example shows how to add VLANs to the list of allowed VLANs on a virtual Ethernet interface
trunk port:
switch# configure terminal
switch(config)# interface vethernet 1
switch(config-if)# switchport trunk allowed vlan 5-15
switch(config-if)#
OL-27880-02
switchport trunk allowed vlan {{add | except | remove} vlan_list | all | none}
no switchport trunk allowed vlan
Specifies the VLANs to be added to the current list.
Specifies all VLANs to be added to the current list, except the specified
VLANs.
Specifies the VLANs to be removed from the current list.
VLAN IDs of the allowed VLANs when the interface is in trunking mode.
The range is from 1 to 4094, except for the VLANs reserved for internal use.
Use a hyphen (-) to separate the beginning and ending IDs of a range of
VLAN IDs; for example, 70-100.
Use a comma (,) to separate individual VLAN IDs and ranges of VLAN IDs;
for example, 20,70-100,142.
Specifies all VLANs to be added to the current list.
Specifies that no VLANs be added to the current list.
Modification
This command was introduced.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
switchport trunk allowed vlan
1255

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents