cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
34518
Views
10
Helpful
2
Replies

How to delete switchport access vlan 200 line

chicagotech
Level 1
Level 1

I was planning to enable a VLAN by copying the following lines:

switchport mode access

spanning-tree portfast

However, I made a mistake to copy to the different port which should be

switchport trunk encapsulation dot1q

switchport mode trunk

After the copy, the interface shows

switchport access vlan 200

switchport trunk encapsulation dot1q

switchport mode access

spanning-tree portfast

It is working with orange led. When I tried to delete switchport access vlan 200, switchport mode access and spanning-tree portfast using no?? I can?t. Then I used copy startup-config running-config. Now the interface shows

switchport access vlan 200

switchport trunk encapsulation dot1q

switchport mode trunk

spanning-tree portfast

The port led is green. How can I delete the switchport access vlan 200 and spanning-tree portfast?

1 Accepted Solution

Accepted Solutions

Try this;

SW1-3550#show run int f0/8

Building configuration...

Current configuration : 146 bytes

!

interface FastEthernet0/8

switchport access vlan 200

switchport trunk encapsulation dot1q

switchport mode trunk

spanning-tree portfast

end

SW1-3550#config t

Enter configuration commands, one per line. End with CNTL/Z.

SW1-3550(config)#int ----> Enter your port # here

SW1-3550(config-if)#default switchport access vlan

SW1-3550(config-if)#no spanning-tree portfast

SW1-3550(config-if)#do show run int f0/8

Building configuration...

Current configuration : 94 bytes

!

interface FastEthernet0/8

switchport trunk encapsulation dot1q

switchport mode trunk

HTH

Sundar

View solution in original post

2 Replies 2

Try this;

SW1-3550#show run int f0/8

Building configuration...

Current configuration : 146 bytes

!

interface FastEthernet0/8

switchport access vlan 200

switchport trunk encapsulation dot1q

switchport mode trunk

spanning-tree portfast

end

SW1-3550#config t

Enter configuration commands, one per line. End with CNTL/Z.

SW1-3550(config)#int ----> Enter your port # here

SW1-3550(config-if)#default switchport access vlan

SW1-3550(config-if)#no spanning-tree portfast

SW1-3550(config-if)#do show run int f0/8

Building configuration...

Current configuration : 94 bytes

!

interface FastEthernet0/8

switchport trunk encapsulation dot1q

switchport mode trunk

HTH

Sundar

Thank you very much. that fixed the problem.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card