/etc/ppp/ppp.conf
default:
set log Phase tun command
set ifaddr 10.0.0.1/0 10.0.0.2/0
enable dns
adsl:
set device PPPoE:em0
set authname xxxxx
set authkey xxxxx
set dial
set login
add default HISADDR
ppp -ddial adsl
killall ppp
kill ppp_pid
Restart my network if I want to link to LAN:
# /etc/netstart /*Not really needed.*/
ifconfig em0 down
ifconfig em0 up
阅读(2258) | 评论(0) | 转发(0) |