centos ifconfig command not found

1.ip addr 查看网卡,例如我本机是eno16777736

2.进入/etc/sysconfig/network-scripts

3. vi 打开ifcfg-eno16777736文件,将ONBOOT=no更改为ONBOOT=yes(这句话的意思是开启网卡,如果这个地方不修改的话,yum install 是用不了,会报错,原因是没有联网)

4.reboot 系统

5. yum install net-tools(ifconfig 命令在net-tools类库中)

posted @ 2017-11-10 10:49  PyJava老鸟  阅读(162)  评论(0编辑  收藏  举报