Mask's web site
| | FreeBSD | Linux | 回憶 | 社團經歷
   
FreeBSD > PPPoE  

PPPoE(Point-to-Point Protocol over Ethernet) is a new technic derive from ADSL.

Below is my pppoe configuration. If you want to know deeply, please reference man page ppp(8).

 

Turn on PPPoE

  1. Get FreeBSD Release 3.1 or higher. Versions before this do not support pppoe.
  2. You must have two ethernet cards, one connects outside(real ip), and the other inside(private ip).
  3. # cd /usr/src/sys/i386/conf/
  4. # cp GENERIC xxx(xxx is a filename what you want to assign, modify xxx for a new kernel, this way is to backup original kernel)
  5. Build a custom kernel with the following option:

    In addition, you can add advance options below:
  6. # config xxx
  7. # cd /usr/src/sys/compile/xxx/
  8. # make depend all install
  9. Backup /etc/rc.conf, and modify it below:

    In addition, you can add advance command to /etc/rc.local like below:
  10. Backup /etc/defaults/rc.conf, and modify it below:
  11. Backup /etc/ppp/ppp.conf, and modify it below:
  12. Now PPPoE is done.
  13. # sync;reboot
  14. # ifconfig -a

 

FAQ

Q: If your computers which inside didn't browse some web sites, or receive E-mail, you can follow steps below:
A:

MTU is the reason of this problem, if your computer is UNIX platform, you can set MTU below:

If your computer is Win98 platform, you can set MTU below:

 

 

 

 

 

 

 

 

 
 

CopyRight © by Mask.
All rights reserved.