Linux See Ethernet Statistics

www.laut‮moc.irut‬
Linux See Ethernet Statistics

To view Ethernet statistics in Linux, you can use the "ifconfig" command.

The "ifconfig" command displays information about the network interfaces on the system, including the Ethernet interfaces. To display Ethernet statistics, you can use the following command:

ifconfig eth0

This will display information about the Ethernet interface "eth0", including the IP address, netmask, and MAC address. It will also show the current values for various statistics, such as the number of received and transmitted packets, errors, and collisions.

For example, the output of the "ifconfig" command might look like this:

eth0: 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::ba27:ebff:fe22:9a2d  prefixlen 64  scopeid 0x20<link>
        ether 00:1a:4b:27:eb:22  txqueuelen 1000  (Ethernet)
        RX packets 61229  bytes 81639892 (77.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 38306  bytes 5441344 (5.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

This shows the IP address and other information for the Ethernet interface "eth0", as well as the current values for the received and transmitted packets and other statistics.

You can also use the "ethtool" command to view more detailed Ethernet statistics, such as the link speed and duplex mode. For example:

ethtool eth0

This will display detailed information about the Ethernet interface "eth0", including the link speed, duplex mode, and other statistics.

Created Time:2017-10-30 10:17:38  Author:lautturi