- There is no /etc/init.d script for the service. I have seen
one on these forums, but it doesn't solve the second problem, which is - rp-pppoe package is a software redirector wasting prescious CPU cycles on redirecting PPP traffic to ethernet controller, while there is a perfectly
( well... individual results may vary ) working kernel module doing the same thing. - The setup is much too complex.
- rp-pppoe web site name is ridiculous.

-----------------------------------------------------------------------------------
- Recompile the kernel with support for PPPoE redirection
I recommend compiling PPP support as modules, since if it crashes ( happens in 2.6 series ) it will not take the whole system with it.
Code: Select all
make menuconfig And then under Network Support <M> PPP (point-to-point protocol) support [ ] PPP multilink support (EXPERIMENTAL) [*] PPP filtering <M> PPP support for async serial ports <M> PPP support for sync tty ports <M> PPP Deflate compression <M> PPP BSD-Compress compression <M> PPP over Ethernet (EXPERIMENTAL) mount /boot make dep clean bzImage modules modules_install install - Emerge PPP daemon
Code: Select all
emerge ppp - Edit /etc/conf.d/net.ppp0
Set the following:Code: Select all
PEER="Your ISP name" DEBUG="no" PERSIST="yes" # You want to reconnect if the connection is dropped ONDEMAND="no" MODEMPORT="eth0" # Wierd isn't it LINESPEED="" # Doesn't matter INITSTRING="" DEFROUTE="yes" HARDFLOWCTL="no" ESCAPECHARS="no" PPPOPTIONS="" USERNAME="" PASSWORD="" NUMBER="" PEERDNS="yes" # Optional AUTOCFGFILES="no" # This one is important, if you do not set it to no, it will screw up your whole config. - Edit /etc/ppp/options to be the following one line
Code: Select all
plugin pppoe.so - Edit your /etc/ppp/pap-secrets to be the following
for example:
Code: Select all
"your user name" "your ISP name" "your password"Make sure to use the same ISP name as in net.ppp0 PEER settingCode: Select all
"asdf@earthlink.net" "Earthlink" "blah1234" - Create /etc/ppp/peers/(Your ISP name) ( e.g. /etc/ppp/peers/Earthlink )
Code: Select all
touch /etc/ppp/peers/Earthlink - Edit /etc/init.d/net.ppp0. Put the following at the start of the file
This is so that it only starts after the ethernet is up.
Code: Select all
depend() { need net.eth0 } - [green]Optional[/green] Edit /etc/ppp/ip-up script.
There are several things you can put there, most importantly updating your
/etc/resolve.conf if you are using usepeerdns setting, registering with DynDNS service and updating the /etc/hosts file. Here is mine that does all of these things.If you are using fetchmail you might put a call to that here, or start other internet services which require an internet connection.Code: Select all
# Wait for the interface to be up. while [ -e /proc/sys/net/ipv4/conf/ppp0 ]; do sleep 1; done # Setup domain name resolution echo -n "domain " > /etc/resolv.conf cat /etc/dnsdomainname >> /etc/resolv.conf cat /etc/ppp/resolv.conf >> /etc/resolv.conf # Update dynamic DNS records dyndnsupdate -u user:password -a $4 -h myhostname # Update /etc/hosts file sed -i "s/.*myhostname /${4}\tmyhostname /" /etc/hosts - Start the service
Code: Select all
/etc/init.d/net.ppp0 start - Put it in startup
Code: Select all
rc-update add net.ppp0 default




