You are on page 1of 21

Here's how the flow will be:

1. Client negotiates PPPoE using PADo, PADi and PADr with the server, both client and
server move into PPP-->LCP phase
2. Client/Server negotiate authentication, other parameters
3. Server asks the client for a username/password (using pap, as pap is configured before
chap)
4. Client sends out a username/password configured in it's dialer
5. Server authenticates this username/password against its global username/password list
(alternatively a AAA/Radius server)
6. Client and Server both move on to IPCP phase
7. Client sends an ip address of 0.0.0.0 (asking for an ip address from the Server)
8. Server hands out an IP address from its pool (in this case pppoepool)
9. Client/Server finish IPCP phase and the link comes up
 At this time, the link should be up and able to pass traffic

 PPPoE Configuration:
 Device setting:

PPPoE server installation:

https://poundcomment.wordpress.com/2011/03/30/pppoe-server-on-ubuntu/
┌────────────────────────────────────────────────────────────────────┐
│ • MobaXterm 8.4 • │
│ (SSH client, X-server and networking tools) │
│ │
│ ➤ SSH session to root@10.115.52.214 │
│ • SSH compression : ✔ │
│ • SSH-browser : ✔ │
│ • X11-forwarding : ✔ (remote display is forwarded through SSH) │
│ • DISPLAY : ✔ (automatically set on remote server) │
│ │
│ ➤ For more info, ctrl+click on help or visit our website │
└────────────────────────────────────────────────────────────────────┘

Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-143-generic x86_64)

* Documentation: https://help.ubuntu.com/

Get cloud support with Ubuntu Advantage Cloud Guest:


http://www.ubuntu.com/business/services/cloud

/usr/bin/xauth: file /root/.Xauthority does not exist


