2-171
Catalyst 6500 Series Switch Command Reference—Release8.4
OL-6244-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands clear trunk
clear trunk
To restore a trunk port to its default trunk type and mode or to clear specific VLANs from the allowed
VLAN list for a trunk port, use the clear trunk command.
clear trunk mod/port [vlans]
Syntax Description
Defaults For all ports except Multilayer Switch Module (MSM) ports, the default is auto negotiate. For MSM
ports, the default is off negotiate mode.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines If you specify VLANs, those VLANs are removed from the list of VLANs allowed on the trunk. Default
VLANs cannot be cleared on the trunk.
Traffic for the removed VLANs are not forwarded over a trunk port. To add VLANs that you have
removed, use the set trunk mod/port vlans command.
If you are trying to clear extended-range VLANs and sufficient space in NV RA M i s n ot available, a
warning message displays and the command fails.
Examples This example shows how to clear VLANs 200 through 500 from the trunk port on por t 2 of module 1:
Console> (enable) clear trunk 1/2 200-500
Removing Vlan(s) 200-500 from allowed list.
Port 1/2 allowed vlans modified to 1-199,501-1000.
Console> (enable)
This example shows the output if you attempt to clear a trunk whe n not eno ugh N VRA M spa c e is
available:
Console> (enable) clear trunk 2/18 1030-1999
Failed to clear extended range vlans from allowed list.
Not enough NVRAM space. Use the ‘set trunk’ command to restore
some existing entries to the default value.
Console> (enable)
Related Commands set trunk
show trunk
mod/port Number of the module and the port on the mod ule.
vlans (Optional) Number of the VLAN to remove from the allowed VLAN list; valid valu es
are from 1 to 4094.