How To: Linux Show List Of Network Cards

You can use the ip or ifconfig command to show a list of network cards on a Linux system.

Here’s how you can use the ip command:

  1. Open a terminal window.

  2. Run the following command: ip link show.

  3. The output will show a list of network interfaces, each with a unique identifier in the form <interface_name>:. For example:

 
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000

Here’s how you can use the ifconfig command:

  1. Open a terminal window.

  2. Run the following command: ifconfig.

  3. The output will show a list of network interfaces, each with its own section. For example:

 
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::a00:27ff:feb1:f0b2 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:b1:f0:b2 txqueuelen 1000 (Ethernet)
RX packets 819 bytes 73524 (71.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 512 bytes 92416 (90.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Leave a Comment