root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~# vim /etc/resolv.conf
root@aric-214-cr-internet1:~# ping google.com
PING google.com (216.58.194.174) 56(84) bytes of data.
64 bytes from sfo07s13-in-f14.1e100.net (216.58.194.174): icmp_seq=1 ttl=44 time=5.16 ms
64 bytes from sfo07s13-in-f14.1e100.net (216.58.194.174): icmp_seq=2 ttl=44 time=5.17 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 5.161/5.165/5.170/0.072 ms
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~# apt-get install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
cpp cpp-4.8 gcc-4.8 libasan0 libatomic1 libc-dev-bin libc6-dev libcloog-isl4
libgcc-4.8-dev libgmp10 libgomp1 libisl10 libitm1 libmpc3 libmpfr4
libquadmath0 libtsan0 linux-libc-dev manpages-dev
Suggested packages:
cpp-doc gcc-4.8-locales gcc-multilib make autoconf automake1.9 libtool flex
bison gcc-doc gcc-4.8-multilib gcc-4.8-doc libgcc1-dbg libgomp1-dbg
libitm1-dbg libatomic1-dbg libasan0-dbg libtsan0-dbg libquadmath0-dbg
glibc-doc
The following NEW packages will be installed:
cpp cpp-4.8 gcc gcc-4.8 libasan0 libatomic1 libc-dev-bin libc6-dev
libcloog-isl4 libgcc-4.8-dev libgmp10 libgomp1 libisl10 libitm1 libmpc3
libmpfr4 libquadmath0 libtsan0 linux-libc-dev manpages-dev
0 upgraded, 20 newly installed, 0 to remove and 73 not upgraded.
Need to get 17.1 MB of archives.
After this operation, 59.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libasan0 amd64 4.8.4-
2ubuntu1~14.04.4 [63.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libatomic1 amd64 4.8.4-
2ubuntu1~14.04.4 [8,630 B]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main libgmp10 amd64 2:5.1.3+dfsg-1ubuntu1
[218 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main libisl10 amd64 0.12.2-1 [419 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main libcloog-isl4 amd64 0.18.2-1 [57.5 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgomp1 amd64 4.8.4-
2ubuntu1~14.04.4 [23.1 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libitm1 amd64 4.8.4-
2ubuntu1~14.04.4 [28.6 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ trusty/main libmpfr4 amd64 3.1.2-1 [203 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libquadmath0 amd64 4.8.4-
2ubuntu1~14.04.4 [126 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libtsan0 amd64 4.8.4-
2ubuntu1~14.04.4 [94.8 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ trusty/main libmpc3 amd64 1.0.1-1ubuntu1 [38.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/main cpp-4.8 amd64 4.8.4-
2ubuntu1~14.04.4 [4,452 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ trusty/main cpp amd64 4:4.8.2-1ubuntu6 [27.5 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgcc-4.8-dev amd64 4.8.4-
2ubuntu1~14.04.4 [1,688 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ trusty-updates/main gcc-4.8 amd64 4.8.4-
2ubuntu1~14.04.4 [5,040 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ trusty/main gcc amd64 4:4.8.2-1ubuntu6 [5,098 B]
Get:17 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libc-dev-bin amd64 2.19-
0ubuntu6.14 [69.0 kB]
Get:18 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-libc-dev amd64 3.13.0-
162.212 [774 kB]
Get:19 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libc6-dev amd64 2.19-
0ubuntu6.14 [1,913 kB]
Get:20 http://archive.ubuntu.com/ubuntu/ trusty/main manpages-dev all 3.54-1ubuntu1 [1,820
kB]
Fetched 17.1 MB in 5s (3,034 kB/s)
Selecting previously unselected package libasan0:amd64.
(Reading database ... 63778 files and directories currently installed.)
Preparing to unpack .../libasan0_4.8.4-2ubuntu1~14.04.4_amd64.deb ...
Unpacking libasan0:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../libatomic1_4.8.4-2ubuntu1~14.04.4_amd64.deb ...
Unpacking libatomic1:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Selecting previously unselected package libgmp10:amd64.
Preparing to unpack .../libgmp10_2%3a5.1.3+dfsg-1ubuntu1_amd64.deb ...
Unpacking libgmp10:amd64 (2:5.1.3+dfsg-1ubuntu1) ...
Selecting previously unselected package libisl10:amd64.
Preparing to unpack .../libisl10_0.12.2-1_amd64.deb ...
Unpacking libisl10:amd64 (0.12.2-1) ...
Selecting previously unselected package libcloog-isl4:amd64.
Preparing to unpack .../libcloog-isl4_0.18.2-1_amd64.deb ...
Unpacking libcloog-isl4:amd64 (0.18.2-1) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../libgomp1_4.8.4-2ubuntu1~14.04.4_amd64.deb ...
Unpacking libgomp1:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../libitm1_4.8.4-2ubuntu1~14.04.4_amd64.deb ...
Unpacking libitm1:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Selecting previously unselected package libmpfr4:amd64.
Preparing to unpack .../libmpfr4_3.1.2-1_amd64.deb ...
Unpacking libmpfr4:amd64 (3.1.2-1) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../libquadmath0_4.8.4-2ubuntu1~14.04.4_amd64.deb ...
Unpacking libquadmath0:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../libtsan0_4.8.4-2ubuntu1~14.04.4_amd64.deb ...
Unpacking libtsan0:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../libmpc3_1.0.1-1ubuntu1_amd64.deb ...
Unpacking libmpc3:amd64 (1.0.1-1ubuntu1) ...
Selecting previously unselected package cpp-4.8.
Preparing to unpack .../cpp-4.8_4.8.4-2ubuntu1~14.04.4_amd64.deb ...
Unpacking cpp-4.8 (4.8.4-2ubuntu1~14.04.4) ...
Selecting previously unselected package cpp.
Preparing to unpack .../cpp_4%3a4.8.2-1ubuntu6_amd64.deb ...
Unpacking cpp (4:4.8.2-1ubuntu6) ...
Selecting previously unselected package libgcc-4.8-dev:amd64.
Preparing to unpack .../libgcc-4.8-dev_4.8.4-2ubuntu1~14.04.4_amd64.deb ...
Unpacking libgcc-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Selecting previously unselected package gcc-4.8.
Preparing to unpack .../gcc-4.8_4.8.4-2ubuntu1~14.04.4_amd64.deb ...
Unpacking gcc-4.8 (4.8.4-2ubuntu1~14.04.4) ...
Selecting previously unselected package gcc.
Preparing to unpack .../gcc_4%3a4.8.2-1ubuntu6_amd64.deb ...
Unpacking gcc (4:4.8.2-1ubuntu6) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../libc-dev-bin_2.19-0ubuntu6.14_amd64.deb ...
Unpacking libc-dev-bin (2.19-0ubuntu6.14) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../linux-libc-dev_3.13.0-162.212_amd64.deb ...
Unpacking linux-libc-dev:amd64 (3.13.0-162.212) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../libc6-dev_2.19-0ubuntu6.14_amd64.deb ...
Unpacking libc6-dev:amd64 (2.19-0ubuntu6.14) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../manpages-dev_3.54-1ubuntu1_all.deb ...
Unpacking manpages-dev (3.54-1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libasan0:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Setting up libatomic1:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Setting up libgmp10:amd64 (2:5.1.3+dfsg-1ubuntu1) ...
Setting up libisl10:amd64 (0.12.2-1) ...
Setting up libcloog-isl4:amd64 (0.18.2-1) ...
Setting up libgomp1:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Setting up libitm1:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Setting up libmpfr4:amd64 (3.1.2-1) ...
Setting up libquadmath0:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Setting up libtsan0:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Setting up libmpc3:amd64 (1.0.1-1ubuntu1) ...
Setting up cpp-4.8 (4.8.4-2ubuntu1~14.04.4) ...
Setting up cpp (4:4.8.2-1ubuntu6) ...
Setting up libgcc-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.4) ...
Setting up gcc-4.8 (4.8.4-2ubuntu1~14.04.4) ...
Setting up gcc (4:4.8.2-1ubuntu6) ...
Setting up libc-dev-bin (2.19-0ubuntu6.14) ...
Setting up linux-libc-dev:amd64 (3.13.0-162.212) ...
Setting up libc6-dev:amd64 (2.19-0ubuntu6.14) ...
Setting up manpages-dev (3.54-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.14) ...
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~# apt-get update
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://archive.ubuntu.com trusty InRelease
Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Hit http://archive.ubuntu.com trusty-backports InRelease
Get:3 http://security.ubuntu.com trusty-security/main Sources [167 kB]
Hit http://archive.ubuntu.com trusty Release.gpg
Get:4 http://archive.ubuntu.com trusty-updates/main Sources [425 kB]
Get:5 http://security.ubuntu.com trusty-security/universe Sources [94.9 kB]
Get:6 http://security.ubuntu.com trusty-security/main amd64 Packages [793 kB]
Get:7 http://archive.ubuntu.com trusty-updates/restricted Sources [6,322 B]
Get:8 http://archive.ubuntu.com trusty-updates/universe Sources [225 kB]
Get:9 http://security.ubuntu.com trusty-security/universe amd64 Packages [275 kB]
Get:10 http://archive.ubuntu.com trusty-updates/multiverse Sources [7,437 B]
Get:11 http://security.ubuntu.com trusty-security/main Translation-en [424 kB]
Get:12 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1,131 kB]
Get:13 http://security.ubuntu.com trusty-security/universe Translation-en [149 kB]
Get:14 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [17.2 kB]
Get:15 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [508 kB]
Get:16 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.6 kB]
Get:17 http://archive.ubuntu.com trusty-updates/main Translation-en [561 kB]
Get:18 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [7,616 B]
Get:19 http://archive.ubuntu.com trusty-updates/restricted Translation-en [4,021 B]
Get:20 http://archive.ubuntu.com trusty-updates/universe Translation-en [271 kB]
Get:21 http://archive.ubuntu.com trusty-backports/main Sources [9,709 B]
Get:22 http://archive.ubuntu.com trusty-backports/restricted Sources [28 B]
Get:23 http://archive.ubuntu.com trusty-backports/universe Sources [35.4 kB]
Get:24 http://archive.ubuntu.com trusty-backports/multiverse Sources [1,896 B]
Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/main Translation-en
Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://archive.ubuntu.com trusty Release
Get:25 http://archive.ubuntu.com trusty/main Sources [1,064 kB]
Get:26 http://archive.ubuntu.com trusty/restricted Sources [5,433 B]
Get:27 http://archive.ubuntu.com trusty/universe Sources [6,399 kB]
Get:28 http://archive.ubuntu.com trusty/multiverse Sources [174 kB]
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
Fetched 12.9 MB in 11s (1,115 kB/s)
Reading package lists... Done
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~# ls
frr_daemons rp-pppoe-3.12.tar.gz
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~# tar -xvzf rp-pppoe-3.12.tar.gz
rp-pppoe-3.12/
rp-pppoe-3.12/go-gui
rp-pppoe-3.12/README
rp-pppoe-3.12/doc/
rp-pppoe-3.12/doc/PROBLEMS
rp-pppoe-3.12/doc/LICENSE
rp-pppoe-3.12/doc/CHANGES
rp-pppoe-3.12/doc/HOW-TO-CONNECT
rp-pppoe-3.12/doc/KERNEL-MODE-PPPOE
rp-pppoe-3.12/man/
rp-pppoe-3.12/man/pppoe.8
rp-pppoe-3.12/man/pppoe-start.8
rp-pppoe-3.12/man/pppoe-setup.8
rp-pppoe-3.12/man/pppoe-status.8
rp-pppoe-3.12/man/pppoe-stop.8
rp-pppoe-3.12/man/pppoe-connect.8
rp-pppoe-3.12/man/pppoe-server.8
rp-pppoe-3.12/man/pppoe-relay.8
rp-pppoe-3.12/man/pppoe.conf.5
rp-pppoe-3.12/man/pppoe-sniff.8
rp-pppoe-3.12/gui/
rp-pppoe-3.12/gui/tkpppoe.in
rp-pppoe-3.12/gui/tkpppoe.1
rp-pppoe-3.12/gui/Makefile.in
rp-pppoe-3.12/gui/ja.msg
rp-pppoe-3.12/gui/pppoe-wrapper.1
rp-pppoe-3.12/gui/wrapper.c
rp-pppoe-3.12/gui/en.msg
rp-pppoe-3.12/gui/html/
rp-pppoe-3.12/gui/html/mainwin.png
rp-pppoe-3.12/gui/html/props-basic.png
rp-pppoe-3.12/gui/html/mainwin-nonroot.png
rp-pppoe-3.12/gui/html/tkpppoe.html
rp-pppoe-3.12/gui/html/props-nic.png
rp-pppoe-3.12/gui/html/props-options.png
rp-pppoe-3.12/gui/html/props-advanced.png
rp-pppoe-3.12/gui/html/mainwin-busy.png
rp-pppoe-3.12/rp-pppoe.spec
rp-pppoe-3.12/scripts/
rp-pppoe-3.12/scripts/pppoe-setup.in
rp-pppoe-3.12/scripts/pppoe-start.in
rp-pppoe-3.12/scripts/pppoe-init-turbolinux.in
rp-pppoe-3.12/scripts/pppoe-init.in
rp-pppoe-3.12/scripts/pppoe-init-suse.in
rp-pppoe-3.12/scripts/pppoe-connect.in
rp-pppoe-3.12/scripts/pppoe-status
rp-pppoe-3.12/scripts/pppoe-stop.in
rp-pppoe-3.12/src/
rp-pppoe-3.12/src/plugin/
rp-pppoe-3.12/src/relay.c
rp-pppoe-3.12/src/common.c
rp-pppoe-3.12/src/pppoe.h
rp-pppoe-3.12/src/debug.c
rp-pppoe-3.12/src/md5.c
rp-pppoe-3.12/src/md5.h
rp-pppoe-3.12/src/install-sh
rp-pppoe-3.12/src/config.h.in
rp-pppoe-3.12/src/pppoe-sniff.c
rp-pppoe-3.12/src/pppoe-server.c
rp-pppoe-3.12/src/ppp.c
rp-pppoe-3.12/src/relay.h
rp-pppoe-3.12/src/Makefile.in
rp-pppoe-3.12/src/configure.in
rp-pppoe-3.12/src/plugin.c
rp-pppoe-3.12/src/libevent/
rp-pppoe-3.12/src/libevent/event.c
rp-pppoe-3.12/src/libevent/event.h
rp-pppoe-3.12/src/libevent/event_tcp.h
rp-pppoe-3.12/src/libevent/hash.h
rp-pppoe-3.12/src/libevent/Makefile.in
rp-pppoe-3.12/src/libevent/event_sig.c
rp-pppoe-3.12/src/libevent/event_tcp.c
rp-pppoe-3.12/src/libevent/hash.c
rp-pppoe-3.12/src/libevent/eventpriv.h
rp-pppoe-3.12/src/pppoe-server.h
rp-pppoe-3.12/src/discovery.c
rp-pppoe-3.12/src/if.c
rp-pppoe-3.12/src/configure
rp-pppoe-3.12/src/pppoe.c
rp-pppoe-3.12/go
rp-pppoe-3.12/configs/
rp-pppoe-3.12/configs/firewall-masq
rp-pppoe-3.12/configs/pap-secrets
rp-pppoe-3.12/configs/pppoe-server-options
rp-pppoe-3.12/configs/pppoe.conf
rp-pppoe-3.12/configs/firewall-standalone
rp-pppoe-3.12/SERVPOET
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~#
root@aric-214-cr-internet1:~# ls
frr_daemons rp-pppoe-3.12 rp-pppoe-3.12.tar.gz
root@aric-214-cr-internet1:~# cd rp-pppoe-3.12/
root@aric-214-cr-internet1:~/rp-pppoe-3.12# ls
configs doc go go-gui gui man README rp-pppoe.spec scripts SERVPOET src
root@aric-214-cr-internet1:~/rp-pppoe-3.12# cd src/
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# ls
common.c configure debug.c if.c libevent md5.c plugin ppp.c
pppoe.h pppoe-server.h relay.c
config.h.in configure.in discovery.c install-sh Makefile.in md5.h plugin.c pppoe.c
pppoe-server.c pppoe-sniff.c relay.h
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/dlpi.h usability... no
checking sys/dlpi.h presence... no
checking for sys/dlpi.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking net/if_arp.h usability... yes
checking net/if_arp.h presence... yes
checking for net/if_arp.h... yes
checking netinet/if_ether.h usability... yes
checking netinet/if_ether.h presence... yes
checking for netinet/if_ether.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for fcntl.h... (cached) yes
checking net/bpf.h usability... no
checking net/bpf.h presence... no
checking for net/bpf.h... no
checking netpacket/packet.h usability... yes
checking netpacket/packet.h presence... yes
checking for netpacket/packet.h... yes
checking net/ethernet.h usability... yes
checking net/ethernet.h presence... yes
checking for net/ethernet.h... yes
checking asm/types.h usability... yes
checking asm/types.h presence... yes
checking for asm/types.h... yes
checking linux/if_packet.h usability... yes
checking linux/if_packet.h presence... yes
checking for linux/if_packet.h... yes
checking linux/if_ether.h usability... yes
checking linux/if_ether.h presence... yes
checking for linux/if_ether.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking net/if_dl.h usability... no
checking net/if_dl.h presence... no
checking for net/if_dl.h... no
checking net/if_ether.h usability... no
checking net/if_ether.h presence... no
checking for net/if_ether.h... no
checking net/if_types.h usability... no
checking net/if_types.h presence... no
checking for net/if_types.h... no
checking for netinet/if_ether.h... (cached) yes
checking for net/if_types.h... (cached) no
checking for net/if_dl.h... (cached) no
checking for linux/if.h... yes
checking for linux/if_pppox.h... no
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct sockaddr_ll... yes
checking for N_HDLC line discipline... yes
checking for working memcmp... yes
checking return type of signal handlers... void
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for strtol... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking size of unsigned short... 2
checking size of unsigned int... 4
checking size of unsigned long... 8
checking for pppd... /usr/sbin/pppd
checking for echo... /bin/echo
checking for setsid... /usr/bin/setsid
checking for id... /usr/bin/id
checking for Linux 2.4.X kernel-mode PPPoE support... yes
checking packing order of bit fields... reversed
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating libevent/Makefile
config.status: creating ../scripts/pppoe-connect
config.status: creating ../scripts/pppoe-start
config.status: creating ../scripts/pppoe-stop
config.status: creating ../scripts/pppoe-init
config.status: creating ../scripts/pppoe-init-suse
config.status: creating ../scripts/pppoe-init-turbolinux
config.status: creating ../scripts/pppoe-setup
config.status: creating ../gui/Makefile
config.status: WARNING: '../gui/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating ../gui/tkpppoe
config.status: creating config.h
On this platform, the following targets will be built:
pppoe pppoe-server pppoe-sniff pppoe-relay
Type 'make' to compile the software.
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# make
The program 'make' is currently not installed. You can install it by typing:
apt-get install make
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# apt-get install mak
make makedev makedumpfile makehuman-data makejvf makepp
maki
makebootfat makedic makefs makehuman-doc makepasswd makeself
maki-plugins
makedepf90 make-doc makehuman makejail makepatch makexvpics
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# apt-get install make
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'apt-get autoremove' to remove it.
Suggested packages:
make-doc
The following NEW packages will be installed:
make
0 upgraded, 1 newly installed, 0 to remove and 78 not upgraded.
Need to get 119 kB of archives.
After this operation, 328 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main make amd64 3.81-8.2ubuntu3 [119 kB]
Fetched 119 kB in 0s (158 kB/s)
Selecting previously unselected package make.
(Reading database ... 67204 files and directories currently installed.)
Preparing to unpack .../make_3.81-8.2ubuntu3_amd64.deb ...
Unpacking make (3.81-8.2ubuntu3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up make (3.81-8.2ubuntu3) ...
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# sudo
sudo sudoedit sudoreplay
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# su
su sudo sudoedit sudoreplay sulogin sum suspend
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# su
su sudo sudoedit sudoreplay sulogin sum suspend
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# sudo make install
sudo: unable to resolve host aric-214-cr-internet1
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes
'-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"'
'-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-
server-options"' -Ilibevent '-DVERSION="3.12"' -c -o pppoe.o pppoe.c
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes
'-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"'
'-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-
server-options"' -Ilibevent '-DVERSION="3.12"' -c -o if.o if.c
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes
'-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"'
'-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-
server-options"' -Ilibevent '-DVERSION="3.12"' -c -o debug.o debug.c
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes
'-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"'
'-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-
server-options"' -Ilibevent '-DVERSION="3.12"' -c -o common.o common.c
common.c: In function ‘dropPrivs’:
common.c:235:9: warning: ignoring return value of ‘setegid’, declared with attribute
warn_unused_result [-Wunused-result]
setegid(getgid());
^
common.c:236:9: warning: ignoring return value of ‘seteuid’, declared with attribute
warn_unused_result [-Wunused-result]
seteuid(getuid());
^
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes
'-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"'
'-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-
server-options"' -Ilibevent '-DVERSION="3.12"' -c -o ppp.o ppp.c
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes
'-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"'
'-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-
server-options"' -Ilibevent '-DVERSION="3.12"' -c -o discovery.o discovery.c
gcc -o pppoe pppoe.o if.o debug.o common.o ppp.o discovery.o
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes
'-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"'
'-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-
server-options"' -Ilibevent '-DVERSION="3.12"' -c -o pppoe-server.o pppoe-server.c
pppoe-server.c: In function ‘main’:
pppoe-server.c:1515:7: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(&x, 1, sizeof(x), fp);
^
pppoe-server.c:1517:7: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(&CookieSeed, 1, SEED_LEN, fp);
^
pppoe-server.c:1691:7: warning: ignoring return value of ‘chdir’, declared with attribute
warn_unused_result [-Wunused-result]
chdir("/");
^
pppoe-server.c:1731:11: warning: ignoring return value of ‘ftruncate’, declared with
attribute warn_unused_result [-Wunused-result]
ftruncate(LockFD, 0);
^
pppoe-server.c:1733:7: warning: ignoring return value of ‘write’, declared with attribute
warn_unused_result [-Wunused-result]
write(LockFD, buf, strlen(buf));
^
pppoe-server.c:1745:7: warning: ignoring return value of ‘write’, declared with attribute
warn_unused_result [-Wunused-result]
write(KidPipe[1], "X", 1);
^
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes
'-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"'
'-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-
server-options"' -Ilibevent '-DVERSION="3.12"' -c -o md5.o md5.c
cd libevent && make DEFINES=""
make[1]: Entering directory `/root/rp-pppoe-3.12/src/libevent'
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes -I.. -c -o event.o event.c
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes -I.. -c -o event_tcp.o
event_tcp.c
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes -I.. -c -o hash.o hash.c
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes -I.. -c -o event_sig.o
event_sig.c
event_sig.c: In function ‘sig_handler’:
event_sig.c:149:10: warning: ignoring return value of ‘write’, declared with attribute
warn_unused_result [-Wunused-result]
write(Pipe[1], &sig, 1);
^
rm -f libevent.a
ar -cq libevent.a event.o event_tcp.o hash.o event_sig.o
ranlib libevent.a
make[1]: Leaving directory `/root/rp-pppoe-3.12/src/libevent'
gcc -o pppoe-server pppoe-server.o if.o debug.o common.o md5.o libevent/libevent.a -
Llibevent -levent
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes
'-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"'
'-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-
server-options"' -Ilibevent '-DVERSION="3.12"' -c -o pppoe-sniff.o pppoe-sniff.c
gcc -o pppoe-sniff pppoe-sniff.o if.o common.o debug.o
gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes
'-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"'
'-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-
server-options"' -Ilibevent '-DVERSION="3.12"' -c -o relay.o relay.c
relay.c: In function ‘main’:
relay.c:338:7: warning: ignoring return value of ‘chdir’, declared with attribute
warn_unused_result [-Wunused-result]
chdir("/");
^
relay.c: In function ‘relayLoop’:
relay.c:801:10: warning: ignoring return value of ‘read’, declared with attribute
warn_unused_result [-Wunused-result]
read(CleanPipe[0], &dummy, 1);
^
relay.c: In function ‘alarmHandler’:
relay.c:1528:7: warning: ignoring return value of ‘write’, declared with attribute
warn_unused_result [-Wunused-result]
write(CleanPipe[1], "", 1);
^
gcc -o pppoe-relay relay.o if.o debug.o common.o

Type 'make install' as root to install the software.


mkdir -p /usr/sbin
/usr/bin/install -c -m 755 pppoe /usr/sbin
/usr/bin/install -c -m 755 pppoe-server /usr/sbin
if test -x licensed-only/pppoe-server-control ; then /usr/bin/install -c -m 755 licensed-
only/pppoe-server-control /usr/sbin; fi
if test -x pppoe-relay ; then /usr/bin/install -c -m 755 pppoe-relay /usr/sbin; fi
if test -x pppoe-sniff; then /usr/bin/install -c -m 755 pppoe-sniff /usr/sbin; fi
/usr/bin/install -c -m 755 ../scripts/pppoe-connect /usr/sbin
/usr/bin/install -c -m 755 ../scripts/pppoe-start /usr/sbin
/usr/bin/install -c -m 755 ../scripts/pppoe-status /usr/sbin
/usr/bin/install -c -m 755 ../scripts/pppoe-stop /usr/sbin
/usr/bin/install -c -m 755 ../scripts/pppoe-setup /usr/sbin
mkdir -p /usr/share/doc/rp-pppoe-3.12
/usr/bin/install -c -m 644 ../doc/CHANGES /usr/share/doc/rp-pppoe-3.12
/usr/bin/install -c -m 644 ../doc/KERNEL-MODE-PPPOE /usr/share/doc/rp-pppoe-3.12
/usr/bin/install -c -m 644 ../doc/HOW-TO-CONNECT /usr/share/doc/rp-pppoe-3.12
/usr/bin/install -c -m 644 ../doc/LICENSE /usr/share/doc/rp-pppoe-3.12
/usr/bin/install -c -m 644 ../README /usr/share/doc/rp-pppoe-3.12
/usr/bin/install -c -m 644 ../SERVPOET /usr/share/doc/rp-pppoe-3.12
/usr/bin/install -c -m 644 ../configs/pap-secrets /usr/share/doc/rp-pppoe-3.12
mkdir -p /usr/share/man/man8
for i in pppoe pppoe-server pppoe-sniff pppoe-relay ; do \
if test -f ../man/$i.8 ; then \
/usr/bin/install -c -m 644 ../man/$i.8 /usr/share/man/man8 || exit
1; \
fi; \
done
/usr/bin/install -c -m 644 ../man/pppoe-start.8 /usr/share/man/man8
/usr/bin/install -c -m 644 ../man/pppoe-stop.8 /usr/share/man/man8
/usr/bin/install -c -m 644 ../man/pppoe-status.8 /usr/share/man/man8
/usr/bin/install -c -m 644 ../man/pppoe-connect.8 /usr/share/man/man8
/usr/bin/install -c -m 644 ../man/pppoe-setup.8 /usr/share/man/man8
mkdir -p /usr/share/man/man5
/usr/bin/install -c -m 644 ../man/pppoe.conf.5 /usr/share/man/man5
mkdir -p /etc/ppp
mkdir -p /etc/ppp/plugins
echo "# Directory created by rp-pppoe for kernel-mode plugin" > /etc/ppp/plugins/README

Type 'pppoe-setup' to configure the software.


root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# pppoe
pppoe pppoe-connect pppoe-relay pppoe-setup pppoe-start pppoe-
stop
pppoeconf pppoe-discovery pppoe-server pppoe-sniff pppoe-status
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# pppoe-setup
common.c config.status discovery.c libevent/ md5.o pppoe
pppoe-server pppoe-sniff.c
common.o configure discovery.o Makefile plugin/ pppoe.c
pppoe-server.c pppoe-sniff.o
config.h configure.in if.c Makefile.in plugin.c pppoe.h
pppoe-server.h relay.c
config.h.in debug.c if.o md5.c ppp.c pppoe.o
pppoe-server.o relay.h
config.log debug.o install-sh md5.h ppp.o pppoe-relay
pppoe-sniff relay.o
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# pppoe-setup
Welcome to the Roaring Penguin PPPoE 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 bxxxnxnx@sympatico.ca): ranjith

INTERFACE

>>> Enter the Ethernet interface connected to the DSL modem


For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
(default eth1):

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): ^C
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# pppoe-setup
Welcome to the Roaring Penguin PPPoE 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 bxxxnxnx@sympatico.ca): ranjith

INTERFACE

>>> Enter the Ethernet interface connected to the DSL modem


For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
(default eth1): eth2

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 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: 10.20.145.1
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: 10.33.4.1

PASSWORD

>>> Please enter your PPPoE password:


>>> Please re-enter your PPPoE password:

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):
Please enter a number from 0 to 2
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

** Summary of what you entered **

Ethernet Interface: eth2


User name: ranjith
Activate-on-demand: No
Primary DNS: 10.20.145.1
Secondary DNS: 10.33.4.1
Firewalling: NONE

>>> Accept these settings and adjust configuration files (y/n)? y


Adjusting /etc/ppp/pppoe.conf
Adjusting /etc/resolv.conf
(But first backing it up to /etc/resolv.conf-bak)
Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets
(But first backing it up to /etc/ppp/pap-secrets-bak)
(But first backing it up to /etc/ppp/chap-secrets-bak)

Congratulations, it should be all set up!

Type 'pppoe-start' to bring up your PPPoE link and 'pppoe-stop' to bring


it down. Type 'pppoe-status' to see the link status.
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# vim /etc/ppp/pppoe-server-options
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# cat /etc/ppp/pppoe-server-options
# PPP options for the PPPoE server
# LIC: GPL
require-chap
#login
lcp-echo-interval 10
lcp-echo-failure 2
ms-dns 4.2.2.1
ms-dns 4.2.2.3
netmask 255.255.255.0
defaultroute
noipdefault
usepeerdns
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# vim /etc/ppp/chap-secrets
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# vim /etc/ppp/chap-secrets
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# cat /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses

"ranjith" * "ranjith123" 169.254.6.35


root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# vim /etc/ppp/ipaddress_pool
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# cat /etc/ppp/ipaddress_pool
169.254.6.35-37
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# vim /etc/ppp/pppoe_start
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# cat /etc/ppp/pppoe_start
#!/bin/bash
##############################
# Simple script that starts PPPoE Server
##############################

# Enable IP Forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

# Start PPPoE Server


pppoe-server -C isp -L 169.254.6.33 -p /etc/ppp/ipaddress_pool -I eth2 -m 1412
# Set Firewall rules
iptables -t nat -F POSTROUTING
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# vim /etc/ppp/pppoe_start
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# cat /etc/ppp/pppoe_start
#!/bin/bash
##############################
# Simple script that starts PPPoE Server
##############################

# Enable IP Forwarding
echo 2 > /proc/sys/net/ipv4/ip_forward

# Start PPPoE Server


pppoe-server -C isp -L 169.254.6.33 -p /etc/ppp/ipaddress_pool -I eth2 -m 1412

# Set Firewall rules


#iptables -t nat -F POSTROUTING
#iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# vim /etc/ppp/pppoe_stop
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# cat /etc/ppp/pppoe_stop
#!/bin/bash
##############################
# Simple script that stops PPPoE Server
##############################

# Disable IP Forwarding
echo 0 > /proc/sys/net/ipv4/ip_forward

# Kill PPPoE Server


killall pppoe-server
killall pppd

# Flush the IPtable rules.


iptables -t nat -F POSTROUTING
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# ############ PPPoE server stop ########
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# /etc/ppp/pppoe_stop
-bash: /etc/ppp/pppoe_stop: Permission denied
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# chmod 600 /etc/ppp/chap-secrets
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# chmod 600 /etc/ppp/pppoe_stop
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# chmod 600 /etc/ppp/pppoe_start
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# ############ PPPoE server stop ########
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# /etc/ppp/pppoe_stop
-bash: /etc/ppp/pppoe_stop: Permission denied
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# vim /etc/ppp/pppoe_stop
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# ls -lrt /etc/ppp/pppoe_stop
-rw------- 1 root root 294 Dec 6 17:03 /etc/ppp/pppoe_stop
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# /etc/ppp/pppoe_stop
-bash: /etc/ppp/pppoe_stop: Permission denied
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# chmod 777 /etc/ppp/pppoe_stop
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# /etc/ppp/pppoe_stop
pppoe-server: no process found
pppd: no process found
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# ^C
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# ^C
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# ^C
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# /etc/ppp/pppoe_start
-bash: /etc/ppp/pppoe_start: Permission denied
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# chmod 777 /etc/ppp/pppoe_start
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src# /etc/ppp/pppoe_start
root@aric-214-cr-internet1:~/rp-pppoe-3.12/src#

 Debug.py interfaces didn’y display the two wan interface(GE5 & GE6) created.
velocloud b1-edge1:~#
velocloud b1-edge1:~#
velocloud b1-edge1:~#
velocloud b1-edge1:~# debug.py --interfaces
[
{
"advertise": false,
"ip_addr": "169.254.7.10",
"logical_name": "GE4",
"netmask": "255.255.255.248",
"nhop": "169.254.7.9",
"physical_name": "eth0",
"rpf": "SPECIFIC",
"secondaryips": [],
"segment_id": 0,
"subinterfaces": [],
"trusted": false,
"type": "WAN",
"underlay_accounting": true,
"up": true
},
{
"advertise": false,
"ip_addr": "172.16.1.2",
"logical_name": "GE6",
"netmask": "255.255.255.248",
"nhop": "172.16.1.3",
"physical_name": "eth4",
"rpf": "SPECIFIC",
"secondaryips": [],
"segment_id": 0,
"subinterfaces": [
{
"advertise": false,
"ipaddr": "172.17.1.2",
"nat_direct": true,
"netmask": "255.255.255.248",
"nhop": "172.17.1.3",
"ospf_enabled": false,
"rpf": "SPECIFIC",
"segment_id": 1,
"trusted": false,
"vlan_id": 100
},
{
"advertise": false,
"ipaddr": "172.18.1.2",
"nat_direct": true,
"netmask": "255.255.255.248",
"nhop": "172.18.1.3",
"ospf_enabled": false,
"rpf": "SPECIFIC",
"segment_id": 2,
"trusted": false,
"vlan_id": 101
}
],
"trusted": false,
"type": "WAN",
"underlay_accounting": true,
"up": true
},
{
"advertise": false,
"ip_addr": "169.254.9.3",
"logical_name": "GE3",
"netmask": "255.255.255.248",
"nhop": "169.254.9.2",
"physical_name": "eth5",
"rpf": "SPECIFIC",
"secondaryips": [],
"segment_id": 0,
"subinterfaces": [],
"trusted": false,
"type": "WAN",
"underlay_accounting": true,
"up": true
},
{
"advertise": false,
"ip_addr": "172.16.1.10",
"logical_name": "GE7",
"netmask": "255.255.255.248",
"nhop": "172.16.1.11",
"physical_name": "eth6",
"rpf": "SPECIFIC",
"secondaryips": [],
"segment_id": 0,
"subinterfaces": [
{
"advertise": false,
"ipaddr": "172.17.1.10",
"nat_direct": true,
"netmask": "255.255.255.248",
"nhop": "172.17.1.11",
"ospf_enabled": false,
"rpf": "SPECIFIC",
"segment_id": 1,
"trusted": false,
"vlan_id": 100
},
{
"advertise": false,
"ipaddr": "172.18.1.10",
"nat_direct": true,
"netmask": "255.255.255.248",
"nhop": "172.18.1.11",
"ospf_enabled": false,
"rpf": "SPECIFIC",
"segment_id": 2,
"trusted": false,
"vlan_id": 101
}
],
"trusted": false,
"type": "WAN",
"underlay_accounting": true,
"up": true
},
{
"advertise": false,
"ip_addr": "10.0.1.2",
"logical_name": "br-management",
"netmask": "255.255.255.255",
"nhop": "0.0.0.0",
"physical_name": "br-management",
"rpf": "DISABLED",
"secondaryips": [],
"segment_id": 0,
"subinterfaces": [],
"trusted": false,
"type": "LAN",
"underlay_accounting": false,
"up": true
},
{
"advertise": false,
"ip_addr": "10.0.1.1",
"logical_name": "br-network1",
"netmask": "255.255.255.0",
"nhop": "0.0.0.0",
"physical_name": "br-network1",
"rpf": "DISABLED",
"secondaryips": [],
"segment_id": 0,
"subinterfaces": [],
"trusted": false,
"type": "LAN",
"underlay_accounting": false,
"up": true
},
{
"advertise": false,
"ip_addr": "10.100.1.1",
"logical_name": "br-network100",
"netmask": "255.255.255.0",
"nhop": "0.0.0.0",
"physical_name": "br-network100",
"rpf": "DISABLED",
"secondaryips": [],
"segment_id": 1,
"subinterfaces": [],
"trusted": false,
"type": "LAN",
"underlay_accounting": false,
"up": true
},
{
"advertise": false,
"ip_addr": "10.101.1.1",
"logical_name": "br-network101",
"netmask": "255.255.255.0",
"nhop": "0.0.0.0",
"physical_name": "br-network101",
"rpf": "DISABLED",
"secondaryips": [],
"segment_id": 2,
"subinterfaces": [],
"trusted": false,
"type": "LAN",
"underlay_accounting": false,
"up": true
},
{
"advertise": false,
"ip_addr": "169.254.6.35",
"logical_name": "GE5",
"netmask": "255.255.255.255",
"nhop": "0.0.0.0",
"physical_name": "pppoe-GE5",
"rpf": "SPECIFIC",
"secondaryips": [],
"segment_id": 0,
"subinterfaces": [],
"trusted": false,
"type": "IP_WAN",
"underlay_accounting": false,
"up": true
}
]
velocloud b1-edge1:~#

 TCPdump taken on wan simulater


 Check PPPoE interface is created
┌────────────────────────────────────────────────────────────────────┐
│ • MobaXterm 8.4 • │
│ (SSH client, X-server and networking tools) │
│ │
│ ➤ SSH session to root@10.115.52.214 │
│ • SSH compression : ✔ │
│ • SSH-browser : ✔ │
│ • X11-forwarding : ✘ (disabled or not supported by server) │
│ • DISPLAY : 172.17.100.98:1.0 │
│ │
│ ➤ For more info, ctrl+click on help or visit our website │
└────────────────────────────────────────────────────────────────────┘

BusyBox v1.23.2 (2018-09-21 01:47:55 UTC) built-in shell (ash)

_ __ __ ________ __
| | / /__ / /___ / ____/ /___ __ ______/ /
| | / / _ \/ / __ \/ / / / __ \/ / / / __ /
| |/ / __/ / /_/ / /___/ / /_/ / /_/ / /_/ /
|___/\___/_/\____/\____/_/\____/\__,_/\__,_/

VeloCloud Inc.
------------------------------------------------
velocloud b1-edge1:~#
velocloud b1-edge1:~#
velocloud b1-edge1:~# ifconfig
br-management Link encap:Ethernet HWaddr 26:87:EC:80:9D:61
inet addr:10.0.1.2 Bcast:255.255.255.255 Mask:255.255.255.255
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

br-network1 Link encap:Ethernet HWaddr 00:50:56:83:2F:09


inet addr:10.0.1.1 Bcast:10.0.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:263 errors:0 dropped:0 overruns:0 frame:0
TX packets:150 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20830 (20.3 Kb) TX bytes:19190 (18.7 Kb)

br-network100 Link encap:Ethernet HWaddr 00:50:56:83:D9:71


inet addr:10.100.1.1 Bcast:10.100.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

br-network101 Link encap:Ethernet HWaddr 00:50:56:83:D9:71


inet addr:10.101.1.1 Bcast:10.101.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
br-network1 Link encap:Ethernet HWaddr 00:50:56:83:2F:09
inet addr:10.0.1.1 Bcast:10.0.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

br-network100 Link encap:Ethernet HWaddr 00:50:56:83:D9:71


inet addr:10.100.1.1 Bcast:10.100.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

br-network101 Link encap:Ethernet HWaddr 00:50:56:83:D9:71


inet addr:10.101.1.1 Bcast:10.101.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

eth0 Link encap:Ethernet HWaddr 00:50:56:83:9A:79


inet addr:169.254.7.10 Bcast:169.254.7.15 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13362 errors:0 dropped:58 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3144186 (2.9 Mb) TX bytes:420 (420.0 b)

eth1 Link encap:Ethernet HWaddr 00:50:56:83:2F:09


UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:120 (120.0 b) TX bytes:1720 (1.6 Kb)

eth2 Link encap:Ethernet HWaddr 00:50:56:83:B6:36


UP BROADCAST RUNNING MTU:1420 Metric:1
RX packets:51761 errors:0 dropped:1 overruns:0 frame:0
TX packets:55705 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:70229444 (66.9 Mb) TX bytes:75685420 (72.1 Mb)

eth3 Link encap:Ethernet HWaddr 00:50:56:83:D9:71


UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:265 errors:0 dropped:0 overruns:0 frame:0
TX packets:198 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24632 (24.0 Kb) TX bytes:21398 (20.8 Kb)

eth3.100 Link encap:Ethernet HWaddr 00:50:56:83:D9:71


UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:736 (736.0 b)

eth3.101 Link encap:Ethernet HWaddr 00:50:56:83:D9:71


UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:736 (736.0 b)

eth4 Link encap:Ethernet HWaddr 00:50:56:83:9E:AA


inet addr:172.16.1.2 Bcast:172.16.1.7 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13305 errors:0 dropped:9 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3138918 (2.9 Mb) TX bytes:0 (0.0 b)

eth4.100 Link encap:Ethernet HWaddr 00:50:56:83:9E:AA


inet addr:172.17.1.2 Bcast:172.17.1.7 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth4.101 Link encap:Ethernet HWaddr 00:50:56:83:9E:AA
inet addr:172.18.1.2 Bcast:172.18.1.7 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth5 Link encap:Ethernet HWaddr 00:50:56:83:FA:AF


inet addr:169.254.9.3 Bcast:169.254.9.7 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13478 errors:0 dropped:57 overruns:0 frame:0
TX packets:329 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3188147 (3.0 Mb) TX bytes:102568 (100.1 Kb)

eth6 Link encap:Ethernet HWaddr 00:50:56:83:1B:3B


inet addr:172.16.1.10 Bcast:172.16.1.15 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13302 errors:0 dropped:5 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3138156 (2.9 Mb) TX bytes:0 (0.0 b)

eth6.100 Link encap:Ethernet HWaddr 00:50:56:83:1B:3B


inet addr:172.17.1.10 Bcast:172.17.1.15 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth6.101 Link encap:Ethernet HWaddr 00:50:56:83:1B:3B


inet addr:172.18.1.10 Bcast:172.18.1.15 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

lo Link encap:Local Loopback


inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:1500 Metric:1
RX packets:40402 errors:0 dropped:0 overruns:0 frame:0
TX packets:40402 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8980705 (8.5 Mb) TX bytes:8980705 (8.5 Mb)

pppoe-GE5 Link encap:Point-to-Point Protocol


inet addr:169.254.6.35 P-t-P:169.254.6.33 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1412 Metric:1
RX packets:51675 errors:0 dropped:0 overruns:0 frame:0
TX packets:55676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:69070617 (65.8 Mb) TX bytes:74459609 (71.0 Mb)

vce1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00


inet addr:169.254.129.2 P-t-P:169.254.129.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4286 errors:0 dropped:0 overruns:0 frame:0
TX packets:6388 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:4096
RX bytes:1478583 (1.4 Mb) TX bytes:1526636 (1.4 Mb)

velocloud b1-edge1:~#
velocloud b1-edge1:~#
Once session established, you would be able to see the acquired PPPoE IP address:

You might also like