|
在/etc目录下也没有resolv.conf文件
然后我自己在/etc/sysconfig/network-scripts下建了一个ifcfg-eth0文件,配置为
DEVICE=eth0
BOOTPROTO=static(dhcp)
BROADCAST=192.168.1.255
IPADDR=192.168.1.101
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
HWADDR=00:0C:29:69:76:CA
ONBOOT=yes
TYPE=Ethernet
但是重启网络后我用ifconfig eth0查看时发现没有IPV4地址,如下所示:
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:69:76:CA
inet6 addr: fe80::2c0:9fff:fe94:780e/64 Scopeink
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:850 errors:0 dropped:0 overruns:0 frame:0
TX packets:628 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:369135 (360.4 KiB) TX bytes:75945 (74.1 KiB)
Interrupt:10 Base address:0x3000
这个是为什么啊?麻烦各位高手解答下...
谢谢... |
|