In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
The purpose of this article is to share with you the contents of the Shell tool management tools of Linux network management. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Linux is a free-to-use and freely distributed Unix-like operating system. It is a multi-user, multi-tasking, multi-threaded and multi-CPU operating system based on POSIX and UNIX. It runs major UNIX tools, applications, and network protocols. It supports 32 bit and 64 bit hardware. Linux inherits the design idea of Unix with network as the core, and is a multi-user network operating system with stable performance. Therefore, it has a wide variety of orders about network management, each showing their magical powers. "with regard to network management, there is a long way to go, and there is a long way to go.
Lspci | grep-I ethernet [check the model of the network card]
Description: lspci is a utility that displays information about PCI buses in the system and the devices connected to them
Ethtool eth0 [View the details of the network card]
Description: query or control network drivers and hardware settings
Ifconfig [used to view and configure network devices]
Description: ifconfig is used to configure kernel resident network interfaces. It is used to set the interface as needed when booting. It is usually needed only when debugging or when system tuning is needed.
Ifup [start specified network device / network card]
Description: starts the network interface, and the ifup command can be used to configure (or unconfigure separately) the network interface based on the interface definition in the file / etc / sysconfig / network and / etc / sysconfig / network-scipts / ifcfg-
Ifdown [shuts down the specified network device / network card]
Description: the ifdown command to turn off the network interface can be used to configure (or unconfigure separately) the network interface based on the interface definition in the file / etc / sysconfig / network and / etc / sysconfig / network-scipts / ifcfg-
Ping [determines whether the target host survives and obtains the IP address, as well as network performance statistics]
Description: Ping uses ICMP protocol to force ECHO_REQUEST datagrams to export ICMP ECHO_RESPONSE,ECHO_REQUEST datagrams from hosts or gateways ('ping') with IP and ICMP headers, followed by struct timeval, followed by any number of' pad' bytes packaged for filling
Route [displays and sets the network routing table in the Linux kernel, mainly setting up static routes. Route manipulates the kernel's IP routing table. Its main purpose is to set a static route to a specific host or network through an interface after it has been configured using the ifconfig program.
Tranceroute [tracks all paths of packets over the network]
Description: Traceroute tracks routing packets from the IP network to a given host. It utilizes the time-to-live (TTL) field of the IP protocol and attempts to derive an ICMP TIME_EXECEEDED response from each gateway along the host path.
Nslookup [tool for querying domain name resolution]
Description: Nslookup is a program for querying Internet domain name servers. Nslookup has two modes: interactive and non-interactive. Interactive mode allows users to query name servers for information about various hosts and domains, or to print a list of hosts in the domain. -interaction mode is used for. Print only the name of the host or domain and the requested information.
Netstat [mainly used to check the network configuration and status of the host (local machine), to view statistical data related to IP, TCP, UDP, ICMP protocols, and to view and display network connections (including inbound and outbound), system routing table, network interface status, etc.]
Description: print network connections, routing tables, interface statistics, camouflage connections and multicast membership
Dig [a tool for deep mining domain name resolution]
Description: dig (domain information groper) is a flexible tool for querying DNS name servers. It performs a DNS lookup and displays the answers returned from the name server of the query. Most DNS administrators use dig to solve DNS problems because of its flexibility, ease of use, and output clarity. Other lookup tools tend to have less functionality than diig.
Tcpdump [defines a packet analysis tool that intercepts packets on the network. ]
Description: tcpdump prints a description of the contents of the packet that matches the Boolean expression on the network interface; the description is preceded by a timestamp and is printed as hours, minutes, seconds and seconds since midnght by default. It can also be run.
Dstat [real-time monitoring of cpu, disk, network, IO, memory, etc.]
Description: Dstat is a versatile alternative to vmstat,iostat and ifstat.dstat, overcoming some limitations and adding some additional functionality. DStat allows you to view all system resources immediately. You can combine disk usage with IDE interrupts to use the controller, or directly compare the number of network bandwidth with disk throughput (at the same interval)
Iftop [monitors the real-time traffic of the network card (network segment can be specified), reverse parses IP, displays port information, etc.]
Description: Iftop listens for network traffic on a named interface, or listens for what looks like an external interface on the first interface (if not specified) and displays a table of current bandwidth usage for a pair of hosts. Must run with sufficient permissions. Monitor all network traffic on the interface; for more information, see pcap, but on most systems, this means that it must run as root.
Iptraf [monitors the health of bandwidth]
Nload [monitors the network speed of the current system]
Description: Nload is a console application that monitors network traffic and bandwidth usage in real time. Use two graphs to visualize input and output traffic and provide additional information, such as the total amount of data transferred and minimum / maximum network usage.
Vnstat [see server bandwidth traffic statistics]
Description: Vnstat is a console-based network traffic monitor that keeps hourly, daily and monthly logs of network traffic for selected interfaces. However, it is not a packet sniffer. Transaction information is read from the proc or sys file system, depending on availability. In this way, you can use vnstat on most systems even without root privileges.
Nethogs [View Interface Statistics report]
Description: Nethogs is a small network top-level tool. Instead of breaking traffic like every protocol or every subnet, like most of these tools. Group by process and do not rely on special kernel modules to load. If there is suddenly a lot of traffic for the network, you can start nethog and immediately see which PID is causing the situation and whether it is some kind of rotation process.
Thank you for reading! This is the end of this article on "what are the Shell tools for Linux network management?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 215
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
#! / bin/bash#for security of osfor ip in `cat ip.txt`doecho-e "\ 033 [31m#$ip #
© 2024 shulou.com SLNews company. All rights reserved.