1, cd /etc/sysconfig/network-scripts/ 进入存放网卡信息的文件夹下
2,ls ls ifcfg-eth*
看显示有几个网卡
3,cat ifcfg-eth0 从上面ls 找出来的结果查看网卡配置信息!!
4、查看外网的ip
curl http://ipecho.net/plain; echo
1, cd /etc/sysconfig/network-scripts/ 进入存放网卡信息的文件夹下
2,ls ls ifcfg-eth*
看显示有几个网卡
3,cat ifcfg-eth0 从上面ls 找出来的结果查看网卡配置信息!!
4、查看外网的ip
curl http://ipecho.net/plain; echo
转载于:https://www.cnblogs.com/bluewelkin/p/4233699.html