12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 9The above code is a generic configuration for a PPPoE client connection. You justneed to set up the correct network interface name that is connected to your modem(in this case, fxp0), and the login information.Some providers require a service name tag to be transmitted, in addition to yourlogin information. In this case, if the service tag is yourtag, you should modify theset device line to look like following code:set device PPPoE:fxp0:yourtagSetting up PPPoE ServerNow that you are on the side of the service provider, you may want to set up a basicPPPoE BRAS for your broadband customers. The logic behind setting up a PPPoEserver is pretty much the same for the PPP server over the serial line, unless there isno serial line involved in this process, and Ethernet media is used instead.Since the incoming PPPoE requests come over Ethernet media, a special daemoncalled pppoed(8) handles these requests. The pppoed(8) daemon listens for thePPPoE discovery requests and launches ppp(8) to handle the PPP protocol uponreceiving an incoming request.In order to run a PPPoE server, you should customize your kernel and add necessaryNETGRAPH modules to the kernel. At least the following three lines should be addedto your kernel configuration:options NETGRAPHoptions NETGRAPH_PPPOEoptions NETGRAPH_SOCKETOnce you have successfully built your kernel and rebooted your host with the newkernel, you can set up pppoed(8) to accept the connection. To enable pppoed, thefollowing line should be added to the /etc/rc.conf file:pppoed_enable="YES"pppoed_interface="bge0"pppoed_provider="*"pppoed_flags="-P /var/run/pppoed.pid -a "server1" -l "pppoe-in" "This configuration will enable pppoed to automatically start upon system boot up.It will listen on bge0 Ethernet interface for the incoming PPPoE requests. As thepppoe_provider variable is set to "*", pppoed does not care about the providername that is sent in the PPPoE request.[ 153 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!