[CentOS7]测试udp端口

安装组件

yum install -y nc

UDP端口测试

[root@Proxy ~]# nc -vuz 172.16.254.251 161
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 172.16.254.251:161.
Ncat: UDP packet sent successfully
Ncat: 1 bytes sent, 0 bytes received in 2.04 seconds.