ifconfig -a //看netmask ,dns netstat -rn //看网关 参考 https://blog.csdn.net/zljjava/article/details/48345653