linux管理:端口存活检测
- telnet
telnet 192.192.193.211 22 # tcp
nc
nc -z 192.192.193.211 22 # tcp nc -uz 192.192.193.211 22 # udp nc -uz 192.192.193.211 22-30 # 多端口 -z #不发送输出 仅仅scan -u #udp , 默认tcp -v #详细输出
psping # 微软官方提供, 看起来对udp支持的不好 # win下
psping -t www.baidu.com:80 # tcp psping -? [i|t|l|b] -? i Usage for ICMP ping. -? t Usage for TCP ping. -? l Usage for latency test. -? b Usage for bandwidth test. -nobanner Do not display the startup banner and copyright message.
- nmap
nmap -sU 1.2.3.4 -p 53 -Pn