linux Radhat Enterprise 5.3
敲命令设置IP地址时出现:
>>ifconfig eth0 172.16.5.143 netmask 255.255.255.0 up
>>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
ONBOOT=yes
BOOTPROTO=none //原来为 hdcp
HWADDR=00:0c:29:2b:c7:e5
BROADCAST=172.16.5.255
IPADDR=172.16.5.142
NETMASK=255.255.255.0
NETWORK=172.16.5.0
TYPE=Ethernet
保存后
>>service network restart
竟然好使了。。。。