Topic review - FreeBSD ifconfig display capability and supported media types for an interface
Author
Message
debuser
Post subject: FreeBSD ifconfig display capability and supported media types for an interface | Posted: Thu Jul 08, 2010 6:26 am
FreeBSD ifconfig display capability and supported media types for an interface
ifconfig FreeBSD utility is used to configure network interface parameters. To display the capability and supported media types of an interface the -m argument must be used.
Ex:
Code:
# ifconfig -m em0 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=5b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,POLLING> capabilities=5b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,POLLING> inet 82.78.227.177 netmask 0xfffffff0 broadcast 82.78.227.191 ether 00:04:23:c7:94:50 media: Ethernet autoselect (1000baseTX <full-duplex>) status: active supported media: media autoselect media 1000baseTX media 1000baseTX mediaopt full-duplex media 100baseTX mediaopt full-duplex media 100baseTX media 10baseT/UTP mediaopt full-duplex media 10baseT/UTP
Quote:
The ifconfig utility displays the current configuration for a network interface when no optional parameters are supplied. If a protocol family is specified, ifconfig will report only the details specific to that pro- tocol family.
If the -m flag is passed before an interface name, ifconfig will display the capability list and all of the supported media for the specified interface. If -L flag is supplied, address lifetime is displayed for IPv6 addresses, as time offset string.
FreeBSD ifconfig display capability and supported media types for an interface
[i]ifconfig[/i] FreeBSD utility is used to configure network interface parameters. To display the capability and supported media types of an interface the [i]-m[/i] argument must be used.
Ex: [code] # ifconfig -m em0 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=5b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,POLLING> capabilities=5b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,POLLING> inet 82.78.227.177 netmask 0xfffffff0 broadcast 82.78.227.191 ether 00:04:23:c7:94:50 media: Ethernet autoselect (1000baseTX <full-duplex>) status: active supported media: media autoselect media 1000baseTX media 1000baseTX mediaopt full-duplex media 100baseTX mediaopt full-duplex media 100baseTX media 10baseT/UTP mediaopt full-duplex media 10baseT/UTP [/code]
[quote] The ifconfig utility displays the current configuration for a network interface when no optional parameters are supplied. If a protocol family is specified, ifconfig will report only the details specific to that pro- tocol family.
If the -m flag is passed before an interface name, ifconfig will display the capability list and all of the supported media for the specified interface. If -L flag is supplied, address lifetime is displayed for IPv6 addresses, as time offset string. [/quote]