ºìÁªLinuxÃÅ»§
Linux°ïÖú

ÀûÓÃFreeBSD½¨Á¢ADSL²¦ºÅÍø¹Ø·þÎñÆ÷

·¢²¼Ê±¼ä:2007-02-17 00:32:42À´Ô´:ºìÁª×÷Õß:Dragoncity
˵Ã÷
ΪÁËÈôó¼ÒÃ÷°×PPPoEÓëPPTPµÄ²»Í¬£¬ÒÔÃâ²úÉúÎÒ֮ǰµÄ»ìÏý£¬ÏȸæËß´ó¼ÒËüÃǵÄÓô¦¡£ÏÖÔÚÎÒÃÇʹÓÃPPPoEÖ÷ÒªÊÇADSL£¬ÎÒÃÇ¿ÉÒÔÊÓADSL ModemÖ»ÊÇÒ»¸ö²¦ºÅÆ÷£¬Ëü²»´øÍøÂ繦ÄÜ£¬¾ÍÏñʹÓñ¾»úÉ豸һÑùµÄȥʹÓÃËü¡£¶øPPTPÔòÊÇÔÚÍøÂçÉϾßÓÐÒ»¸öIPµØÖ·µÄ·þÎñÆ÷£¬ÎÒËù֪ͨ³£ÔÚУ԰Íø¡¢¹«Ë¾ÍøÖлá´óÁ¿Ê¹ÓÃÕâÑùµÄ²¦ºÅ·þÎñÆ÷ÒÔ½øÐмǷѻòÊÇ°²È«±£ÕÏ¡£
°²×°±ØÐëµÄÈí¼þ
ÓÉÓÚpppÊÇFreeBSD×Ô´øµÄÒ»¸ö¹¦ÄÜ£¬mpdÔòÊÇÒ»¸öFreeBSDµÄ¸½¼ÓÈí¼þ¡£Äã¿ÉÒÔʹÓÃFreeBSDµÄPorts CollectionÀ´±àÒëËü¡£mpd×îеİ汾Ϊ3.13£¬Ê¹ÓÃportsµÄ±àÒë·½·¨Îª£º
%cd /usr/ports/net/mpd
%make install
%make clean
Èç¹ûÄãûÓа²×°Ports Collection£¬ÄÄôҲ¿ÉÒÔÕÒµ½mpd3.13µÄpackage°²×°°ü¡£Ê¹ÓÃpackage°²×°°üµÄ°²×°·½·¨Îª£º
%pkg_add mpd-3.13.tbz
pppµÄ²¦ºÅÉèÖÃ
set log Phase Chat LCP IPCP CCP tun command
nat enable yes
nat same_ports yes
nat use_sockets yes
set redial 15 28800
set reconnect 15 28800
pppoe:
set device PPPoE:fxp0:
set mru 1492
set mtu 1492
set speed sync
enable lqr
set lqrperiod 5
set cd 5
set dial
set login
set timeout 0
set authname Your UserName used to login
set authkey Your Password used to login
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR# Add a (sticky) default route
enable dns
ÄãÐèÒª½«¡°set device PPPoE:fxp0:¡±ÖеÄfxp0±ä¸üΪÄãµÄPPPoE²¦³öµÄÍø¿¨½Ó¿ÚÉ豸Ãû¡£»¹ÓоÍÊǸü¸Ä¡°set authname Your UserName used to login ¡±ºÍ¡°set authkey Your Password used to login¡±ÖеÄYour xxx³ÉΪÄãµÄÓû§ÃûºÍÃÜÂë¡£Èç¹û²»ÖªµÀ×Ô¼ºµÄÍø¿¨É豸Ãû£¬ÄÄô¿ÉÒÔͨ¹ýifconfigÃüÁîÀ´µÃµ½£¬ÎҵļÆËã»úµÄ½á¹ûÈçÏ£º
%ifconfig -a
fxp0: flags=8843 mtu 1500
inet 192.168.10.50 netmask 0xffffff00 broadcast 192.168.10.255
ether 00:d0:59:0d:08:03
media: Ethernet autoselect (10baseT/UTP)
status: active
lo0: flags=8049 mtu 16384
inet 127.0.0.1 netmask 0xff000000
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