Re: [opensuse] eth* connection status via cli
Thanks Patrick, however that doesn't me if the cat 5 cable is connected or not. For example, if the computer has six nics and i have only one cabled, Yast will show which one is connected and I can set up setup that nic with an IP address. I am looking for a way in the command, prior to assigning IP addresses to the nics, which nic is cabled and connect to a network.
Many thanks,
James
Mine shows Rx & Tx packets, doesn't yours? ~~~~~~~ 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 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
"James D. Parra"
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?
Is this: ,---- | yast lan list `---- what you are looking for? Charles -- We are using Linux daily to UP our productivity - so UP yours! (Adapted from Pat Paulsen by Joe Sloan)
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:
On Wed, Apr 21, 2010 at 08:38:44PM -0700, James D. Parra wrote:
Thanks Patrick, however that doesn't me if the cat 5 cable is connected or not. For example, if the computer has six nics and i have only one cabled, Yast will show which one is connected and I can set up setup that nic with an IP address. I am looking for a way in the command, prior to assigning IP addresses to the nics, which nic is cabled and connect to a network.
Many thanks,
James
Mine shows Rx & Tx packets, doesn't yours? ~~~~~~~
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?
ethtool ethX | grep 'Link detected: yes' ? Petr -- Petr Uzel, openSUSE Boosters Team IRC: ptr_uzl @ freenode
participants (4)
-
Charles Philip Chan
-
James D. Parra
-
Petr Uzel
-
Toshi Esumi