LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   determine IP address of switch (https://www.linuxquestions.org/questions/linux-networking-3/determine-ip-address-of-switch-4175413182/)

frznchckn 06-24-2012 08:35 PM

determine IP address of switch
 
I purchased a Dell PowerConnect 2724 from ebay.

Please help me out and let me know if I did the right stuff here...

The default IP address for managed mode (I confirmed it is in managed mode via the front panel LEDs) is 192.168.2.1 .

I connect a laptop directly to the switch and ran

sudo ifconfig eth0:1 192.168.2.10

which I believe would put me on the same network as the switch. I'm unable to ping 192.168.2.1 or connect via a browser.

If I did this part correctly, this means that the switch is configured to use some other address.

What's the easiest way to figure out this address? Would nmap help?

CTM 06-24-2012 08:46 PM

If you bought it second-hand, chances are that the previous owner changed the default subnet. I looked through the online PDF of the manual for a reset procedure, but could only find instructions for resetting it from the Web interface (which is pretty useless). If there's a hardware reset button physically on the device somewhere, hold it down for about 30 seconds and try again.

frznchckn 06-24-2012 09:02 PM

No, there's not a hard reset button from what I can see.

CTM 06-24-2012 09:07 PM

That complicates things. What does your routing table look like ("route -n")?

jefro 06-24-2012 09:08 PM

Make a static arp entry for almost any 192 number and then try again. Really any ip should work.
Kind of a way to cheat the ip and force the mac address to some ip range that you want to use.

frznchckn 06-24-2012 10:05 PM

Quote:

Originally Posted by jefro (Post 4710951)
Make a static arp entry for almost any 192 number and then try again. Really any ip should work.
Kind of a way to cheat the ip and force the mac address to some ip range that you want to use.

@jefro: How do I determine the MAC address of the switch?

@CTM: my routing table has no entries

CTM 06-25-2012 08:51 AM

Quote:

Originally Posted by frznchckn (Post 4710969)
@jefro: How do I determine the MAC address of the switch?

The MAC address is usually stamped onto the device somewhere - check for a sticker on the casing of the switch. It might not be labelled "MAC address", but it's the one that follows the format "01:23:45:67:89:ab".

Quote:

@CTM: my routing table has no entries
That goes some way to explaining why nothing's working :) Try jefro's approach for now, it's easier to get it working that way.

jefro 06-25-2012 11:11 AM

Actually the best way was to find the reset button. Some HP and maybe others have some odd way that I forget. It is not a reset button at all. Guess I ought to look that up.

Also if someone did set it as a managed or smart switch it could be very difficult to access it. If the static arp doesn't work then you need to find out how to reset it. Darn, I ought to know this since we have some like that. Might have to use console.

Be sure to remove static arp entries when finished. They are real stinkers if left in.


Side note. If the mac isn't on the switch you usually can just issue arp command to show what is on the lan. arp -a maybe, look that up.

pan64 06-25-2012 12:17 PM

here is the reset: http://en.community.dell.com/support.../17619072.aspx

CTM 06-25-2012 05:02 PM

Quote:

Originally Posted by pan64 (Post 4711477)

The fact that this isn't mentioned anywhere in the manual is outrageous. Good catch.

frznchckn 06-26-2012 08:11 AM

That worked. I thought it was lame that it wasn't in the manual either. Good find.


All times are GMT -5. The time now is 02:52 AM.