我在 XenServer 上运行 Ubuntu 和 CentOS 系统。Ubuntu Box 从 DHCP 获取 IP 毫无问题。CentOS 不会使用 DHCP,但静态地址可以正常工作。
[root@XenCentOS ~]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... failed.
[FAILED]
/etc/sysconfig/network-scripts/ifcfg-eth0 文件
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=5A:3C:1C:48:C2:6C
ONBOOT=yes
我为 DHCP 添加了一条 iptables 规则,但似乎不起作用,所以我关闭了 iptables。知道是什么原因造成的吗?
dmesg 中也有一些有趣的项目
Initialising Xen virtual ethernet driver.
alloc irq_desc for 274 on node 0
alloc kstat_irqs on node 0
alloc irq_desc for 273 on node 0
alloc kstat_irqs on node 0
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ip6_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
eth0: no IPv6 routers present
lo: Disabled Privacy Extensions
eth0: no IPv6 routers present
lo: Disabled Privacy Extensions
eth0: no IPv6 routers present
lo: Disabled Privacy Extensions
eth0: no IPv6 routers present