每当我重新启动CentOS Hyper-V VM时,eth0
它不会自动启动。我需要做的就是执行,ifup eth0
并且所有操作都是固定的,但这在ssh中是不可行的!我从运行级别3开始。
[root@localhost ~]# cat /etc/*release*
CentOS release 6.2 (Final)
在ifup eth0
控制台上执行后:
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:15:5D:2B:2B:07
inet addr:10.10.0.3 Bcast:10.10.0.255 Mask:255.255.255.0
inet6 addr: fe80::215:5dff:fe2b:2b07/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4656 (4.5 KiB) TX bytes:6399 (6.2 KiB)
Interrupt:9 Base address:0xa000
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
IPADDR=10.10.0.3
NETMASK=255.255.255.0
GATEWAY=10.10.0.1
USERCTL=no
ONBOOT=yes
[root@localhost ~]# chkconfig --list | grep network
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
尝试关闭网络管理器后
[root@localhost ~]# chkconfig NetworkManager off
error reading information on service NetworkManager: No such file or directory
[root@localhost ~]# service NetworkManager status
NetworkManager: unrecognized service
最新干净启动
[root@localhost ~]# grep eth0 /var/log/messages
Jul 7 02:12:44 localhost kernel: eth0: Digital DS21140 Tulip rev 32 at MMIO 0xfebff000, 00:15:5d:2b:2b:07, IRQ 9.
Jul 7 02:13:15 localhost kernel: eth0: Using EEPROM-set media 100baseTx-FDX.
[root@localhost ~]# dmesg | grep eth0
eth0: Digital DS21140 Tulip rev 32 at MMIO 0xfebff000, 00:15:5d:2b:2b:07, IRQ 9.
eth0: Using EEPROM-set media 100baseTx-FDX.
eth0: no IPv6 routers present
我所见过的唯一问题是,当我执行以下命令时
ifup eth0
得到以下错误,但eth0
仍然可以开始使用:
[root@localhost ~]# ifup eth0
/etc/sysconfig/network-scripts/ifup-ipv6: line 56: /etc/sysconfig/network: No such file or directory
/etc/sysconfig/network-scripts/ifup-aliases: line 125: /etc/sysconfig/network: No such file or directory
哪个CentOS版本?5.x或6.x?
—
2012年
它是centos 6.2
—
Cameron Aziz
与“启动接口eth0:设备eth0似乎不存在,延迟初始化[FAILED]”问题有关。
—
伊万·