LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2161|回复: 9

求助:adsl能连接得上,但无法打开网页!!!(我已经详细看过精华贴了,搞不定)

[复制链接]
发表于 2005-1-12 23:17:07 | 显示全部楼层 |阅读模式
slack 10.0

adsl方式上网(没与人共享)

adsl-setup : 默认eth0   dns: sever   ………………dhcp…………

以上一切正常

adsl-start

。。。connected!

adsl-status ……………………………………………………………………(有出现ip,应该正常?!)

打开网页后,提示:unkonw host http://www.linuxsir.cn


好象有一条命令:ifconfig eth0 down (输入了,无效!!!)

原来在redhat的时候,我直接把eth0删除,就可以上网了

现在实在搞不定!!!求助大家了!!!
:confused:  :ask
 楼主| 发表于 2005-1-12 23:31:14 | 显示全部楼层
斑竹,偶已经被你这篇文章拖下水了,http://www.linuxsir.cn/bbs/showthread.php?t=83442

你不能置偶于不顾呀!!!
发表于 2005-1-13 07:56:41 | 显示全部楼层
拨号前先运行
ifconfig eth0 down
ifconfig eth0 up
adsl-start
这样就可以了
发表于 2005-1-13 18:24:46 | 显示全部楼层
直接连一下ip地址,看行不
可能是名字服务器未打开
发表于 2005-1-13 22:51:15 | 显示全部楼层
是不是salckware盘里的mozilla有问题?
试试别的浏览器。
 楼主| 发表于 2005-1-13 22:58:57 | 显示全部楼层
Post by koala114
拨号前先运行
ifconfig eth0 down
ifconfig eth0 up
adsl-start
这样就可以了


这样做有什么目的?
 楼主| 发表于 2005-1-13 23:05:36 | 显示全部楼层
Post by mslugx
是不是salckware盘里的mozilla有问题?
试试别的浏览器。


我不是用mozilla,而是用k…………(忘记怎么拼了:)

可以确定是默认网关的问题,可就是不知道该怎么操作!!!

试了很多方法:
一.
route del default eth0
route add default gw ppp0

(好象提示:unknow ppp0)

二.

修改/etc/sysconfig/network  两行ip全部改为0.0.0.0  (好象找不到sysconfig目录,我直接去修改/etc/network 无效!!!)
发表于 2005-1-14 18:35:59 | 显示全部楼层
你的dns对吗?
[root@sir root]#adsl-setup
Welcome to the Roaring Penguin ADSL client setup. First, I will run
some checks on your system to make sure the PPPoE client is installed
properly...

Looks good! Now, please enter some information:

USER NAME

>>> Enter your PPPoE user name :在这里添上电信给您的adsl的用户名

>>> Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
(default eth0):如果您只有一个网卡,那就在这里输入eth0

Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped. If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses. You may have some problems with demand-activated links.
>>> Enter the demand value (default no):这里按一下回车就行


DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
>>> Enter the DNS information here: 在这里输入第一个DNS ,可以用 202.96.128.143

Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
>>> Enter the secondary DNS server address here:第二个DNS ,可以用202.96.128.68


>>> Please enter your PPPoE password:输入adsl的密码
>>> Please re-enter your PPPoE password:验证密码,重复输入一次;
>>> Choose a type of firewall (0-2):在这里选择2


>>> Accept these settings and adjust configuration files (y/n)? 按y

设置好后,我们要用到adsl-start来启动adsl

[root@sir beinan]#adsl-start
. Connected!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-14 20:04:23 | 显示全部楼层
Post by lyz231
你的dns对吗?

DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
>>> Enter the DNS information here: 在这里输入第一个DNS ,可以用 202.96.128.143

Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
>>> Enter the secondary DNS server address here:第二个DNS ,可以用202.96.128.68

>>> Choose a type of firewall (0-2):在这里选择2

[root@sir beinan]#adsl-start
. Connected!


挖哈哈,搞定!!!原来在设置dns的时候,以前用redhat直接两次回车(sever)

而slack则要输入ip地址,刚才万般无奈之下,试着输入 202.101.98.55  和 202.101.110.55

(偶福建的:) 果然是这里出问题!!! 看来老经验要害死人!!!

另:firewall偶选了0,是不是就没firewall的意思?
回复 支持 反对

使用道具 举报

发表于 2005-1-19 23:28:11 | 显示全部楼层
我是用/etc/resolv.conf来配置dns,这样其他配置均可不再调整,比如我在办公室是上局域网,并通过服务器上internet,在家是用电信adsl上网,我的本本内的resolv.conf就是以下内容:
nameserver 服务器网关#比如:123.123.123.123
nameserver 电信adsl的dns#如:111.111.111.111

这也是很多朋友用adsl上网连通后,无法ping通,就是原resolv.conf文件可能设置的第一个或者根本就没有可用的dns在其中
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表