Setup a new Cisco switch remotely?

Time to save 6 hours in car, let’s set up a brand new Cisco switch remotely.
With some DHCP / TFTP magic, it’s definitely doable, just completed a LAB scenario witch worked out perfectly.

I do however have a remote connectivity to a C3650 switch, with ipservices, called “myswitch”

Setting up a temp vlan for my provisioning

vlan 42
int vlan 42
ip address
ip dhcp excluded-address
ip dhcp pool vlan42
bootfile config-boot.text
option 150 ip

Setting up my interface that is going to be connected to the new switch.

!Temp access port to new switch
interface FastEthernet0/24
switchport access vlan 42
switchport mode access

Using tclsh to write my minimal tftp-config

myswitch(tcl)#puts [open “flash:config-boot.text” w+] {
enable password myPassword
username myusername privilege 15 password 0 myPassword
aaa new-model
aaa authentication login default local
aaa session-id common

Using the last } to end my input of config, then hit exit to drop out of tclsh, just can also check the content of your config-boot.text by using more flash:config-boot.text

Starting TFTP server, and server my config

tftp-server flash:config-boot.text

Boot your new switch, connected from any port, to “myswitch” port fa/24

If you want to see when your new switch is ready for some more config, check int status, then dhcp lease, ping it, and then log in.

!Checking interface status
myswitch#sh int status | inc 24
Fa0/24 DHCP-CONF-BOOT-TES connected 42 a-full a-100 10/100BaseTX
!Checking dhcp bindings
myswitch#sh ip dhcp binding
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name 0063.6973.636f.2d30. Apr 04 1993 03:20 AM Automatic


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/9 ms
Test your telnet
Trying … Open
User Access Verification
Username: myusername

You can now do what ever config you need to do! 🙂

One gotcha, if you do get;

Trying … Open
Password required, but none set
[Connection to closed by foreign host]

You must wait for the config to be loaded from tftp, and check your tftp config settings.

One Comment to

  • Silje17/02/2015

    Thanks Honey for this wonderful post. I am so happy that you have a hobby you enjoy so much. Now it’s time for bed. Xx

  • Leave a Comments