当前位置: 技术问答>linux和unix
RHEL5怎么自动启动eth1?
来源: 互联网 发布时间:2017-01-22
本文导语: [root@localhost ~]# service network restart Shutting down interface eth0: [ OK ] Shutting down interface eth1: [ OK ] Shutting down loopback i...
[root@localhost ~]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down interface eth1: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
如上,eth1总是不自动起来,每次必须ifconfig eth1 up才可以,如何做到系统重启后,eth1自动起来?
Shutting down interface eth0: [ OK ]
Shutting down interface eth1: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
如上,eth1总是不自动起来,每次必须ifconfig eth1 up才可以,如何做到系统重启后,eth1自动起来?
|
将/etc/sysconfig/network-scripts/ifcfg-eth1中的的ONBOOT的值由no改为yes,然后重启网络服务就ok了