Tech, Gadgets, Photography, Social Media and Poor Spelling

FreeBSD Find Out Network Card / Port Speed

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?Source:

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:

        ether 00:30:48:98:9c:bc
        inet netmask 0xffffffc0 broadcast
        media: Ethernet 10baseT/UTP 
        status: active

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


This entry was posted on June 22, 2012 by in BSD, howto, tip and tagged , , , .
%d bloggers like this: