host 域名 正向解析
nslookup ip 反向解析
nslookup 域名 正向解析
dig 域名 正向解析
traceroute www.baidu.com 查看路由跳数 (路由最大15跳,16跳为不可达 )
[root@sw-data-100 ~]#arp -d lvs出现迁移数据ARP的问题 ,清除arp缓存
[root@sw-data-100 ~]#arp -a 查看arp表
[root@sw-data-100 ~]#ifconfig | head -2
[root@sw-data-100 ~]#ip ad li 查看ip
[root@sw-data-100 ~]#ifconfig 网卡名 192.168.1.1/24
[root@sw-data-100 ~]# ifconfig eth0 192.168.5.2/24 添加临时网卡
[root@sw-data-100 ~]#netstat -antpul 查看端口 pid
[root@sw-data-100 ~]#netstat -antpul | grep :端口
[root@sw-data-100 ~]#lsof -i ;端口
[root@sw-data-100 ~]#route -n
[root@sw-data-100 ~]#netstat -rn
[root@sw-data-100 ~]#ab -c100 -n 100 http://localhost/index.html
-n1000 表示总请求数位1000
-c 表示并发用户数为10
#ss -lntp