How to remove Trunk allowed VLAN list from port on Cisco Catalyst 2960

I need to make changes to our uplink port at one of our branch offices
The current settings on the port are as follows:

interface FastEthernet0/1
 switchport trunk allowed vlan 1,100
 switchport mode trunk
 speed 100
 duplex full
 srr-queue bandwidth share 10 10 60 20
 priority-queue out
 mls qos trust cos
 auto qos voip trust

I need to change the settings to the following:

interface FastEthernet0/1
 switchport mode trunk
 speed 100
 duplex full

I do not know how to remove the current settings.

The devices is a Cisco Catalyst 2960.
HowzattAsked:
Who is Participating?
 
MiftaulConnect With a Mentor Commented:
Here is the result before

switch#sh running-config interface gigabitEthernet 0/20
!
interface GigabitEthernet0/20
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,100
 switchport mode trunk
 speed 100
 duplex full
 srr-queue bandwidth share 10 10 60 20
 queue-set 2
 priority-queue out
 mls qos trust cos
 auto qos voip trust
end

To remove the specific lines, we will enter the commands starting with NO.

Switch(config)#interface gigabitEthernet 0/20
Switch(config-if)#no switchport trunk allowed vlan 1,100
Switch(config-if)#no priority-queue out
Switch(config-if)#no mls qos trust cos
Switch(config-if)#no auto qos voip trust


Last status after changes

interface GigabitEthernet0/20
 switchport trunk encapsulation dot1q
 switchport mode trunk
 speed 100
 duplex full
end
0
 
max_the_kingConnect With a Mentor Commented:
Hi,

try this:
config t
default interface fa0/1
end

conf t
interface FastEthernet0/1
 switchport mode trunk
 speed 100
 duplex full

hope this helps
max
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.