[code:1]# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 localhost.localdomain localhost
dhcp-6622-18[/code:1]
你的/etc/hosts这个文件有问题,改成这样试试。
[code:1]# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost[/code:1]
注意,去掉对127……这一行的注释。
这样试试:
ifconfig
看看你的网卡获得的IP,假如是192.168.0.17,然后这样修改一下/etc/hosts:
[code:1]# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.17 dhcp-6622-18[/code:1]
重启一下network
[code:1]# /etc/rc.d/init.d/network restart[/code:1]
再注销一下看看有没有效果。
但是你的IP是DHCP Server分配的,重启电脑IP变了的话就不好办了。
那我就算帮你顶了一下了。