Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

how to clear a trunk port

I am trying to clear a trunk port on cat-6506, however the "clear trunk" command that I have put into the config is followed by the original "set trunk" command. As a result, the port is still a trunk port. Do I need to remove the original "set trunk" command from the config?

thanks.

4 REPLIES
New Member

Re: how to clear a trunk port

To turn off trunking on a port, perform this task in privileged mode.

1) Turn off trunking on a port:

>set trunk mod/port off

2) Verify the trunking configuration:

>show trunk [mod/port]

To return a port to the default trunk type and mode for that port type, perform this task in privileged mode.

1) Return the port to the default trunking type and mode for that port type:

>clear trunk mod/port

2) Verify the trunking configuration:

>show trunk [mod/port]

I hope this helps.

cheers,

Nick

New Member

Re: how to clear a trunk port

Nick,

Thanks for your help - it makes lots of sense. Unfortunately, I was focusing on getting the "clear trunk" command to work as opposed to "set trunk off". How do I now delete the "clear trunk" command from the Cat-6506 switch? Thanks again.

New Member

Re: how to clear a trunk port

To delete the "clear trunk" command from your config, you need to restore the VLANs that were removed when you issued the "clear trunk" command.

Use the "set trunk mod/port vlans" command to restore the VLANs. Then, the "clear trunk" command will disappear from your config.

cheers,

Nick

New Member

Re: how to clear a trunk port

Thanks for your response. Just one more question, please. I had a trunk port that I used the "clear trunk 2/34 1-1005,1025-4094" command to try to change it to a bridge port. I subsequently used the "set trunk off dot1q" command and it worked. The port now is a bridge port and has only one VLAN on it. If I use the "set trunk 2/34 1-1005,1025-4094" command on it again, would not it set the port back to the trunk mode? Thanks again.

2635
Views
0
Helpful
4
Replies