linux网络配置,查看IP地址

linux等等学习参考博客:https://www.cnblogs.com/pyyu/p/9276851.html

1.在安装好的linux上面输入cd /etc/sysconfig/network-script/

2.输入ls查看网卡名称,然后编写网卡比如vi ifcfg-esn33

3.ONBOOT=yes这里改成yes后网络就会连接成功

 

 

查看ip地址

由于linux的版本不同,所以查看ip地址的方法有两种

1.ifconfig

2.ip addr

 

 

出现ifconfig: command not found的错误是参考博客https://www.cnblogs.com/dunitian/p/4974761.html

 

posted @ 2019-05-06 17:00  QV  阅读(4891)  评论(0编辑  收藏  举报