Command:

clear trunk


Mode:

Switch> (enable)


Syntax:

clear trunk mod ports [vlans]


Syntax Description:

mod

Variable that specifies the number of the module.

ports

Variable that specifies the number of the ports on the module.

vlans

(Optional) Variable that specifies one or more VLANs to remove from the allowed VLAN list for the trunk port; valid values are from 2 to 1005.

 


Command Description:

Use the clear trunk command 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.

If you specify VLANs, those VLANs are removed from the list of VLANs allowed on the trunk. Traffic for the removed VLANs is not forwarded over the trunk port.

Default VLANs cannot be cleared from the allowed VLAN list on the trunk.

To add VLANs that you have removed, use the set trunk mod_num/port_num vlan_range command.


Example:

This example shows how to clear VLANs 200 to 500 from the trunk port on port 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 how to clear the trunk on port 2 of module 1:

Console> (enable) clear trunk 1/2
 
Port(s) 1/2 trunk mode set to auto.
Port(s) 1/2 trunk type set to isl.
Console> (enable)


Misconceptions:

 

None


Related Commands:

set trunk

 

show trunk

 


� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)