Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

10023

November 30th, 2016 13:00

Need help with commands to clear a switch port config N2024 Stacked

The existing config is:

interface Gi1/0/20

speed 1000

description "WifiLocation2"

switchport general allowed vlan add 154

switchport general allowed vlan add 153 tagged

switchport general allowed vlan remove 1

switchport access vlan 15

lldp transmit-tlv sys-desc sys-cap

lldp transmit-mgmt

lldp notification

lldp med confignotification

voice vlan auth disable

I need it to look like:

interface Gi1/0/20

description "WifiLocation2"

switchport access vlan 15

I have tried quite a few things but cannot get rid of the switchport lines

any help would be appreciated

Clayton

212 Posts

December 1st, 2016 11:00

Another way to remove the switchport general lines is to use the "remove" option on all of the vlans currently associated with it.  Just like what was done for vlan 1 in your example. Something like this: 

switchport general allowed vlan remove 153, 154

Make sure you have the mode correctly set.  By default, access mode is set.  If the default of access is currently being used, then the "switchport general" lines are ignored anyway. 

Hope this was helpful.

-B

Moderator

 • 

8.7K Posts

December 1st, 2016 11:00

Hi,

How are you trying to clear the config? You should just be able to delete the lines from CLI and save the config. 

2 Posts

December 1st, 2016 16:00

This worked great to clean up the port config now

Thanks for your help

No Events found!

Top