查看IP
方式一:ifconfig -a
首先需要安装net-tools工具,命令:sudo apt install net-tools
,否则会报错:
然后通过命令ifconfig查看就可以了
查看默认的网关地址命令:route -n
查看DNS命令:nsloopup hcos