[这个贴子最后由maxbsd在 2002/12/02 07:22pm 编辑]
ummmm, 还记得偶昨天贴得那个os pppoe性能大比拼的文章吧? freebsd, linux2.2性能较低的原因是使用了userland的pppoe, .netbsd和linux2.4使用的是kernel mode(内和级的),所以就.....。其实freebsd也是可以实现kernel mode的,只是手册上没有明确说明而已。经过一番查找,偶发现使用一个ports里带的软件配.netgraph可以实现kernel pppoe, 这个软件名字叫mpd (/usr/ports.net/mpd), 有兴趣的可以自己试试,看看是不是快了许多。
mpd目前的版本是3.10,ports里的说明文件是这样描述它的:"[font=verdana]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字)[/font]。
哦,对了。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
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器