How to check network interfaces Linux CLI

This is a quick reference guide on how to check your network interfaces on Linux Based Operating Systems.

1. ifconfig -a

[root@vps1 ~]# ifconfig 
ens3: flags=4163  mtu 1500
        inet 10.0.125.11  netmask 255.255.255.0  broadcast 10.0.125.255
        inet6 fe80::aff:fe00:7d0b  prefixlen 64  scopeid 0x20
        ether 02:00:0a:00:7d:0b  txqueuelen 1000  (Ethernet)
        RX packets 1186  bytes 116523 (113.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 925  bytes 117753 (114.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 6  bytes 416 (416.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6  bytes 416 (416.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

2. ip link show

[root@vps1 ~]# ip link show
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens3:  mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 02:00:0a:00:7d:0b brd ff:ff:ff:ff:ff:ff

3. netstat -i

[root@vps1 ~]# netstat -i
Kernel Interface table
Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
ens3      1500     1336      0      0 0          1022      0      0      0 BMRU
lo       65536        6      0      0 0             6      0      0      0 LRU

If you are new to the world of Linux, an avid Linux enthusiast or a student why not try our 0.99p per month Linux VPS.

Simply click on the screen shot below to find out more or navigate to https://piggybank.cloud

Thank you for reading and please feel free to leave any feedback.

Leave a Reply

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

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s