Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW DO I CHANGE IP ADDRESS?

Status
Not open for further replies.

pll7538

MIS
Joined
May 2, 2001
Messages
79
Location
US
I have a Cisco 2950 switch and I want to change the IP address so it can work on a different subnet. Can I accomplish this by going into config t and then simply stating ip address 10.32.8.5?
 
i believe you need to go into vlan 1 interface from config mode first.
After that, you may put ip address 10.32.8.5 then your mask.

Microbyte
[medal][medal]
 
The vlan can be any vlan but a lot of people chose to leave it in Vlan 1 . Just do a show ip int brief and see where the address is currently configured whether vlan1 or some other vlan then just do a "conf t" interface vlan XX where XX is the vlan where it currently located , then input ip address 10.32.8.5 <mask> .
 
I'm confused by your question. The IP address on a switch is used for management only. It doesn't affect how traffic moves through the switch from the users. The only time the switch even cares about different subnets is when you create VLANs and assign ports to the VLANs. Otherwise, the switch works at Layer2 and doesn't have any clue about IP addressing in the frames. Can you clarify what you're trying to do and post the config?

Thx.
 
To change the subnet for the management VLAN:

configure terminal
!
interface vlan 1
ip address xxx.xxx.xxx.xxx mmm.mmm.mmm.mmm
no shut
!
ip default-gateway yyy.yyy.yyy.yyy
!
end
!
wr

To move the management to another vlan instead of vlan 1:

configure terminal
!
interface vlan 1
shut
!
interface vlan 411
ip address xxx.xxx.xxx.xxx mmm.mmm.mmm.mmm
no shut
!
end
!
wr

A L2 switch will only allow a single IP address. If vlan 1 isn't shutdown, the switch tries to place the IP there. Also, if the management vlan is moved and someone then does a no shutdown on interface vlan1, the ip address moves to vlan 1. Just a couple "gotchas".

HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top