|
发表于 2005-7-4 18:07:18
|
显示全部楼层
首先切换到root用户(如果你已经是root用户了,跳过这一步)
$su
password:
然后运行命令adsl-setup,配置你的adsl连接。
#adsl-setup
出现如下显示:
Welcome to the ADSL client setup. First, I will run some checks on
your system to make sure the PPPoE client is installed properly...
The following DSL config was found on your system:
Device: Name:
ppp0 DSLppp0
Please enter the device if you want to configure the present DSL config
(default ppp0) or enter 'n' if you want to create a new one:
这里要求你给adsl连接起一个名字,默认为ppp0,我们直接使用默认值就可以,直接敲回车。
LOGIN NAME
Enter your Login Name :
这里要求你输入拨号用的用户名,这个用户名由铁通提供,照着输入就行。
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 ethX, where 'X' is a number.
(default eth0):
这里询问你通过什么与ADSL调制解调器连接。默认认为计算机通过第一块网卡(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 dynamic 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服务器的地址,输入server。
PASSWORD
Please enter your Password:
Please re-enter your Password:
输入密码,这个密码是铁通与帐号一起提供的,照着输入。
USERCTRL
Please enter 'yes' (three letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes):
这里问你是否允许普通用户通过adsl-start命令启动adsl连接,默认是允许。我用的是默认值,这样方便一些。
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):
选择一个防火墙级别,我用的是0,即不用防火墙。如果你不怕麻烦,可以试用其他值。启用防火墙可能造成一些网站无法访问,或一些网络游戏不能正常运行。
Do you want to start this connection at boot time?
Please enter no or yes (default no):
这里问你是否开机就启动adsl连接,如果你是包年/包月的话就yes。
** Summary of what you entered **
Ethernet Interface: eth0
User name: xxxxxxxxxxx
Activate-on-demand: No
DNS: Do not adjust
Firewalling: NONE
User Control: yes
Accept these settings and adjust configuration files (y/n)?
这里让你最后确认一下所有配置是否正确,输入y敲回车,完成所有配置
启动adsl连接
#adsl-start
查看adsl连接状态
#adsl-status
关闭adsl连接
#adsl-stop |
|