用pppoeconf后还是无法连接网络?
-
- 帖子: 19
- 注册时间: 2006-03-01 15:18
用pppoeconf后还是无法连接网络?
摸索了好久了,在论坛里也搜索了一些相关的贴子,还是没有找到解决方案
用PPPoeconf可以正常配置,用户名和密码也没有错,拨号后有时偶尔可以打开一两个网页,比如百度什么的,但是基本上别的网页是没有什么响应,可能是无法解析域名?更别说apt-get了...
我是宽带拨号,请问有人能告诉我为什么吗?
用PPPoeconf可以正常配置,用户名和密码也没有错,拨号后有时偶尔可以打开一两个网页,比如百度什么的,但是基本上别的网页是没有什么响应,可能是无法解析域名?更别说apt-get了...
我是宽带拨号,请问有人能告诉我为什么吗?
-
- 帖子: 948
- 注册时间: 2006-01-06 22:55
- 系统: ubuntu
- 联系:
-
- 帖子: 948
- 注册时间: 2006-01-06 22:55
- 系统: ubuntu
- 联系:
-
- 帖子: 19
- 注册时间: 2006-03-01 15:18
-
- 帖子: 948
- 注册时间: 2006-01-06 22:55
- 系统: ubuntu
- 联系:
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 19
- 注册时间: 2006-03-01 15:18
-
- 帖子: 19
- 注册时间: 2006-03-01 15:18
-
- 帖子: 19
- 注册时间: 2006-03-01 15:18
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
仔细看懂就会知道了。
就是我9楼说的那个文件。是dns设置。
pppoeconf里面有一次提问,会问道是否自动获取dns。你不选自动获取就是了啊。要不当然覆盖了自己填写的。
也可以手动修改。
# 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
# The primary network interface
auto eth0
iface eth0 inet static
address 10.23.1.10<----这里什么设置都有
netmask 255.255.255.0
network 10.23.1.0
broadcast 10.23.1.255
gateway 10.23.1.1
# dns-* options are implemented by the resolvconf package, if installed <---这个就是4楼说的那个软件,如果你安装了。这里的dns设置就无效了,就会使用9楼说的那个文件。
dns-nameservers 61.137.94.196
/etc/ppp/peers/dsl-provider这个文件是pppoeconf产生的。里面如果有autodns这样的语句。可以去掉。
pppoeconf里面有一次提问,会问道是否自动获取dns。你不选自动获取就是了啊。要不当然覆盖了自己填写的。
也可以手动修改。
代码: 全选
$ cat /etc/network/interfaces
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.23.1.10<----这里什么设置都有
netmask 255.255.255.0
network 10.23.1.0
broadcast 10.23.1.255
gateway 10.23.1.1
# dns-* options are implemented by the resolvconf package, if installed <---这个就是4楼说的那个软件,如果你安装了。这里的dns设置就无效了,就会使用9楼说的那个文件。
dns-nameservers 61.137.94.196
/etc/ppp/peers/dsl-provider这个文件是pppoeconf产生的。里面如果有autodns这样的语句。可以去掉。
● 鸣学