Hi,
I am new to linux. I am trying to setup a small pppoe network between two linux machine connecting them through ethernet cable(without modem).
Scenario is as follows-
WLAN <---------> PPPOE Access Concentrator <--------- ethernet cable-------------> PPPOE Client
(this setup doen't have modem only straight ethernet cable. Is this set up fine????????)
I have setup Linux kernel 2.6.29.4 as my client machine and Linux kernel 2.6.30 as server machine...
using ethernet cable I have connected both machine afterward configured client and Access Concentrator as follows-
How to Configure PPPOE server and Client-
1- Build kernel with PPP & PPPOE support with following options enabled
CONFIG_PPP=m
CONFIG_PPP_ASYNC=m
CONFIG_PPP_SYNC_TTY=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
CONFIG_PPPOE=m
CONFIG_N_HDLC=m
CONFIG_UNIX98_PTYS=y
edit /etc/modprobe.conf
alias char-major-108 ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-13 n_hdlc
alias tty-ldisc-14 ppp_synctty
alias net-pf-24 pppoe
Install ppp-2.4.5
# cd /usr/src
untar ppp-2.4.5.gz file
1- If you are using the .tar.gz form of this package, then cd into the
ppp-2.4.5 directory you obtained by unpacking the archive and issue
the following commands:
$ ./configure
$ make
# make install
3. Add the following line to /etc/ppp/options:
plugin rp-pppoe.so
Install pppoe 2.3.10
$ cd /usr/src/
1) Unpack:
$ tar xzvf rp-pppoe-xxx.tar.gz
2) Change to source directory:
$ cd src
3) Configure:
./configure --enable-plugin
This will work if the header pppd/pppd.h is located in /usr/include
or /usr/local/include.
4) Type make; make install
5) Edit /etc/ppp/pppoe.conf to include this line:
LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
Client
1- /etc/ppp/options.
asyncmap 0
crtscts
lock
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
This file stores the default options used
by pppd when it starts.
2- /etc/ppp/pppoe.conf
ETH=eth1
USER=zuruk
DEMAND=no
DNSTYPE=SERVER
PEERDNS=yes
DNS1=
DNS2=
DEFAULTROUTE=yes
CONNECT_TIMEOUT=30
CONNECT_POLL=2
ACNAME=
SERVICENAME=
PING="."
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-pppoe.pid"
SYNCHRONOUS=no
CLAMPMSS=1412
LCP_INTERVAL=20
LCP_FAILURE=3
PPPOE_TIMEOUT=80
FIREWALL=NONE
LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
PPPOE_EXTRA=""
PPPD_EXTRA=""
This file stores the default configuration for the pppoe client scripts.
It's parsed by pppoe-start, pppoe-stop and other pppoe client scripts
when they run. Note the:
LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
This instructs the pppoe client scripts to load the kernel mode pppoe plugin
when the script runs.
3- /etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client server secret IP
addresses
zuruk * weiter *
This file stores the PAP username and password to be used for PPP authentication.
Server
1- /etc/ppp/options.
asyncmap 0
crtscts
lock
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
This file stores the default options used
by pppd when it starts.
2- /etc/ppp/pppoe-server-options.
debug
plugin /etc/ppp/plugins/rp-pppoe.so
require-pap
mtu 1492
mru 1492
ktune
proxy
arplcp-echo-interval 10
lcp-echo-failure 2
nobsdcomp
noccp
novj
noipx
This file stores the parameters to be
passed to pppd when pppoe-server starts.
3- /etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client server secret IP
addresses
indosatm2 * prabayar *
zuruk * weiter *
This file stores the PAP username and password to be used for PPP authentication.
After setting up Client and Access Concentrator I am getting follwing error in /var/log/messages
Jul 30 19:51:52 localhost pppoe-connect: PPPoE connection lost; attempting re-connection.
Jul 30 19:58:12 localhost pppoe[3275]: PPP session is 1 (0x1)
Jul 30 19:58:13 localhost pppoe[3275]: Session 1 terminated -- received PADT from peer
Jul 30 19:58:13 localhost pppoe[3275]: PADT: Generic-Error: RP-PPPoE: Child pppd process terminated
Jul 30 19:58:13 localhost pppoe[3275]: Sent PADT
Jul 30 19:59:15 localhost pppoe[3277]: PPP session is 1 (0x1)
Jul 30 19:59:15 localhost pppoe[3277]: Session 1 terminated -- received PADT from peer
Jul 30 19:59:15 localhost pppoe[3277]: PADT: Generic-Error: RP-PPPoE: Child pppd process terminated
Jul 30 19:59:15 localhost pppoe[3277]: Sent PADT
Jul 30 20:19:10 localhost pppoe[3403]: PPP session is 1 (0x1)
Jul 30 20:19:40 localhost pppoe[3403]: Session 1 terminated -- received PADT from peer
Jul 30 20:19:40 localhost pppoe[3403]: PADT: Generic-Error: RP-PPPoE: Child pppd process terminated
Jul 30 20:19:40 localhost pppoe[3403]: Sent PADT
Jul 30 20:22:22 localhost pppoe[3409]: PPP session is 1 (0x1)
Jul 30 20:22:52 localhost pppoe[3409]: Session 1 terminated -- received PADT from peer
Jul 30 20:22:52 localhost pppoe[3409]: PADT: Generic-Error: RP-PPPoE: Child pppd process terminated
Jul 30 20:22:52 localhost pppoe[3409]: Sent PADT
Jul 30 20:24:54 localhost pppoe[3411]: PPP session is 1 (0x1)
Jul 30 20:25:24 localhost pppoe[3411]: Session 1 terminated -- received PADT from peer
Jul 30 20:25:24 localhost pppoe[3411]: PADT: Generic-Error: RP-PPPoE: Child pppd process terminated
Jul 30 20:25:24 localhost pppoe[3411]: Sent PADT
Jul 30 20:26:49 localhost pppoe[3415]: PPP session is 1 (0x1)
Jul 30 20:27:19 localhost pppoe[3415]: Session 1 terminated -- received PADT from peer
Jul 30 20:27:19 localhost pppoe[3415]: PADT: Generic-Error: RP-PPPoE: Child pppd process terminated
Jul 30 20:27:19 localhost pppoe[3415]: Sent PADT
Jul 30 20:31:07 localhost pppoe[3418]: PPP session is 1 (0x1)
Jul 30 20:31:37 localhost pppoe[3418]: Session 1 terminated -- received PADT from peer
Jul 30 20:31:37 localhost pppoe[3418]: PADT: Generic-Error: RP-PPPoE: Child pppd process terminated
Jul 30 20:31:37 localhost pppoe[3418]: Sent PADT
What I see in session stage Client receives junk frame to process...
and Acess Concentrator sends PADT when it executes execv command to start "pppd"
I am not able debud what exactly the problem is because connection fails dunring session stage...
Is there any problem in my setup????
Any help would be appreciated...
Thanks in Advance!!!!!!!!!!!!!