|
Home > Archive > CCNA > April 2001 > Lan Switch IP address
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Lan Switch IP address
|
|
|
| How do I know the LAN switch IP address from a NT Workstation? | |
| lkyoong 2001-04-19, 10:52 pm |
| If the IP has not been set, i think you have to console into the switch to configure the IP. | |
|
| I can get the IP address just type "show config" from prompt in Switch side.But,I would like to dig the Lan Switch IP address from a PC workstation? What command? c:> Arp?
netstat? nbtstat? I don't know? | |
|
| quote: Originally posted by Hugh
I can get the IP address just type "show config" from prompt in Switch side.But,I would like to dig the Lan Switch IP address from a PC workstation? What command? c:> Arp?
netstat? nbtstat? I don't know?
ARP will help only if you know the MAC address, and then only if you have recently made contact with the switch, which is easier when you know the IP address.... If this is something you need to do often, or if the number of IP addresses to try is large, you might prefer to write a litle script to do the work for you by pinging successive IP addresses and then looking in the ARP table for a match.
Netstat will let you know the IP addresses of partners you are connected to. But if you don't know the IP address of the switch, it is very unlikely that you have a connection to it 
Nbtstat will not talk to the switch unless it runs NetBIOS on TCP/IP. I can't think of any switch that would do that.
Here are my suggestions:
1) Telnet to all possible IP addresses and look for the password prompt. Again, If this is something you need to do often, or if the number of IP addresses to try is large, you might prefer to write a little script to do the work for you.
2) If the switch is running STP, use a protocol analyzer to look for BPDUs, then combine ping and ARP.
3) Using a protocol analyzer, look for SNMP traffic from the switch. You may have to be on the same segment as the management station to do this. And you may have to be patient...
4) If the switch has a DNS name (and you know) it, look it up with NSLOOKUP or simply ping.
5) Ask someone who knows. There SHOULD be someone who knows this or has it documented somewhere. Asking her (or him) is the prefered method unless that someone happends to be you...
6) Use the console port. That little walk is good for you. 
If you find a smarter method, let us know!
Terje | |
| Bernie 2001-04-20, 7:20 am |
| Could you use CDP for a neighboring device to locate the address? | |
|
| quote: Originally posted by Bernie
Could you use CDP for a neighboring device to locate the address?
Yes, of course. SHOW CDP NEIGHBORS DETAIL if that other device is an IOS device. But NT workstation does not support CDP.
Perhaps someone could write a CDP implementation for Windows and/or Linux? Perhaps someone allready did?
Terje | |
|
| Someone tell me; c:>ipconfig /all ,this command can get the lan switch IP address. I will try it soon.... | |
|
| quote: Originally posted by Hugh
Someone tell me; c:>ipconfig /all ,this command can get the lan switch IP address. I will try it soon....
That command will tell you anything you want to know about your OWN IP configuration. It will not be very helpfull about the configuration of the switch.
I would like to take the opportunity to elaborate on CDP (originaly mentioned by Bernie). If you happend to be connected to this switch (no other switches or routers between you and the switch you want to know the IP address of) and you forgot to turn of CDP when you initially installed this switch, then you could see the CDP messages in a protocol analyzer. I just did. You may be able to see the IP address in there. I didn't because I am connected to a switch that is the member switch of a cluster. Only the command switch in a cluster has an IP address.
Terje |
|
|
|
|