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

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.

ADVERTISEMENTS

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

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
0 comments… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.