How to get Ethernet Link Speed in MAC OS X Through Command Prompt

last updated in Categories , ,

I‘m a Mac OS X user. How do I find out my Ethernet Link Speed in terminal using bash shell prompt? How do I see my current Ethernet connection Speed in Mac OS X?

To check the status or the speed of your Ethernet network connection open the Terminal application. Type the following command for selected a network interface to see your current NIC speed.

How to check ethernet connection speed on the mac os x using bash command prompt

To see a list of all interfaces, enter:
ifconfig
ifconfig | more

OR
netstat -i
Sample outputs:

Name  Mtu   Network       Address            Ipkts Ierrs    Opkts Oerrs  Coll
lo0   16384                        5385284     0  5385284     0     0
lo0   16384 localhost   ::1                5385284     -  5385284     -     -
lo0   16384 127           localhost        5385284     -  5385284     -     -
lo0   16384 viveks-macb fe80:1::1          5385284     -  5385284     -     -
en0   1500      60:03:08:94:15:7c   465184     0   620008     0     0
en1   1500      72:00:02:55:53:60        0     0        0     0     0
en2   1500      72:00:02:55:53:61        0     0        0     0     0
en6   1500      68:5b:35:c1:e0:53   337483     0   271560     0     0
en6   1500  192.168.1     wks01             337483     -   271560     -     -

The syntax is:
ifconfig interfaceName | grep media
If your interface name is en1, enter:
ifconfig en1 | grep media
If your interface name is en6, enter:
ifconfig en6 | grep media
Sample outputs:

Fig.01: Check ethernet connection speed on the Mac os x command
Fig.01: Check ethernet connection speed on the Mac os x command

In this example, my link speed is set to 100 Mb/s.

Not a CLI fan? Use network utility

Open network utility by just typing “network utility” in spotlight. You can use Network Utility to view each network connection, including the hardware address of the interface, the IP addresses assigned to it, its speed and status (active or inactive), the name of its manufacturer and model, a count of data packets sent and received, NIC speed, and a count of transmission errors and collisions.

Fig.02: How To Check Ethernet Card (en6) For  Speed?
Fig.02: How To Check Ethernet Card (en6) For Speed?

Releated

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 0 comments/add one below):