FreeBSD & PPPOE -- Quick and dirty
Add below configuration to /etc/ppp/ppp.conf, where <interface> is your network interface toward the PPPoE server:
provider:
set device PPPoE:<interface>
set authname <PPPoE username>
set authkey <PPPoE password>
set dial
set login
add default HISADDR
enable lqr echo
enable dns
nat enable yes
set redial 2
Start the PPPoE client, as root:
/etc/rc.d/ppp start. The PPPoE interface is usually tun0.
In order to enable PPPoE client at startup, append to next info to /etc/rc.conf:
ifconfig_<interface>="up"
ppp_enable="YES"
ppp_profile="provider"
ppp_mode="ddial"
No comments:
Post a Comment