This document is outdated

UPDATED 28.jan.2005 Complete step-by-step HOWTO for configuring PPPoE for ADSL (ST DSL)

Before you start

Run Vigor 318 Control panel (or ask your provider) for these parameters: sample adsl configuration parameters


Applying patch to kernel

Copy and unpack kernel to some directory (example: /usr/src/linux-2.6.10-custom)
Edit Makefile in this directory

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 10
EXTRAVERSION = -custom
enable the following modules with "make gconfig", "make xconfig" or "make menuconfig":

Device Driver -> Networking Support -> Networking Options -> ...
<M> Asynchronous Transfer Mode (ATM)
<M> Classical IP over ATM
[*] Do NOT send ICMP if no neighbour
<M> LAN Emulation (LANE) support
<M> Multi-Protocol Over ATM (MPOA) support
<M> RFC1483/2684 Bridged protocols
[*] Per-VC IP filter kludge
   
Device Driver -> USB Support -> ...
<M> Support for USB
<M> Alcatel Speedtouch USB support (NEW)
Compile kernel:
make
make modules
make modules_install
make install
Reboot machine with new kernel

You need to install these packages or newer (or compile from source): If you want compile ppp-2.4.2 from sources you have to install also these before If are compiling libpcap from sources you will also need byacc and flex

unzip and copy patch to ppp-2.4.2 directory and apply patch by typing
patch -p1 < ppp-2.4.2_poa_poe_patch_20040611 
and also do modification in two files:
edit ppp-2.4.2/pppd/demand.c and replace
#include <net/bpf.h> with #include <pcap-bpf.h>
the same change do for ppp-2.4.2/pppd/syslinux.c

after that compile pppd-2.4.2 as usual (make; make install)

Unpack cxacru to some directory
Download cxacru-vigor-update.tar.gz and replace these cxacru files. Then compile cxacru from source by typing
make
make install
After that you must remove these files
/lib/modules/2.6.10-custom/kernel/drivers/usb/cxacru.ko 
/lib/modules/2.6.10-custom/kernel/drivers/usb/cxacrudbg.ko 
/etc/ppp/options
BTW: Because speedtch.ko instead of cxacru.ko and pppoe.conf instead options will be used.

Edit /etc/cxacru like this
DRIVER_MODE=1  # 1 = normal, 2 = debug, 3 = normal+max speed (without ask adsl status), 4 = debug+max speed (without ask adsl status)

# Protocol
PROTOCOL_MODE=4  # 1 = RFC1483/2684 routed, 2 = PPP over ATM (pppoa), 3 = RFC1483/2684 bridged, 4 = PPP over Ethernet (pppoe)

# Paths
BINARY_PATH="/usr/sbin"
ATM_PATH=""

# ADSL
#  if OPEN_MODE is blank then cxload uses default mode acoording VID & PID
#  Values for OPEN_MODE are:
#    0 = auto selection, G.Handshake
#    1 = auto selection, T1.413
#    2 = G.Handshake
#    3 = ANSI T1.413
#    4 = ITU-T G.992.1 (G.DMT)
#    5 = ITU-T G.992.2 (G.LITE)
OPEN_MODE=4

# ATM
VPI=1
VCI=32

# Specific for RFC1483/2684 routed/bridged
#  if IP_ADDRESS is blank in bridged mode then it uses DHCP to get IP
IP_ADDRESS=
NETMASK=255.255.255.0
GATEWAY=

Run /usr/sbin/adsl-setup and type
Username:  	your_login@dslbasic.stonline.sk
Interface: 	nas0
DNS: 		server
PPPoE password: your_password
Firewall:	0 or 1 or 2
Start this connection at boot time: yes or no

To start connection run cxstart.sh
Sample log file of successful connecting/disconnecting.


FAQ

Question:
I'm getting this error when run cxstart.sh
RFC1483/2684 bridge: Interface "nas0" created sucessfully
RFC1483/2684 bridge: Communicating over ATM 0.8.35, encapsulation: LLC
RFC1483/2684 bridge: Fatal: failed to connect on socket
Answer:
Use modified script cxnet4up.sh which executes cxioctl before br2684ctl
Question:
I'm getting TIMEOUT, but ADSL line is up (orange LED is lighting)
Answer:
Run adsl-connect and wait until authentificated,
after that you can terminate script (because interface is mapped) and you are connected successfully.

Forum

Discuss this howto

Useful information sources

Zulliani Kernel 2.6 and Accessrunner
Accessrunner forum
back to homepage Ladislav Rado