[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: link status in ifconfig
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: link status in ifconfig
- From: Henning Brauer <lists-openbsd_(_at_)_bsws_(_dot_)_de>
- Date: Tue, 15 Feb 2005 13:39:36 +0100
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
* Sergey Nikolenko <admin_(_at_)_trigor_(_dot_)_ru> [2005-02-15 09:23]:
> 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?
That _is_ the link status.
The descriptions come from sys/net/if_media.h
#define IFM_STATUS_DESCRIPTIONS { \
{ IFM_ETHER, IFM_AVALID, IFM_ACTIVE, \
{ "no carrier", "active" } }, \
{ IFM_FDDI, IFM_AVALID, IFM_ACTIVE, \
{ "no ring", "inserted" } }, \
{ IFM_TOKEN, IFM_AVALID, IFM_ACTIVE, \
{ "no ring", "inserted" } }, \
{ IFM_IEEE80211, IFM_AVALID, IFM_ACTIVE, \
{ "no network", "active" } }, \
{ IFM_TDM, IFM_AVALID, IFM_ACTIVE, \
{ "no carrier", "active" } }, \
{ IFM_CARP, IFM_AVALID, IFM_ACTIVE, \
{ "backup", "master" } }, \
{ 0, 0, 0, \
{ NULL, NULL } } \
}
--
http://2suck.net/hhwl.html - http://www.bsws.de/
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
Visit your host, monkey.org