close

解決方式

1. 到 /etc/sysconfig/network-scripts 目錄下修改 ifcfg-eth0 , 加入紅色部分

[root@RH90 network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@RH90 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
check_link_down(){
return 1 ;
}

 

2. 執行 ifup eth0 
[root@RH90 network-scripts]# ifup eth0

決定 eth0 裝置的 IP 資訊... 已完成。

 

3.如此成功取得 IP配置
[root@RH90 network-scripts]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:A0:21:2A
inet addr:172.17.4.2 Bcast:172.17.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50085 errors:0 dropped:0 overruns:0 frame:0
TX packets:153 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:7646145 (7.2 Mb) TX bytes:23731 (23.1 Kb)
Interrupt:10 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:58 errors:0 dropped:0 overruns:0 frame:0
TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8110 (7.9 Kb) TX bytes:8110 (7.9 Kb)

[root@RH90 network-scripts]#

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 火焰小賓 的頭像
    火焰小賓

    我的筆記

    火焰小賓 發表在 痞客邦 留言(0) 人氣()