cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5497
Views
0
Helpful
4
Replies

Remotely changing a port from access to trunk

RonaldNutter
Level 1
Level 1

I have a switch in a building across the street that we are going change a port from access to trunk so that we can accomodate multiple vlan's in that building.

The port config is as follows -

switchport access vlan XX

switchport mode access

speed 100

duplex full

spanning-tree portfast

Would the following let me change it to trunk remotely ?

no spanning-tree portfast

switchport trunk native vlan xx

switchport trunk encapsulation dot1q

switchport mode trunk

After the last command, I am sure that I would loose the connection once I issue the switchport mode trunk command but would think I would get it back in a minute or so.

Would appreciate any suggestions.

Ron

2 Accepted Solutions

Accepted Solutions

glen.grant
VIP Alumni
VIP Alumni

  Yes that should work , just make sure "switchport mode trunk " is the last command. You will lose it at this point until you configure ther other side.  You could also make the last command switchport mode dynamic desirable"  which will negotiate the trunk .

View solution in original post

jimmysands73_2
Level 5
Level 5

And of course if you are hesitant, use the reload in X command.

View solution in original post

4 Replies 4

glen.grant
VIP Alumni
VIP Alumni

  Yes that should work , just make sure "switchport mode trunk " is the last command. You will lose it at this point until you configure ther other side.  You could also make the last command switchport mode dynamic desirable"  which will negotiate the trunk .

jimmysands73_2
Level 5
Level 5

And of course if you are hesitant, use the reload in X command.

Thanks for all the replies.  The reload in X command is one I always keep in my back pocket for remote situations like this.  Everything went smoothly.

Ron

Leo Laohoo
Hall of Fame
Hall of Fame

There's an easier way.

1.  Open a text file, like notepad, and enter the following:

!  Line below will clear out the config of your choice

default interface

!

interface

switchport trunk native vlan

switchport encap dot

switchport mode trunk

2.  Next save the config to the default folder of your TFTP server.

3.  Telnet/SSH into the switch;

4.  Go to enable mode;

5.  Command:  copy tftp:///.extension run

Done. 

Review Cisco Networking for a $25 gift card