Configuring The Allowed Vlans For Trunking Ports - Cisco 7206 - VXR Router Configuration Manual

Network configuration guide
Table of Contents

Advertisement

Configuring Access and Trunk Interfaces
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m

Configuring the Allowed VLANs for Trunking Ports

You can specify the IDs for the VLANs that are allowed on the specific trunk port.
The switchport trunk allowed vlan vlan-list command replaces the current VLAN list on the specified
Note
port with the new list. Consequently you are prompted for confirmation before the new list is applied.
As a side effect, if you are doing copy and paste of a large configuration then you may see some failures
as the CLI is waiting for a confirmation before accepting other commands. To avoid this you can disable
prompting using the terminal dont-ask command before you paste the configuration.
BEFORE YOU BEGIN
Before you configure the allowed VLANs for the specified trunk ports, ensure that you are configuring
the correct interfaces and that the interfaces are trunks.
Beginning with Cisco Release 5.2, you can change the block of VLANs reserved for internal use. See
Note
the Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.x, for more
information about changing the reserved VLANs.
SUMMARY STEPS
1.
2.
3.
4.
5.
6.
DETAILED STEPS
Command
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
interface {ethernet slot/port |
port-channel number
Example:
switch(config)# interface ethernet 3/1
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
3-16
configure terminal
interface {ethernet slot/port | port-channel number}
switchport trunk allowed vlan {vlan-list | add vlan-list | all | except vlan-list | none | remove
vlan-list}
exit
(Optional) show vlan
(Optional) copy running-config startup-config
}
Chapter 3
Purpose
Enters configuration mode.
Specifies an interface to configure, and enters interface
configuration mode.
Configuring Layer 2 Interfaces
OL-23435-03

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents