1.查看哪些IP连接本机
[pso@U10-9 ~]$ netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:2222 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:51790 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 52 10.143.32.19:2222 10.108.22.231:53541 ESTABLISHED
tcp 0 0 10.143.32.19:41471 10.143.33.20:62015 ESTABLISHED
udp 0 0 0.0.0.0:817 0.0.0.0:*
udp 0 0 127.0.0.1:842 0.0.0.0:*
udp 0 0 0.0.0.0:43744 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 0.0.0.0:631 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 24303554 /var/titanagent/log.socket
unix 2 [ ACC ] STREAM LISTENING 10806 /var/run/cups/cups.sock
uni