安装nmap:

yum -y install nmap

使用nmap:

nmap -sP -PI -PT -oN vlan1.txt 192.168.168.0/22
#-oN vlan1.txt代表将结果输出到当前目录的vlan1.txt