HostOnNet Blog

How To Check Active Network Interfaces In linux

Looking for Linux Server Admin or WordPress Expert? We can help.

The “ifconfig” command is used for displaying current network configuration details.

The ifconfig command also used to check the assigned IP address of an server.

stefin@pitcy-Inspiron-1525:~$ ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6214 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6214 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:671138 (671.1 KB)  TX bytes:671138 (671.1 KB)

wlan0     Link encap:Ethernet  HWaddr 00:22:69:5c:32:32  
          inet addr:192.168.0.13  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::222:69ff:fe5c:3232/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:129323 errors:0 dropped:0 overruns:0 frame:0
          TX packets:139135 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:94271476 (94.2 MB)  TX bytes:47689858 (47.6 MB)

We can check all network interfaces using command ifconfig -a

stefin@pitcy-Inspiron-1525:~$ ifconfig -a
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6772 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6772 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:726108 (726.1 KB)  TX bytes:726108 (726.1 KB)

wlan0     Link encap:Ethernet  HWaddr 00:22:69:5c:32:32  
          inet addr:192.168.0.13  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::222:69ff:fe5c:3232/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:142335 errors:0 dropped:0 overruns:0 frame:0
          TX packets:153325 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:98838334 (98.8 MB)  TX bytes:56333178 (56.3 MB)

Enable / Disable an Interface

$ ifconfig eth0 down

$ ifconfig eth0 up

About Annie

I've been working in Technical Section for over 10 years in a wide range of tech jobs from Tech Support to Software Testing. I started writing blog for my future reference and useful for all.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.