Link to home
Start Free TrialLog in
Avatar of samiam41
samiam41Flag for United States of America

asked on

Copy vlan.dat to Cisco 9200 from laptop

Hey Experts.  I need to copy the vlan config from a Cisco 2960 to a Cisco 9200.  I have the vlan.dat file copied to my laptop and connected to the 9200 via a console cable.  For some reason, I'm not smart enough to copy the vlan.dat file to the 9200.  Any help in accomplishing this would be appreciated.


Edit:  I should have clarified.  I run into problems copying to the switch as I'm not sure what the command should be.  I used "copy flash:vlan.dat tftp:" to copy from the switch to the laptop (running the tftp software) but haven't nailed down the command to copy from the laptop to the switch.


Apologies for not including that portion of information.

Avatar of Craig Beck
Craig Beck
Flag of United Kingdom of Great Britain and Northern Ireland image

You can't do it directly via the console as the 9200 won't allow X-modem transfer.

Just do:

show vlan brief

Open in new window


and copy the output to a text file. That will show you which VLANs exist with their corresponding names.

If you really want to copy the file, you can do it via TFTP or FTP if you have a server running on your laptop and a network connection to it...

copy vlan.dat tftp://<laptop_ip>/vlan.dat

Open in new window

Avatar of samiam41

ASKER

Excellent info.  Thank you.

I apologize in advance for this dumb question but I'm struggling to remember how I did this before.  On my switches, they all have an IP and I can ssh into them.  I checked a few of my old/existing switches to see which interface has the IP configure but they show Vlan77 (which is the vlan that I need on the new switches).  For the new switch, do I assign the IP to one of the interfaces and then copy over the vlan?  

I ask because I don't have network connectivity on the new switches. 
No worries, and no question is a dumb question :-)

If you're consoled to them, you can use the management port. It's usually GigabitEthernet0/0. Connect to that port, configure an IP on it, then connect your laptop and give it a similar IP, then copy over using TFTP or FTP...

conf t
int gi0/0
 ip add 10.0.0.1 255.255.255.252
 no shut
end

Open in new window


Give your laptop 10.0.0.2 / 255.255.255.252 then...
copy vlan.dat tftp://10.0.0.2

Open in new window


If you want to get the new switches on the network, the easiest way (from what you've told me) is to create vlan 77 on them, then create the SVI on that vlan and give it an IP address. Once you've configured a user/pass on the switch you can SSH to it then copy over the network...

conf t
user admin priv 15 secret mysecretpass
!
vlan 77
 name MANAGEMENT
 exit
!
int vl77
 ip add 192.168.77.101 255.255.255.0
 no shut
!
ip default-gateway 192.168.77.1

Open in new window


Then...
copy vlan.dat tftp://<laptop_ip>

Open in new window

In my world, you're a super brain!  Thanks for taking the time to explain your answer.  Going to take what you supplied and see what chaos I can cause here.  Updates forthcoming.
I'm running into a new challenge so I created a new question so that this question didn't wonder from the original purpose.  If you have a chance and can assist, I would greatly appreciate it.

https://www.experts-exchange.com/questions/29222996/Help-connecting-to-new-switch-via-ssh.html
Copied the vlan.dat over using:
copy tftp://ip/vlan.dat flash:

Open in new window

Now that it's copied over, do I need to "load" it or do something to get it to apply?  When I run(show running-config), I don't see the vlan details.
Just reload the switch. It should read the file and configure the VLANs in the database.
Ok.  Saving the running-config and then will reload the switch.
Sorry for the delay.  After running into problems yesterday morning, I did a factory reset thinking that the Cisco ios would stay much like factory resetting an iphone or android.  I continued to test and configure the switch and it looked promising until I saved the running-config and reloading it.  Switch now is hung at "switch:" prompt.

Put the switch to the side to come back to and working on another new one.  Lesson learned.  Working on configuring the new one and will be back with the results.  I appreciate your patience.
Got vlan.dat copied over, saved config and did a switch reload.  I now see it listed with (show vlan).  However the ports aren't assigned to the vlan.  Is there a way to select multiple ports to use vlan 77?
ASKER CERTIFIED SOLUTION
Avatar of Craig Beck
Craig Beck
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial