http://www.chinalinuxpub.com/read.php?wid=558
1?|卡配置?/span> |
REDHAT9?/span>ADSL最l解x?/span>
发布?/span>
?/span>LINUXSIR?/span>LINUXFANS上看了很多关?/span>ADSL的文?/span>,都没有解x?/span>REDHAT9?/span>ADSL上网的问?/span>,今天实在是没有办?/span>,重新建立q接,曲折的经?/span>,l于上网?/span>(非常Ȁ?/span>,可能表达的不是很?/span>),特的写下我的q程,作ؓ参?/span>:
REDHAT默认?/span>PPPOE有问?/span>,需?/span>RPM -E,然后,安装q个 --实际在RedES3上没必要按照q个׃n包?/font>
http://www.roaringpenguin.com/pppoe/rp-pppoe-3.5.tar.gz(北南兄推?/span>)
解压和安装:
#tar zxvf rp-pppoe-3.5.tar.gz
q入解压目录执行
#sh ./go
然后再来讄ADSL。这一处,我们要用命o?/span>
#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 XXX): 在这里输?/span>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):不用写什?/span>
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:在这里写?/span>202.96.134.133
下一?/span>DNS?/span>202.96.168.68 //q里Ҏ个h不同可以修改
PASSWORD
>>> Please enter your PPPoE password:输入密码
>>> Please re-enter your PPPoE password:再输入一?/span>
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):q里d?/span>2
** Summary of what you entered **
Ethernet Interface: eth0
User name: XXX
Activate-on-demand: No
DNS: Do not adjust
Firewalling: MASQUERADE
>>> Accept these settings and adjust configuration files (y/n)?
弄完后,按一?/span>y键?/span>
(以上为北南兄文章里面内容)
不要急于q接,REBOOT -N
然后q入|络讄,停止ETH1(我的是用?/span>)
然后ADSL-START
PING 你的DNS,如果可以,那么,恭喜?/span>!
其中部分内容可能不同,仅作参?/span>,主要在连接后,能够PING?/span>DNS卛_!
==========================================================================
首先应该定您是否安装了pppoe的应用程序?/span>
如果实已经安装了,可以在终端用 adslQ?/span>setup命o启动adsl配置Q提CEؓ英文?/span>
大概?/span>:
[root@localhost root]# 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: ppp0 //默认?/span>ppp0
LOGIN NAME
Enter your Login Name (default SJ
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): eth0 //默认|卡讑֤?/span>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): no //q里使用默认no可以了Q断U后不自动拨受?/span>
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: 202.96.134.133 //?/span>DNS地址讄Q根据您的具体情冉|换?/span>
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: 202.96.134.133 //W二DNS地址讄?/span>
PASSWORD
Please enter your Password: //q里讄密码Q和unix规则一P密码q不回显Q因此不要认为您的键盘出了毛?/span>:)
Please re-enter your Password:
//认密码
USERCTRL
Please enter 'yes' (two letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes): yes //是否允许普通用户共?/span>ADSL?/span>
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): 1 //配置防火墙等U,Ҏ您的需要选择?/span>
Start this connection at boot time
Do you want to start this connection at boot time?
Please enter no or yes (default no):no //是否允许开动加载,q里选择noQ否则系l启动速度太慢!
** Summary of what you entered **
Ethernet Interface: eth0
User name: anthrax
Activate-on-demand: No
Primary DNS: 202.96.134.133
Secondary DNS: 202.96.134.133
Firewalling: STANDALONE
User Control: yes
Accept these settings and adjust configuration files (y/n)?
选择yQ配|完成。您可以?/span> adslQ?/span>start命o启动Q可以用adslQ?/span>stop命o停止?/span>
Z方便Q可以在桌面建立一个应用程序链接,命o׃?/span>adslQ?/span>start。这hơ双击那个快捷图标就可以建立adsl链接了,?/span>windows中一hѝ?/span>
好了Q现在就开始您的网l之旅吧?/span>(技?/span>:如果依据本内Ҏ作扔不能链接|络Q可以尝试在"pȝ讄Q?/span>>|\"中删除当前的|卡Q重新配|?/span>adslV?/span>)