Using netstat command can let you know the network situation of the whole Linux system.
grammar
netstat[-accefhilmnnoprstuvvwx][-A & lt; Network type > ][-ip]
parameter
-a or-all: displays the Socker in all connections.
-A & lt; Network type > or-:lists the related addresses in the connection of this network type.
-c or-continuous: list the network status continuously.
-C or-cache: displays the cache information of the router configuration.
-e or-extend: Displays other information about the network.
-F or-fib: shows the route cache.
-g or-groups: displays the list of members of the multicast function group.
-h or-help: online help.
-i or-interfaces: displays the network interface information form.
-l or-listening: displays the socket of the monitored server.
-M or -masqueue: Show disguised network connections.
-n or-numeric: use the IP address directly without using the domain name server.
-N or-netlink or-symbolic: displays the symbolic connection names of network hardware peripherals.
…………
There are many parameters, so I won't list them one by one!