Re: how do you tell if a line is up instead of the card/NIC status?

From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 03/30/04


Date: Tue, 30 Mar 2004 20:35:07 GMT

On Tue, 30 Mar 2004 14:46:39 -0500, Flip <> wrote:
>
>
> By doing a ifconfig I'm able to identify if the card is up. However, if
> there is no physical wire connected to that card/interface, how do I find
> this out at a script level?
>
> Any help would be appreciated. Thank you.
>
>

Depends on what OS you are running.

On Debian Linux, the interface doesn't come up unless there is an actual
connection, so /sbin/ifconfig wouldn't show the interface as being up
if the wire wasn't connected.

Trying to run, say, pppd, would fail and the interface wouldn't be created.

Ifconfig doesn't tell you that the card is there except indirectly. But you
can find out if it is from your boot-time messsages.

AC



Relevant Pages

  • Re: Internet connection
    ... > Check that your card is recognized with ifconfig. ... Windows IP Configuration ... Ethernet adapter Local Area Connection: ...
    (comp.unix.bsd.freebsd.misc)
  • Getting rid of strange interface
    ... I have an interface dev6273 on my laptop listed by ifconfig, ... I don't understand why it persists, ... always in connection with NetworkManager, ...
    (Fedora)
  • Re: Cant connect to internet
    ... I didn't find anything from ifconfig, ... Shouldn't the DVD I have from Suse provide a driver for this card? ... >> I have a broadband connection that I have a windows pc currently ...
    (comp.os.linux.networking)
  • Re: Wireless Card and SSID
    ... > I have a Netgear WAG511 PC Card and am using the ath driver. ... > do ifconfig, it shows no IP address NOR the ssid I set. ... > reason it doesn't see the SSID or DHCP I set up in rc.conf. ... you need to create a startup script that sets the interface ...
    (freebsd-questions)
  • RE: [SLE] double ip address on the same ethernet card: is it possible?
    ... > same card but with different parameters after some works have ... but only for an IP in the same network as the first one. ... As this file defines a network for the interface I think it may prove ... the following syntax on ifconfig to apply an additional address ...
    (SuSE)