Contents
netstat command – It is used to display network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. ifconfig command – It is used to display or configure a network interface.
How do I see interfaces in Linux?
Identify Network Interfaces on Linux
- IPv4. You can get a list of the network interfaces and IPv4 addresses on your server by running the following command: /sbin/ip -4 -o a | cut -d ‘ ‘ -f 2,7 | cut -d ‘/’ -f 1. …
- IPv6. …
- Full output.
Which command is used to check interface?
The i option of netstat shows the state of the network interfaces that are configured with the machine where you ran the command. Using this display, you can find out how many packets a machine thinks it has transmitted and received on each network.