1 Features:
Displays information about the local network connection, the running port, and the routing table.
2 Common options
-A: Displays all connections and listening ports on this machine
-N: The network IP address displays the currently established valid connection and port
-R: Show routing table information
-S: Show statistics by protocol
-V: Displays the currently active connection
-T: Display of all TCP protocol connections
-U: Show all UDP connection conditions
-i:xianshi automatic configuration of port status
-L: Only show connection status bit Listen service network status
3 Upper Option Test
(1) NETSTAT-RN------> Display current system routing information
(2) NETSTAT-TN display the current TCP connection
(3) Netstat-tlnpu------------> Displays the network connections and corresponding port information that have been initiated in the current system
(4) NETSTAT-ATUNP display resource information in the connected state
Using Netstat in Linux