Analog Devices® Eagle® driver for *BSD

Beastie

Building User PPP with ATM support

FreeBSD

In order to support PPPoA (PPP over ATM), ppp must be recompiled with the appropriate options. First, make sure that you have ppp sources installed into /usr/src/usr.sbin/ppp. Enter this directory and edit the file named Makefile. Remove the line:

NOATM=		true

Then, run the following command:

% make && make install

NetBSD

User ppp is not part of the base system in NetBSD. It is available through pkgsrc as net/userppp:

% cd /usr/pkgsrc/net/userppp
% make install clean

User ppp will be installed as /usr/pkg/sbin/ppp.

OpenBSD

In order to support PPPoA (PPP over ATM), ppp must be recompiled with the appropriate options. First, make sure that you have ppp sources installed into /usr/src/usr.sbin/ppp. Go into the /usr/src/usr.sbin/ppp/ppp directory and edit the file named Makefile. Remove the line:

NOATM=  /usr/include/netnatm required

Then run the following commands:

% cd ..
% make && make install

Configuring PPP

Here is a sample /etc/ppp/ppp.conf configuration file that you can use to connect to your Internet Service Provider:

default:
 set log Phase Warning
 add! default HISADDR
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 set login

adsl:
 set log local CCP Command DNS IPCP LCP TCP/IP Warning
 set device PPPoA:ueagle0:8.35 (1)
 set authname mylogin (2)
 set authkey mypasswd (3)

 enable lqr
 enable dns
 disable ipv6cp

 set reconnect 10 100
(1)
The VPI and VCI values provided by your ISP (in this example VPI=8 and VCI=35).
(2)
Login provided by your ISP.
(3)
Password provided by your ISP.

Synchronizing the modem

Note to XWindow users: It is recommended that you run xconsole to see the debug messages that are sent to the system console.
 
In order to synchronize your modem, you must run the adsl-up script:

% /usr/local/sbin/adsl-up

If you see something like:

eagleflash: Sorry, no pre-firmware modem found!

simply unplug and replug your modem from the USB and re-run the adsl-up script using the above command.
After a short delay, you should see something like this on the console:

ueagle0: vendor 0x1110 ADSL-USB Modem, rev 1.00/50.0b, addr 2
ueagle0: End System Identifier: xx:xx:xx:xx:xx:xx

The adsl-up script then wait for the modem to synchronize. It can take a while. You should see the lights on your modem starting to blink. Once your modem is synchronized, the adsl-up script will display your connection properties on the standard output:

DSL Delineation    : GOOD
DSL DownRate       : 6368Kb/s
DSL UpRate         : 640Kb/s

The values DownRate and UpRate should reflect your connection speed.

Establishing/Closing PPP session

Once your modem is synchronized (using adsl-up), you can use the following command to establish a PPP session with your provider:

% ppp -dedicated adsl

To close the connection, you can simply kill the ppp process by using the "killall ppp" command.
If you have problems for establishing the connection, you can check ppp logs in the /var/log/ppp.log file.


Copyright © 2003, 2004 Damien Bergamini. All rights reserved.
Contact me for more informations on this site.

valid XHTML1.1 valid CSS