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

Clear trunk command question

I'm trying to clear all vlans off this port except vlan 1 and 510. Here is the command that I use but, it doesn't seem to work.

(enable) clear trunk 5/14 2-509,511-1005,1025-4094

Removing Vlan(s) 2-509,511-1005,1025-4094 from allowed list.

Port 5/14 allowed vlans modified to 1.

(enable)

show config only shows that vlan 1 is allowed. Why? I want to trunk vlan 510 as well.

clear trunk 5/14 2-1005,1025-4094

set trunk 5/14 nonegotiate dot1q 1

1 ACCEPTED SOLUTION

Accepted Solutions
Bronze

Re: Clear trunk command question

The command is additive. If 510 was not allowed this command will not allow it, it only adds to the list of not allowed vlans. To add it back use the command specified above.

2 REPLIES
Community Member

Re: Clear trunk command question

Please specify platform ...

ie. Cat 5509 CatOS, Cat 6513 Native Mode, etc..

try this:

set trunk 5/14 on dot1q 1,510

Bronze

Re: Clear trunk command question

The command is additive. If 510 was not allowed this command will not allow it, it only adds to the list of not allowed vlans. To add it back use the command specified above.

330
Views
3
Helpful
2
Replies
CreatePlease to create content