
<fqdn> (fully qualified domain name). server-name.company.com him, replace him, depending on the circumstances, with the address of the site or server of interest, for example, with something like server-name.company.com .ping utility, as can be judged by its name, is used to test communication between network nodes, between the computer on which it is started, and another system. This utility uses the ICMP protocol, sending pings that are answered by the remote system that receives them. Using ping , in addition, is a good way to check network connectivity as the first step in troubleshooting a network. The ping command can be used with IPv4 and IPv6 addresses. Here you can read details about IP-addresses and about working with them. IPv4: ping <ip address>/<fqdn> IPv6: ping6 <ip address>/<fqdn> 
Traceroute is a nice utility that allows you to explore data transfer routes between computers. While the ping command seeks to establish whether it is possible to establish a connection between two network nodes, traceroute gives information about the IP addresses of routers through which data passes from your system to the destination, for example, to a website or server. The traceroute command is usually applied in the second step of network diagnostics, after the ping command. traceroute <ip address>/<fqdn> telnet utility allows you to connect to a remote computer using the Telnet protocol and interact with it using the appropriate commands. telnet <ip address>/<fqdn>  netstat -l -at key, in order to get data about UDP ports, use the -au key. netstat -a  netstat -r 
 netstat -s 
netstat call option allows you to find out information about packets sent and received (transmission / receive, TX / RX) on each interface:
nmcli utility nmcli great for managing network connections, for making settings and for solving other similar tasks. With it, you can control the program NetworkManager and modify the network parameters of various devices.nmcli to list the network interfaces: nmcli device  nmcli device show <interface>  nmcli connection 
 nmcli connection down <interface>  nmcli connection up <interface>  nmcli con add type vlan con-name <connection-name> dev <interface> id <vlan-number> ipv4 <ip/cidr> gw4 <gateway-ip>  ip route 
 route add default gw <gateway-ip>  route add -net <network ip/cidr> gw <gateway ip> <interface>  route del -net <network ip/cidr> route command.
 ip neighbor 
ip neigh
arp command (ARP is an abbreviation for Address Resolution Protocol, addressing protocol) is similar to ip neighbor . The arp utility displays information about the compliance of IP addresses with MAC addresses. Here is how to use it: arp 
tcpdump , wireshark , tshark , and others. They are used to capture network traffic in packets transmitted by the system or in packets received by it. This makes them a very valuable administrator tool to help determine the causes of various network problems. Those who prefer the command line to all other ways to communicate with computers will love tcpdump . For those who love graphical interfaces, wireshark can be recommended - a great tool for capturing and analyzing packets. The tcpdump utility is a Linux tool for capturing network traffic. It can be used to capture and output traffic with filtering by ports, protocols, and other features. tcpdump -i <interface-name> -w flag and specifying the file name: tcpdump -w <output-file.> -i <interface-name> tcpdump .
 tcpdump -i <interface> src <source-ip>  tcpdump -i <interface> dst <destination-ip> tcpdump to capture packets for a given port number, for example, it can be port 53, 80, 8080, and so on: tcpdump -i <interface> port <port-number> tcpdump capture packets of a given protocol, such as TCP, UDP, or others: tcpdump -i <interface> <protocol> iptables utility is similar to a firewall, it supports packet filtering, which allows you to manage traffic by passing or blocking it. The range of possibilities of this utility is huge. Consider a few of the most common options for its use.iptables rules: iptables -L  iptables -F  iptables -A INPUT -i <interface> -p tcp –dport <port-number> -m state –state NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -o <interface> -p tcp -sport <port-number> -m state – state ESTABLISHED -j ACCEPT  iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT nslookup tool is used to get information about assigning IP addresses to network resources. It can also be used to obtain information from DNS servers, for example, such as all DNS records for a certain web site (we will consider an example below). The nslookup is similar to the dig (Domain Information Groper) utility. nslookup <website-name.com>  nslookup -type=any <website-name.com> ss is a utility for displaying statistical information about sockets.nmap <ip-address> - the name of this command is short for Network Mapper. It scans network ports, detects hosts, discovers MAC addresses and performs many other tasks.ip addr/ifconfig -a - this command provides information about IP-addresses and other data on all interfaces of the system.ssh -vvv user@<ip/domain> - this command allows you to connect via SSH to another computer using the specified IP address or computer's domain name and username. The -vvv flag allows -vvv to get detailed information about what is happening.ethtool -S <interface> - this command allows you to display statistical information on the specified interface.ifup <interface> - this command enables the specified interface.ifdown <interface> - this command disables the specified interface.systemctl restart network - with this command you can restart the system network subsystem./etc/sysconfig/network-scripts/<interface-name> —This is the interface configuration file used to specify the IP address, network, gateway, and other parameters for a given interface. Here you can set the interface to use the DHCP mode./etc/hosts - this file contains information on the correspondence of hosts or domains to IP addresses configured by the administrator./etc/resolv.conf - DNS settings are stored in this file./etc/ntp.conf - this file stores the NTP settings.
Source: https://habr.com/ru/post/417485/
All Articles