The following describes how to set up PPP over ATM (PPPoA). PPPoA is a popular choice among European DSL providers.
The mpd application can be used to connect to a variety of services, in particular PPTP services. It can be installed using the net/mpd5 package or port. Many ADSL modems require that a PPTP tunnel is created between the modem and computer.
Once installed, configure mpd
to suit the provider's settings. The port places a set of
sample configuration files which are well documented in
/usr/local/etc/mpd/. A complete guide to
configure mpd is available in HTML
Here is a sample configuration for connecting to an ADSL
service with mpd. The
configuration is spread over two files, first the
mpd.conf only works
with mpd 4.x.
default: load adsl adsl: new -i ng0 adsl adsl set bundle authname
usernameset bundle password
passwordset bundle disable multilink set link no pap acfcomp protocomp set link disable chap set link accept chap set link keep-alive 30 10 set ipcp no vjcomp set ipcp ranges 0.0.0.0/0 0.0.0.0/0 set iface route default set iface disable on-demand set iface enable proxy-arp set iface idle 0 open
Information about the link, or links, to establish is found
mpd.links. An example
mpd.links to accompany the above example
is given beneath:
adsl: set link type pptp set pptp mode active set pptp enable originate outcall set pptp self
10.0.0.1set pptp peer
The IP address of FreeBSD computer running mpd.
The IP address of the ADSL modem.
The Alcatel SpeedTouch™ Home defaults to
It is possible to initialize the connection easily by
issuing the following command as
To view the status of the connection:
ifconfigng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500 inet 220.127.116.11 --> 18.104.22.168 netmask 0xffffffff
Using mpd is the recommended way to connect to an ADSL service with FreeBSD.
It is also possible to use FreeBSD to connect to other PPPoA services using net/pptpclient.
To use net/pptpclient
to connect to a DSL service, install the port or package, then
/etc/ppp/ppp.conf. An example section
ppp.conf is given below. For further
ppp.conf options consult
adsl: set log phase chat lcp ipcp ccp tun command set timeout 0 enable dns set authname
passwordset ifaddr 0 0 add default HISADDR
Since the account's password is added to
ppp.confin plain text form, make sure
nobody can read the contents of this file:
chown root:wheel /etc/ppp/ppp.conf
chmod 600 /etc/ppp/ppp.conf
This will open a tunnel for a PPP
session to the DSL router. Ethernet DSL modems have a
preconfigured LAN IP address to connect to.
In the case of the Alcatel SpeedTouch™ Home, this address is
router's documentation should list the address the device
uses. To open the tunnel and start a PPP
If an ampersand (“&”) is added to the end of this command, pptp will return the prompt.
tun virtual tunnel device
will be created for interaction between the
ppp processes. Once the
prompt is returned, or the
pptp process has confirmed a
connection, examine the tunnel:
ifconfigtun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 inet 22.214.171.124 --> 126.96.36.199 netmask 0xffffff00 Opened by PID 918
If the connection fails, check the configuration of
the router, which is usually accessible using
a web browser. Also, examine the output of
pptp and the contents of the
/var/log/ppp.log for clues.