#vi /etc/pppoe.conf

option /etc/ppp/pppoe-server-options
localip 10.0.0.1
remoteip 10.0.0.2-254

#vi /etc/ppp/pppoe-server-options

require-chap
noipdefault
mru 1492
mtu 1492
lcp-max-configure 60
lcp-restart 2
lcp-echo-interval 30
lcp-echo-failure 4
idle 0
noipx
proxyarp
ms-dns 8.8.8.8
#debug dump logfd 2 nodetach

#comment this two lines if you don't want to use radius for authentication
plugin radius.so
plugin radattr.so

#vi /etc/rc.d/rc.pppoe-server

#!/bin/bash
#
# /etc/rc.d/rc.pppoe-server
#

# Configuration
SRVNAME="Accounting"
MAXCON=250
LOCALIP=10.0.0.1
STARTIP=10.0.0.2
USRIF=eth0
HOSTNAME=$(hostname)

start ()
{
  modprobe pppoe
  ifconfig $USRIF up
  /usr/sbin/pppoe-server -k -I $USRIF -N $MAXCON -C $HOSTNAME -S $SRVNAME -L $LOCALIP -R $STARTIP
}

case "$1" in
  'start')
    echo 'Starting pppoe-server ...'
    PID=$(pgrep '^pppoe-server$')
    if [ "$PID" == "" ] ; then
      start
    else
      echo 'pppoe-server is already running !!!'
    fi
    ;;
  'stop')
    echo 'Stoping pppoe-server ...'
    killall pppoe-server
    ;;
  'restart')
    echo 'Restarting pppoe-server ...'
    killall pppoe-server
    sleep 2
 start
    ;;
  *)
    echo "Usage: $0 {start|stop|restart}"
    ;;
esac

#chmod 755 /etc/rc.d/rc.pppoe-serve

#echo “/etc/rc.d/rc.pppoe-server start” >> /etc/rc.d/rc.local

#echo “modprobe ppp-compress-18” >> /etc/rc.d/rc.local

#modprobe ppp-compress-18

if you don’t use radius:

#vi /etc/ppp/chap-secrets

# Secrets for authentication using CHAP
# client server secret IP addresses
mehdi * 123 *

if you need to use radius:

#cd /usr/src
#wget https://download.samba.org/pub/ppp/ppp-2.4.5.tar.gz
#tar -zxvf ppp-2.4.5.tar.gz
#mkdir /usr/local/etc/radiusclient
#cp -R /usr/src/ppp-2.4.5/pppd/plugins/radius/etc/*  /usr/local/etc/radiusclient/
#rm -rf /etc/radiusclient
#ln -sn /usr/local/etc/radiusclient /etc/
#vi /usr/local/etc/radiusclient/servers

#Server Name or Client/Server pair              Key
#----------------                               ---------------
#portmaster.elemental.net                       hardlyasecret
#portmaster2.elemental.net                      donttellanyone
127.0.0.1        radius_secret

best Regards

mehdi.sadighian@hotmail.com