10-17-2011 02:04 PM - edited 03-07-2019 02:51 AM
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
Solved! Go to Solution.
10-17-2011 03:29 PM
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 .
10-17-2011 06:11 PM
And of course if you are hesitant, use the reload in X command.
10-17-2011 03:29 PM
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 .
10-17-2011 06:11 PM
And of course if you are hesitant, use the reload in X command.
10-26-2011 07:37 AM
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
10-17-2011 06:26 PM
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://
Done.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide