configure the allowed VLAN for a trunk port, perform this task:
|
|
|
Step 1
|
switch# configure terminal
|
Enters configuration mode.
|
Step 2
|
switch(config)# interface { type slot / port | port-channel number }
|
Specifies an interface to configure, and enters interface configuration mode.
|
Step 3
|
switch(config-if)# switchport trunk allowed vlan { vlan-list all | none [ add |except | none | remove { vlan-list }]}
|
Sets allowed VLANs for the trunk interface. The default is to allow all VLANs on the trunk interface: 1 to 3967 and 4048 to 4094. VLANs 3968 to 4047 are the default VLANs reserved for internal use by default; this group of VLANs is configurable. By default, all VLANs are allowed on all trunk interfaces.
Note You cannot add internally allocated VLANs as allowed VLANs on trunk ports. The system returns a message if you attempt to list an internally allocated VLAN as an allowed VLAN.
|
This example shows how to add VLANs 15 to 20 to the list of allowed VLANs on the Ethernet 3/1 Ethernet trunk port:
switch# configure terminal
switch(config)# interface ethernet 3/1
switch(config-if)# switchport trunk allow vlan 15-20
Verifying Interface Configuration
To display access and trunk interface configuration information, perform one of these tasks:
|
|
switch# show interface
|
Displays the interface configuration
|
switch# show interface switchport
|
Displays information for all Ethernet interfaces, including access and trunk interfaces.
|
switch# show interface brief
|
Displays interface configuration information.
|