|
楼主 |
发表于 2005-8-26 16:50:59
|
显示全部楼层
非常感谢!看来我的问题和你一样。
把我的解决过程贴出来,或许对其他人有用:
1、在pppoeconf设置时选择不更改/etc/resolv.conf 。(不过按理说这个比较没关系,resolv.conf可以自己更改)。
2、重要的是修改/etc/network/interfaces文件。我默认的是对连接到adsl modem的网卡eth1进行dhcp分配ip,很可能是dhcp修改了/etc/resolv.conf的namesever信息,所以我把网卡eth1设成静态ip。
# /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth1
# The primary network interface
iface eth1 inet static
address 10.0.0.139
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 202.111.138.55 202.111.98.55
3、确保/etc/resolv.conf中的dns设置正确:
# /etc/resolv.conf
nameserver 202.111.113.55
nameserver 202.111.98.55 |
|