Cannot Remove VLAN from Interface Cisco 3560

I have Cisco Catalyst 3560 48 port switch that will not remove a VLAN from a interface Gi0/7 using the command "no switchport access vlan 33". Instead, it removes the port from VLAN 32 which is the opposite of what I want it to do. Even when I explicitly add VLAN 35 (the VLAN I want) to the interface it removes it from VLAN 32 which is the VLAN that provides a DHCP lease to the device that is connected to that switch port. Any help is appreciated. Configuration is

interface GigabitEthernet0/7
 switchport access vlan 32
 switchport trunk encapsulation dot1q
 switchport mode access
 switchport voice vlan 33
 switchport priority extend trust
 mls qos trust dscp
 spanning-tree portfast
Todd WilloughbyLead System EngineerAsked:
Who is Participating?
Bryant SchaperCommented:
sorry from phone, no switchport voice vlan 33
Bryant SchaperCommented:
Try no switch port voice
Todd WilloughbyLead System EngineerAuthor Commented:
That worked perfectly thank you!
Salah Eddine ELMRABETTechnical Lead Manager (Owner)Commented:

Try this:

default interface GigabitEthernet0/7

This will restore default configuration for the interface and then configure what you want to do.


Bryant SchaperCommented:
default would work too, he is just trying to remove a voice vlan and was trying to remove it as an access vlan.
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.