Category:

Configuring PPPoE on FreeBSD 9

1

The Point-to-Point Protocol over Ethernet (PPPoE) is a network protocol for encapsulating PPP frames inside Ethernet frames. It appeared in 1999, in the context of the boom of DSL as the solution for tunneling packets over the DSL connection to the ISP's IP network, and from there to the rest of the Internet.

To set up, you need to edit the configuration file ppp.conf.

Code:

default:
set log Phase tun command # you can add more detailed logging if you wish
set ifaddr 10.0.0.1/0 10.0.0.2/0
name_of_service_provider:
set device PPPoE:xl1 # replace xl1 with your Ethernet device
set authname YOURLOGINNAME
set authkey YOURPASSWORD
set dial
set login
add default HISADDR

Server startup:

ppp -ddial name_of_service_provider

To connect when the system startup, add to /etc/rc.conf next line:

ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES" # if you do not use NAT in the network, you must set the parameter NO
ppp_profile="name_of_service_provider"

To disable PPPoE connection in the console, run:

/etc/rc.d/ppp stop

To start, restart and view the status of the service, you can also use:

/etc/rc.d/ppp start #start
/etc/rc.d/ppp restart #restart
/etc/rc.d/ppp status #view status

The configuration of the pppoe connection is complete.


Posted: 2013-02-20

Comments