PPPoE(adsl) on FreeBSD
Posted by Tintin in IT, tags: adsl, config, FreeBSD, IT, pppoe, shell, Study, Tech Tip/etc/ppp/ppp.conf
//**************************//
default:
set log Phase tun command
set ifaddr 10.0.0.1/0 10.0.0.2/0
njadsl:
set device PPPoE:fxp0 # replace fxp0 with your Ethernet device
set authname b00265276@adsl # replace with your adsl account
set authkey 86667024 # replace with your password
set dial
set login
add default HISADDR
//**************************//
use ifconfig to check the Ethernet device
dial command:
# ppp -ddial njadsl
succeeded, but got a warning, ignore it:P
# ifconfig
……
tun0: ……
inet 221.226.190.204 –> 218.2.135.62 netmask 0xffffffff
Opened by PID 930
use netstat -r to check the route info
#route delete default
#route add default 218.2.135.62
succeeded
/etc/rc.conf
//**************//
ppp_enable=”YES”
ppp_mode=”ddial”
ppp_nat=”YES”
ppp_profile=”njadsl”
//**************//
defaul browser mozilla
no chinese input now
but mpd is the recommended way, I’ll try later
and wanna try nat support:P
Entries (RSS)