The Point-to-Point Protocol over Ethernet (PPPoE) is a network protocol for encapsulating PPP frames inside Ethernet frames.
http://en.wikipedia.org/wiki/PPPoE
PPPoE Server, which should be formally called as PPPoE Access Concentrator
Environment
Ubuntu Trusty(14.04)
rp-pppoe
Preparation
Remove pppoe from system and install dependencies from apt.
1 2 |
apt-get remove pppoe apt-get install ppp ppp-dev pppoeconf |
Version of pppoe on Ubuntu is 3.8 but what we get later is 3.11.
Download rp-pppoe from http://www.roaringpenguin.com/products/pppoe
1 2 3 4 5 6 7 8 9 10 11 |
# Unpack tar xvf rp-pppoe-3.11.tar.gz cd rp-pppoe-3.11/src # Configure with plugin enabled ./configure --enable-plugin # Build pppoe binaries make # Build pppoe Kernel mode plugins make rp-pppoe.so # Install to system folders make install |
Set up
1 |
cp /etc/ppp/options /etc/ppp/pppoe-server-options |
pppoe-server-options
12345678910111213141516171819
ms-dns 114.114.114.114asyncmap 0noauthcrtsctslockhide-passwordmodemdebugproxyarplcp-echo-interval 10lcp-echo-failure 2noipx plugin /etc/ppp/plugins/rp-pppoe.sorequire-papktunenobsdcompnoccpnovj
/etc/ppp/pap-secrets
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
ms-dns 114.114.114.114 asyncmap 0 noauth crtscts lock hide-password modem debug proxyarp lcp-echo-interval 10 lcp-echo-failure 2 noipx plugin /etc/ppp/plugins/rp-pppoe.so require-pap ktune nobsdcomp noccp novj |
/etc/ppp/pap-secrets
1 |
"Username" * "p4ssw0rd" * |
If you don’t have four columns here, you may meet error message below in syslog:
1 2 3 4 5 6 7 8 9 |
May 22 09:12:04 ubuntu pppd[25333]: Plugin /etc/ppp/plugins/rp-pppoe.so loaded. May 22 09:12:04 ubuntu pppd[25333]: RP-PPPoE plugin version 3.11 compiled against pppd 2.4.5 May 22 09:12:04 ubuntu pppd[25333]: The remote system is required to authenticate itself May 22 09:12:04 ubuntu pppd[25333]: but I couldn't find any suitable secret (password) for it to use to do so. May 22 09:12:04 ubuntu pppd[25333]: (None of the available passwords would let it use an IP address.) May 22 09:12:04 ubuntu pppoe-server[25311]: Session 11 closed for client 00:0c:29:a8:5f:cc (10.67.15.11) on eth0 May 22 09:12:04 ubuntu pppoe-server[25311]: Sent PADT May 22 09:12:04 ubuntu pppoe-server[25311]: PADT for session 11 received from 00:0C:29:A8:5F:CC; should be from 00:00:00:00:00:00 May 22 09:12:09 ubuntu pppoe-server[25334]: Session 12 created for client 00:0c:29:a8:5f:cc (10.67.15.12) on eth0 using Service-Name '' |
Start
1 |
pppoe-server -I eth0 -L 10.15.0.1 -l -R 10.16.0.1 -N 256 -O /etc/ppp/pppoe-server-options |
Verify
route has been set up
1 2 3 4 5 6 7 8 |
# netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.15.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 10.15.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp1 192.168.76.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0 |
traceroute does not work well in client side, I don’t know why, but I can do tcpdump in PPPoE-AC like
1 |
tcpdump -xn |
Then do some ping or something from client side
Links
http://darmawan-salihun.blogspot.tw/2008/12/setting-up-basic-pppoe-server-in-linux.html
http://chunchaichang.blogspot.tw/2011/12/ubuntu-pppoe-server.html
Incoming search terms:
- Centos6 pppoe 服务器
- pppoe server configuration
- pppoe server ubuntu 14 04
- remotely install ppoe debian how
- ubuntu 14 04 pppoe server
- ubuntu pppoe server install
- uninstall pppoe ubuntu