[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: link status in ifconfig



On Tue, Feb 15, 2005 at 12:44:33PM +0500, Sergey Nikolenko wrote:
> Hello all.
> 
> The FreeBSD's ifconfig has information about link status ('active' or 
> 'no carrier'):
> 
> 
> rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.100.1 netmask 0xffffffe0 broadcast 192.168.100.31
>         ether 00:02:44:74:4c:44
>         media: Ethernet autoselect (100baseTX <full-duplex>)
> 	status: active      <<<<<
> 
> How can I know link status of the NIC in OpenBSD?
> 

With ifconfig(8)

> ifconfig em
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:0a:e4:23:e9:a9
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet6 fe80::20a:e4ff:fe23:e9a9%em0 prefixlen 64 scopeid 0x1
        inet 10.0.3.22 netmask 0xffffff00 broadcast 10.0.3.255

Some cheapo ethernet cards may have problem to report correct link status.
In this case either nothing will be printed or "status: unknown".
-- 
:wq Claudio



Visit your host, monkey.org