找回密码
 注册
搜索
查看: 757|回复: 3

[综合资料] rp-pppoe-3.4.tar.gz pppoe source code

[复制链接]
发表于 2006-7-2 14:29:00 | 显示全部楼层 |阅读模式
0. Install the rp-pppoe-software
--------------------------------
You should have already done this by the time you're reading this.  If not,
go back and read README.
1. Set up your Ethernet hardware
--------------------------------
First, make sure the Ethernet card you intend to use with the modem is
visible to the Linux kernel.  Just how to do this is beyond the scope
of this document.  However, if the card is the only Ethernet card in
the system, executing:
ifconfig eth0
should display something like this:
eth0      Link encap:Ethernet  HWaddr 00:60:67:62:31:D4  
plust some more lines.  Your HWaddr will be different.  As long as you see
the HWaddr line, your card should be working.
DO NOT assign an IP address to the Ethernet card.  DO NOT configure the
card to come up at boot time.
2. Configure various files
--------------------------
Several files need editing.  The easiest way to do this is to run
the following command as root:
adsl-setup
Answer the questions and you should be all set.  If you want to know what
goes on behind the scenes, continue reading this document.  If you don't
care and your connection works, stop reading. :-)
3. Edit pap-secrets
-------------------
Edit the "pap-secrets" file, inserting your proper user-ID and password.
Install the file (or copy the relevant lines) to /etc/ppp/pap-secrets.
Your ISP may use CHAP authentication.  In this case, add the line to
/etc/ppp/chap-secrets.
4. Edit /etc/ppp/pppoe.conf
-----------------------------
The file /etc/ppp/pppoe.conf contains configuration information for the
ADSL connection.  You need to edit the following items:
- Change ETH=eth1 to the correct Ethernet device for your modem.
- Change USER=bxxxnxnx@sympatico.ca to your proper ADSL user-ID.
Don't edit any of the other settings unless you're an expert.
5. Set up DNS
-------------
If you are using DNS servers supplied by your ISP, edit the file
/etc/resolv.conf to contain these lines:
nameserver ip_addr_of_first_dns_server
nameserver ip_addr_of_second_dns_server
For example:
nameserver 204.101.251.1
nameserver 204.101.251.2

6. Firewall your machine
------------------------
MAKE SURE YOU FIREWALL YOUR MACHINE.  A sample firewall script is given
in the shell script "firewall"  To install the script:
a) Copy it to /etc/rc.d/init.d/firewall
b) Type: chkconfig firewall on
c) Start the firewall: sh /etc/rc.d/init.d/firewall start
(The above procedure works ONLY on Red Hat-like systems.)
You may want to tweak the script somewhat.
7. Bring up the connection at boot time
---------------------------------------
On a Red Hat system, the installation procedure should have installed
a script called /etc/rc.d/init.d/adsl.  To bring up the connection
at boot time, just type this command as root:
chkconfig --add adsl
On non-Red-Hat systems, add this line to the end
of /etc/rc.d/rc.local:
/usr/sbin/adsl-start
8. Configure LAN Hosts
----------------------
If you have a LAN behind the firewall, you have to lower the TCP
maximum segment size from the normal 1460 to 1452 (or better, 1412.)
You have two options: Either set the MTU of all the interfaces on
other hosts on the LAN to 1452, or use the "-m 1412" option to pppoe.
The "-m" option for pppoe is far simpler and makes it easier to add
hosts to the LAN, but consumes some extra CPU time.
If you want to manually configure the LAN hosts, here's how:
In Linux, use: "ifconfig eth0 mtu 1452".  For best results, put this
in an /etc/rc.d/rc.local script.
For Windows, machines, see http://lan.cns.ksu.edu/OS/WIN95/slip95.htm.
Set the MaxMTU to 1452.
9. Commands to control the ADSL link
------------------------------------
As root, bring up the link by typing:   adsl-start
As root, bring down the link by typing: adsl-stop
That's it!
 楼主| 发表于 2006-7-3 08:46:00 | 显示全部楼层
忘了上传了.晚上补传
点评回复

使用道具 举报

 楼主| 发表于 2006-7-3 13:05:00 | 显示全部楼层

rp-pppoe3.8.tar.gz

source code
点评回复

使用道具 举报

 楼主| 发表于 2006-7-3 13:08:00 | 显示全部楼层

rp-pppoe-3.8.tar.gz source code

【文件名】:0673@52RD_rp-pppoe-3.8.rar
【格 式】:rar
【大 小】:212K
【简 介】:
【目 录】:
[UseMoney=0]

[/UseMoney]

If you have a LAN behind the firewall, you have to lower the TCP
maximum segment size from the normal 1460 to 1452 (or better, 1412.)
You have two options: Either set the MTU of all the interfaces on
other hosts on the LAN to 1452, or use the "-m 1412" option to pppoe.
The "-m" option for pppoe is far simpler and makes it easier to add
hosts to the LAN, but consumes some extra CPU time.
If you want to manually configure the LAN hosts, here's how:
In Linux, use: "ifconfig eth0 mtu 1452".  For best results, put this
in an /etc/rc.d/rc.local script.
For Windows, machines, see http://lan.cns.ksu.edu/OS/WIN95/slip95.htm.
Set the MaxMTU to 1452.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-9-29 08:16 , Processed in 0.082120 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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