随笔分类 - Linux Network Config
摘要:fping -a 192.168.56.1 192.168.56.255 -g 2>/dev/null #!/bin/bash for ip in 192.168.56.{1..255} ; do ( ping $ip -c 2 &> /dev/null ; if [ $? -eq 0 ] ; th
阅读全文
posted @ 2020-08-07 17:37
fndefbwefsowpvqfx
摘要:查看网关 gate way route -n 查看DNS服务器 sudo cat /etc/resolv.conf 列出所有网卡 ifconfig | cat | grep -E "^[[:graph:]]" | sed 's/:.*//g' ls /sys/class/net 启动python h
阅读全文
posted @ 2020-08-07 16:44
fndefbwefsowpvqfx
摘要:监听 8001端口 nc -l -t -p 8001 在另一台机器连接8001 nc 192.168.56.101 8001
阅读全文
posted @ 2020-08-07 15:09
fndefbwefsowpvqfx
摘要:检测其它主机端口是状态 curl ip:port curl 192.168.1.1:8080 检测本机端口是否被占用 lsof -i:8000 查看所有端口详细信息,包括进程id sudo netstat -antulp sudo netstat -anltup | grep 8000 -a all
阅读全文
posted @ 2020-06-30 11:39
fndefbwefsowpvqfx

浙公网安备 33010602011771号