About Linux FAQ

Browse More FAQs:

FreeBSD Find Out Network Card / Port Speed

Posted by Vivek Gite [Last updated: August 18, 2008]

Q. Under Linux I can use Ethtool and mii-tool, but they are not available under FreeBSD. How do I tell the port speed of the nic under FreeBSD operating system?

A. Under FreeBSD the ifconfig utility is used to assign an address to a network interface and/or configure network interface parameters.

The ifconfig utility must be used at boot time to define the network address of each interface present on a machine; it may also be used at a later time to redefine an interface's address or other operating parameters.

It can also display port speed of the nic under FreeBSD. Simply type /sbin/ifconfig and look for media in output:
$ /sbin/ifconfig | grep media
$ /sbin/ifconfig {interface} | grep media
$ /sbin/ifconfig em0 | grep media
$ /sbin/ifconfig

Sample output:

em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
        ether 00:30:48:98:9c:bc
        inet 10.24.116.2 netmask 0xffffffc0 broadcast 10.24.116.63
        media: Ethernet 10baseT/UTP 
        status: active

Capture each and every moment of life with a FREE 4 GB SD memory card with the purchase of select digital cameras from Canon, Nikon, Pentax and others from Amazon

E-mail    Print    Can't find an answer to your question? Contact us

Related Other Helpful FAQs:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Tags: , , , , , , , , , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Powered by Open source software.