kennysarmy Posted October 22, 2020 Posted October 22, 2020 I'm trying to change the IP address on an Aruba 2530 switch from it's DHCP given one to a different one. When I try and change, just the last number from 18 to 207 I get a switch configuration error. Any ideas?
tosh74 Posted October 22, 2020 Posted October 22, 2020 try using a console cable and change via command line. conf vlan 1 ip address x.x.x.207/24 wr me exit 1
kennysarmy Posted October 22, 2020 Author Posted October 22, 2020 try using a console cable and change via command line. conf vlan 1 ip address x.x.x.207/24 wr me exit Is a console cable a "special" cable? Unlikely to be anything I've got lying around? I've only ever managed switches before from the IP address using a browser !
Davit2005 Posted October 22, 2020 Posted October 22, 2020 I only ever use the console/ssh, much quicker. If you have a static IP in place you would need to remove before replacing with the new IP. Setup a ntp source too so it helps with logs etc.
Davit2005 Posted October 22, 2020 Posted October 22, 2020 Is a console cable a "special" cable? Unlikely to be anything I've got lying around? I've only ever managed switches before from the IP address using a browser ! You can use a USB to the micro USB cable, I'm not sure what exact cable to be honest you will need the driver too. I still use a USB to DB9 Serial adapter (Plugable make) and a DB9 to RJ45 cable. They do not supply the DB9 console cables anymore I don't think. 1
kennysarmy Posted October 22, 2020 Author Posted October 22, 2020 You can use a USB to the micro USB cable, I'm not sure what exact cable to be honest you will need the driver too. I still use a USB to DB9 Serial adapter (Plugable make) and a DB9 to RJ45 cable. They do not supply the DB9 console cables anymore I don't think. Interesting. So you use a RJ45 - DB9 plugged in to the switch console port - then the adapter to convert DB9 to USB - then plug USB in to laptop.
Davit2005 Posted October 22, 2020 Posted October 22, 2020 Interesting. So you use a RJ45 - DB9 plugged in to the switch console port - then the adapter to convert DB9 to USB - then plug USB in to laptop. Indeed. The plugable brand seem to be the most reliable from my experience. We have about 250 old switches on site that only have a DB9 console connection so just have to carry a couple of cables around. But they stopped supplying the RJ45 to DB9 cables now and don't supply the USB cable either with the switches.
kennysarmy Posted October 22, 2020 Author Posted October 22, 2020 OK. So we've raided some boxes and found what looks like a serial to RJ45 console cable. AND An older serial card which we're sticking in an old PC. Once installed and switch connected I presume I just fire up PUTTY and choose the correct SERIAL connection and away I go
Norphy Posted October 22, 2020 Posted October 22, 2020 (edited) You need to be careful with USB to serial adapters. There are a lot which are based on fake Prolific PL2303 chipsets. With those, the newer drivers that work on Windows 8 upwards don't work. Even when you do manage to find a genuine one, the Prolific chipsets aren't all that anyway. You're best hunting out one with an FTDI chipset, they're a lot more reliable. I've got something that looks like this and it just works, no drivers needed. That said, the 2530 has a micro-USB port built into it, which is used as a console port already. Windows 10 doesn't need drivers for it in my experience and any old micro-USB cable with its data pins connected works perfectly well. Edited October 22, 2020 by Norphy
kennysarmy Posted October 22, 2020 Author Posted October 22, 2020 Connected up OK. Ran the commands to change the IP address from the one given by DHCP to the static one I need. Verified from the switch console using the command "show ip" that it was correct. Turned the switch off, moved it to the final location (correct vLAN) and now cannot connect to it again via a browser or ping it What am I doing wrong?
kennysarmy Posted October 22, 2020 Author Posted October 22, 2020 (edited) Switch still had the old IP Think I forgot the command wr me ! Edited October 22, 2020 by kennysarmy 1
Norphy Posted October 22, 2020 Posted October 22, 2020 Certainly sounds like it! I've got into the habit of doing "wri mem" after making any series of changes now. I've lost one too many switch configurations to not saving and the switch rebooting.
djm968 Posted October 22, 2020 Posted October 22, 2020 Switch still had the old IP Think I forgot the command wr me ! Yep, been there with 150 odd lines of config! Only did it once though. 1
kennysarmy Posted October 22, 2020 Author Posted October 22, 2020 Thanks all. Switch now configured, in situ and two attached Meraki AP's showing online.
Davit2005 Posted October 22, 2020 Posted October 22, 2020 (edited) Yep, been there with 150 odd lines of config! Only did it once though. Not done it myself, yet, did the change the IP address thing which it did not accept because it already had one because had been configured for another replacement (didn't realise and just pasted the code in). Put replacement switch in place, connected up and wondered for 5mins why the other switch went down in monitoring before I guessed what happened, lol. I usually hit WR M after every 3 lines of code, lol. Edited October 22, 2020 by Davit2005
tosh74 Posted October 22, 2020 Posted October 22, 2020 Nice one fella! I would certainly take Norphy's advice and get a couple of those console cables.
Davit2005 Posted October 22, 2020 Posted October 22, 2020 Don't forget to secure console access with password as well as secure access to the switch physically wherever possible.
kennysarmy Posted May 25, 2021 Author Posted May 25, 2021 Just as an aid for anyone doing the same you can set the clock via these commands: Type:> Configure Type :>Clock Set 13:08 Type :>Clock Set 19/06/2020
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now