On Wed, 2010-04-21 at 20:38 -0700, James D. Parra wrote:
Well, here is the issue; from a Rescue session I need to assign an address to a nic that is actually connected to the network. Running ifconfig only shows only 'lo' until I assign an address to an eth* device. Afterwards, ifconfig will show eth0, for example, if that is the nic i added the address to. I could go and add an address to eth0, ping the network, if it fails remove the IP and add it to eth1, ping the network, and so on until I find the the live nic. I am looking for something a little more efficient. Since Yast shows if a nic is connected or not I am assuming that is using a command that shows the connection status of the nics. Any idea what command(s) that may be?
Thanks again,
James How about this:
ip link show
I added a 3com nic to my 11.2 and now shows 3: eth1:
toshi@suse112:~> ip link show
1: lo: