[jcifs] Getting Switch IP address and port number

Christopher R. Hertel crh at ubiqx.mn.org
Sun Aug 7 04:21:35 GMT 2005

High-end switches will have management features (ssh login, snmp support, 
etc.).  These features require that there be a controll unit inside the 
switch that has its own IP address.  Low end devices, like home routers 
and such, may also have an IP address assigned so that you can get to 
their management features.  As Justin points out, however, there's no 
reason that a simple switch would need to have an IP address assigned.

...and this is really off-topic for the jCIFS list.  :)

Chris -)-----

On Fri, Aug 05, 2005 at 09:28:26AM -0700, Justin Mahoney wrote:
> The switch probably does not have an IP address, unless it is actually a
> router. To find out, just run a tracert ('traceroute' on *nix) from your
> desktop machine to the server. It will list all nodes with assigned IP
> numbers that are visited along the path from your desktop to the server.
> Why would you need to know the "port number of the switch?" It is very
> unlikely you would be able to discover that information without simply
> looking at the physical switch hardware itself. Do you mean the TCP port
> number of the connection?
> If you are simply trying to confirm which switch port the desktop is plugged
> into, take your best guess, unplug a cable from the switch, and go back to
> the desktop to verify that the connection lights on the network card have
> gone out. Then plug it back in at the switch and verify the connection
> lights on the network card come back on.
> -----Original Message-----
> From: jcifs-bounces+jmahoney=ditech.com at lists.samba.org
> [mailto:jcifs-bounces+jmahoney=ditech.com at lists.samba.org] On Behalf Of
> Valentin Kisimov
> Sent: Thursday, August 04, 2005 11:47 PM
> To: jcifs at lists.samba.org
> Subject: [jcifs] Getting Switch IP address and port number
> Hi,
> I have a problem and I hope you can help me.
> The environment consists of Desktop connected to a Switch connected to a
> Server. I can know the IP address and MAC address of the Desktop and the
> Server. Being inside the Desktop, I am looking to find the IP address of the
> switch and the Port number of the switch to which the Desktop is connected.
> If you have any idea/code to resolve the problem I will very appreciate.
> Thanks in advance.
> Regards
> Dr. Valentin Kisimov
> T-Systems South Africa,
> International Business Gateway, New Road, Midrand 1685 PO Box 2496, Midrand
> 1685
> tel: (swb) +27 11 254 7800
> fax: +27 11 254 7802
> mobile: +27 82 570 5048

"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org

More information about the jcifs mailing list