![]() For example, use ethtool -i eth0 to find hardware-related information about your eth0 interface, or ethtool -S eth0 to get usage statistics on packets received and sent through that interface. This tool allows admins to monitor and set different properties of the network card. ![]() If you're working with traditional physical network cards instead of interfaces in a virtual machine, you'll like ethtool. This versatile tool can perform a live packet capture, but also can read in a capture file that was created with another tool, such as tcpdump. While tcpdump dumps network traffic on the stdout, admins can use Wireshark to click through network communication streams within a convenient graphical interface. Wireshark is a graphical tool that admins can use to analyze and sniff network packets. Another common option is to use -w, as in tcpdump -i eth0 -w packets.pcap, which writes the result to a file that admins can analyze later using the Wireshark utility. ![]() If you run it without any arguments, such as in tcpdump -i eth0, the command will reveal large amounts of packets passing by. This packet sniffing command captures traffic that goes through a specific network interface. Tcpdump is a Linux networking command that allows data center administrators to analyze network activity. The ip command and its subcommands work well for troubleshooting connection issues, but everything done with this command will disappear after rebooting your machine. For example, ip link set promisc on temporarily sets a network interface to promiscuous mode, allowing it to capture all packets sent on the network - not just packets addressed to its own media access control address. The ip command offers more advanced options, as well. To go beyond that, use ip addr add dev eth0 10.0.0.10/24 to temporarily assign an IP address to the eth0 network interface. You can use ip link show, ip addr show or ip route show to see the current link state, and address configuration, such as router configuration. The Swiss Army knife of Linux networking commands, ip, is designed to work with subcommands, such as ip link, to manage and monitor the network link, ip addr to manage IP addresses and ip route to manage the routing table. Here are six helpful Linux networking commands to ensure continuity.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |