LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: rock1518

关于ADSL上网设置问题

[复制链接]
 楼主| 发表于 2004-7-11 20:03:14 | 显示全部楼层
请问如何知道本地电信的DNS?
还是随便设?
 楼主| 发表于 2004-7-11 20:14:36 | 显示全部楼层
转帖:
#tar zxvf rp-pppoe-3.5.tar.gz

[root@linuxsir01 root]# cd rp-pppoe-3.5

[root@linuxsir01 rp-pppoe-3.5]# ./go
如果没有出现下面的提示,我们可以运行
[root@linuxsir01 rp-pppoe-3.5]# 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 (default bxxxnxnx@sympatico.ca):ADSL的用户名

INTERFACE

>>> 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

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

PASSWORD

>>> Please enter your PPPoE password:在这里输入电信给的密码

>>> Please re-enter your PPPoE password:在这里再次输入电信给的密码

FIREWALLING

Please choose the firewall rules to use. Note that these rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself. Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc. If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.

The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN
>>> Choose a type of firewall (0-2):2
** Summary of what you entered **

Ethernet Interface: eth0
User name: XXXX
Activate-on-demand: No
Primary DNS: 202.96.134.133
Second DNS: 202.96.168.68
Firewalling: MASQUERADE

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

如果确认所有的选项都正确,就按y

然后运行

[root@linuxsir01 rp-pppoe-3.5]# adsl-start

[root@linuxsir01 rp-pppoe-3.5]# ifconfig来看查看一下,是否上网了??
打开网页,试一下是否能快一下,如果速度上不去,我觉得还是DNS的事。多换几个DNS来试一下。  


我就是用以上方法设置的,但还是不行啊!?ping DNS不通!
发表于 2004-7-11 20:30:07 | 显示全部楼层
看看你安装了ppp支持没
rpm -qa|grep ppp
安装完pppoe应该有一些配置文件在/etc/ppp里头,到那个目录看看
发表于 2004-7-11 22:12:26 | 显示全部楼层
keke
 楼主| 发表于 2004-7-12 14:09:48 | 显示全部楼层
已搞定了,原来是我的DNS设置错了,谢谢各位啦:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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