小编Cam*_*ziz的帖子

CentOS:eth0 未在启动时启动

每当我重新启动 CentOS Hyper-V 虚拟机时,eth0都不会自动启动。我需要做的就是执行ifup eth0并且一切都已修复,但这在 ssh 中是不可行的!我从运行级别 3 开始。


[root@localhost ~]# cat /etc/*release*
CentOS release 6.2 (Final)
Run Code Online (Sandbox Code Playgroud)

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
Run Code Online (Sandbox Code Playgroud)
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
IPADDR=10.10.0.3
NETMASK=255.255.255.0 …
Run Code Online (Sandbox Code Playgroud)

networking centos eth0

10
推荐指数
2
解决办法
5万
查看次数

标签 统计

centos ×1

eth0 ×1

networking ×1