PDA

View Full Version : mapping physical device to eth0



qin__23
07-06-2009, 08:55 PM
Hi, I'm running knoppix on my HP nc8000 laptop.

How can I tell what physical connection eth0 refers to?
The problem is one of the programs I am using in knoppix can only us eth0, so it will attempt to use eth0 every single time.
Unfortunately, I have no idea if eth0 is actually the wired connection (which is what I want).

Basically, I need to be able to tell which physical network devices are mapped to eth0, eth1, etc.
From there, I will then disable the modules that I do not want (wireless, etc.).
Any ideas?
Thanks.

qin__23

Harry Kuhman
07-06-2009, 09:01 PM
Have you tried ifconfig ? What program is it that defaults to eth0 and can't use other devices?

qin__23
07-06-2009, 09:19 PM
Yes, I tried ifconfig.

I tried:
ifconfig -alias eth0
ifconfig alias eth0
ifconfig eth0 alias
ifconfig etho -alias

and none of them worked, replying with: "eth0: Host name lookup failure".

I also tried ifconfig eth0 down, but the program still attempted to use eth0.
The program is a closed-source software used to talk to a network attached device.

Is the structure of my command incorrect?
Is there a command to say swap eth0 for eth1?

qin__23

nalini
07-08-2009, 07:45 AM
use mii-tool or ethttool command to find out to which ethernet port the cable is connected to. The output will tell you which port is being picked up as eth0 , wire accordingly.

qin__23
07-08-2009, 12:49 PM
Will do. Thanks.

qin__23