mpd目前的版本是3.10,Ports里的说明文件是这样描述它的:"Mpd is a netgraph(4) based implementation of the multi-link PPP protocol for FreeBSD. It is designed to be both fast and flexible.It handles configuration and negotiation in user land, while routing. all data packets strictly in the kernel. It supports several of the numerous PPP sub-protocols and extensions....(下面略去约100字)。
哦,对了。mpd的手册在这里,http://pink.the-7.net/~ab/mpd/mpd.HTML。有时间慢慢研究一下吧。
下面再提供一些配置mpd的例子(要配置三个文件),更多的例子可以在/usr/local/etc/mpd下找到。不过不要全部照抄哦。:-)
[font=verdana]
mpd.conf
PPPoE:
new -i ng0 PPPoE PPPoE
set iface addrs 1.1.1.1 2.2.2.2
set iface route default
set iface disable on-demand
set iface idle 0
set bundle disable multilink
set bundle authname username
set link no acfcomp protocomp
set link disable pap chap
set link accept chap
set link mtu 1492
set link mru 1492
set ipcp yes vjcomp
set ipcp ranges 0.0.0.0/0 0.0.0.0/0
open iface
mpd.links
PPPoE:
set link type pppoe
set pppoe iface rl0
set pppoe service "ADSL"
mpd.secret
username "passWord"
[/font]
配置完了以后用mpd -b启动mpd。更多的启动选项请敲mpd -h查看。
Ummm, 最后, 你可能还要在kernel里加上netgraph支持。 不过这些都留给你自己去试啦。成功了不要忘了回个贴哦。
标签: