Jumping into the deep end...
My job can be pretty cushy. 8-5, Mon-Fri, and really nice clients. All in all it's damn near a dream job. But that doesn't mean it doesn't come with some (self-inflicted) headaches. Which leads me to this week.
I love to learn new things that can help with my job. Latest I am up to is getting my Network+ done, which is daunting for someone who is not all that comfortable with Networking in the first place. Knowing this, I still decided that I could setup a cisco switch without trying to create a permanent imprint of my face into my desk. As of now, it is simply a small dent.
With a cisco switch you can export the running config into a text file and then use that text file as an import into new switch. Exporting went fine. Importing, however, made me want to crawl under my desk and cry myself to sleep. Awesome way to learn something new, but damn was that hard. I did this on Monday, and had the install of said new switch to take place today, Friday.
Client is aware that the network will be down while I am doing this and since only one person will be in the office, it is not going to impact them at all. Awesome for me anyways, as less stress and little time constraints.
New switch is in, cables are moved over, power is on - and no internets. Cue mild freak out trying to figure out what it is I had missed, and how big of a butt chewing I am gonna get if this thing doesn't work. Luckily, I have resources - namely a Cisco God - who is willing to help.
So, CG logs into my computer via remote and starts poking at the config of this switch. As far as he can tell the configs are the exact same - so that isn't the issue. 1 point for me. What I didn't know was that the VLANs had to be added to a database of VLANs on the switch itself. So, minus 5 points. He literally enters in 4 lines of code - and BAM! internets are alive and well. Much thanks is given as he saved me from freaking out entirely, and help make us look good to our client. So win-win on that one, plus I learned new things. Which is nice.
tl;dr - attempted to setup cisco swith all by my onsie, got 98% right but missed the important bit. Cisco God comes to my rescue and saves the day.
Posted Jan 30, 2015, 11:40 PM UTC
VTP could have saved you that headache. On the other hand, it could have caused a bunch of other headaches farther on down the line. At least now you know that copying a config doesn't always do everything you need it to.
Very much a live and learn situation. But I don't think VTP would have helped as this is the only switch, and it connects straight to a router. But I could be wrong, still learning it all.
No, you're right. VTP normally causes more problems than it fixes - and in a single switch environment is effectively useless.
When you're exporting a config from a switch, learn the "show running-config all' command instead of just "show running-config".
Or, if you're exporting using the "copy" command, then learn this one
copy running-config tftp: all
Substituting your destination for tftp:, of course.
VTP is fucking evil, and should never be used outside of demonstrations as to why VTP is an incredibly fucking bad idea to use in production networks.
Seriously - every, single person I know who has been stupid enough to try and implement VTP in a production environment has been bitten in the arse by it. It is, by far, the single worst idea Cisco ever came up with.
It just provides you with ample opportunity to shoot yourself in the foot. Though it's pretty telling that Cisco has deprecated it.
We've been running it in prod since well before my time, but any new networking employees unconditionally screw something up at least once because they don't understand it and aren't being careful.