cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
418
Views
0
Helpful
2
Replies

Switch IP address

nitinnigam
Level 1
Level 1

Hi

We got few 3500XL switches and we want to change the IP address of all the switches.

Currently interface VLAN1 is configured with IP address in 192.168.1.0 network in all the switches.

I want to changed this address to 192.168.8.0 (different VLAN...ie. VLAN8).

Port 1 and 2 are configured as "switchport mode trunk" and port 1 is connected to the router.

Can someone tell me how to change the IP address.

Thanks

2 Replies 2

Ghiathk
Level 1
Level 1

Switch>en

Switch#config t

Switch(config)#int vlan 1

Switch(config-if)#ip address 192.168.8.1 255.255.255.0

And so on

I hope that this will help

milan.kulik
Level 10
Level 10

Hi,

you need to change the management interface, IP address and default gateway.

It's a difficult task if the switches are on a remote site without a console access.

Is it your case?

If yes, the easiest way I know is:

1) Check that VLAN8 is running OK on the trunk between the router and the switch.

2) Create a text file test.cfg containing lines:

ip default-gateway 192.168.8.1

interface VLAN8

ip address 192.168.8.2 255.255.255.0

management

3) Telnet to the switch.

4) Copy this file to the switch flash via TFTP.

5) Use copy flash run

answer test.cfg to the filename prompt.

6) The switch will merge the test.cfg with the running config. You will lose your Telnet connection. But you should be able to connect using the new IP address immediately.

If anything fails for any reason you still can call the remote site and just ask somebody to power the switch off/on and it will come back with the old address and gateway.

7) Use copy run start to save the new config.

Regards,

Milan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: