FreeBSD9.0配置ADSL拨号
#ppp -ddial dxadsl
/etc/resolv.conf
nameserver 61.139.2.69
nameserver 218.6.200.139
/etc/ppp/ppp.conf
default: set log command tun Chat Phase dxadsl: set MRU 1492 set device PPPoE:re0 set authname ******** set authkey ******** set dial set login set redial 3 5 set reconnect 3 5 set cd 5 enable dns set ifaddr 0 0 0 0 add default HISADDR
/var/log/ppp.log
1 Dec 19 11:09:07 cdproxy2 ppp[1589]: Phase: Using interface: tun1 2 Dec 19 11:09:07 cdproxy2 ppp[1589]: Phase: deflink: Created in closed state 3 Dec 19 11:09:12 cdproxy2 ppp[1589]: tun1: Command: dxadsl: set MRU 1492 4 Dec 19 11:09:12 cdproxy2 ppp[1589]: tun1: Command: dxadsl: set device PPPoE:re0 5 Dec 19 11:09:12 cdproxy2 ppp[1589]: tun1: Command: dxadsl: set authname ******** 6 Dec 19 11:09:12 cdproxy2 ppp[1589]: tun1: Command: dxadsl: set authkey ******** 7 Dec 19 11:09:12 cdproxy2 ppp[1589]: tun1: Command: dxadsl: set dial 8 Dec 19 11:09:12 cdproxy2 ppp[1589]: tun1: Command: dxadsl: set login 9 Dec 19 11:09:12 cdproxy2 ppp[1589]: tun1: Command: dxadsl: set redial 3 5 10 Dec 19 11:09:12 cdproxy2 ppp[1589]: tun1: Command: dxadsl: set reconnect 3 5 11 Dec 19 11:09:12 cdproxy2 ppp[1589]: tun1: Command: dxadsl: set cd 5 12 Dec 19 11:09:12 cdproxy2 ppp[1589]: tun1: Command: dxadsl: enable dns 13 Dec 19 11:09:12 cdproxy2 ppp[1589]: tun1: Command: dxadsl: set ifaddr 0 0 0 0 14 Dec 19 11:09:12 cdproxy2 ppp[1589]: tun1: Command: dxadsl: add default HISADDR 15 Dec 19 11:09:12 cdproxy2 ppp[1678]: tun1: Phase: PPP Started (ddial mode). 16 Dec 19 11:09:12 cdproxy2 ppp[1678]: tun1: Phase: bundle: Establish 17 Dec 19 11:09:12 cdproxy2 ppp[1678]: tun1: Phase: deflink: closed -> opening 18 Dec 19 11:09:12 cdproxy2 ppp[1678]: tun1: Phase: deflink: Connected! 19 Dec 19 11:09:12 cdproxy2 ppp[1678]: tun1: Phase: deflink: opening -> dial 20 Dec 19 11:09:12 cdproxy2 ppp[1678]: tun1: Phase: deflink: dial -> carrier 21 Dec 19 11:09:13 cdproxy2 ppp[1678]: tun1: Phase: Received NGM_PPPOE_ACNAME (hook "CD-CD-BS11F-BRAS-04.MAN.E320") 22 Dec 19 11:09:13 cdproxy2 ppp[1678]: tun1: Phase: Received NGM_PPPOE_SESSIONID 23 Dec 19 11:09:13 cdproxy2 ppp[1678]: tun1: Phase: Received NGM_PPPOE_SUCCESS 24 Dec 19 11:09:13 cdproxy2 ppp[1678]: tun1: Phase: deflink: carrier -> login 25 Dec 19 11:09:13 cdproxy2 ppp[1678]: tun1: Phase: deflink: login -> lcp 26 Dec 19 11:09:14 cdproxy2 ppp[1678]: tun1: Phase: bundle: Authenticate 27 Dec 19 11:09:14 cdproxy2 ppp[1678]: tun1: Phase: deflink: his = PAP, mine = none 28 Dec 19 11:09:14 cdproxy2 ppp[1678]: tun1: Phase: Pap Output: ******** ******** 29 Dec 19 11:09:14 cdproxy2 ppp[1678]: tun1: Phase: Pap Input: SUCCESS () 30 Dec 19 11:09:14 cdproxy2 ppp[1678]: tun1: Phase: deflink: lcp -> open 31 Dec 19 11:09:14 cdproxy2 ppp[1678]: tun1: Phase: bundle: Network 32 Dec 19 11:09:14 cdproxy2 ppp[1678]: tun1: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! 33 Dec 19 11:09:26 cdproxy2 last message repeated 5 times
开机自动拨号
/etc/rc.conf
ppp_enable="YES" ppp_model="ddial" ppp_nat="YES" ppp_profile="dxadsl"