#vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
IPADDR=192.168.1.145
GATEWAY=192.168.1.1
#vi /etc/resolv.conf
nameserver 202.102.192.68
启动出现
Bringing up interface eth0: arping: socket: Address family not supported by protocol
Error, some other host already uses address 192.168.1.145.
进入系统可以ifconfig eth0设置ip地址
上面的问题是内核编译选项问题
确认这两项是否选上:CONFIG_PACKET and CONFIG_INET
选上后再编译一下内核,启动,网络正常
阅读(6894) | 评论(0) | 转发(0) |