We have faced a situation in which I will need to create a Linux PPPOE Server that is connected a DSLAM.
The DSLAM contains 3 VPI/VCIs and routers are connected via RJ45. This routers send username and password for authentication.
I found it strange that a search in Google yields no result.
Below are the steps to create and configure a PPPOE Server in Linux that is connected to a DSLAM.
The DSLAM contains 3 VPI/VCIs and routers are connected via RJ45. This routers send username and password for authentication.
I found it strange that a search in Google yields no result.
Below are the steps to create and configure a PPPOE Server in Linux that is connected to a DSLAM.
1) Obtain the VLAN id from DSLAM
Normally each VPI/VCI is mapped to a VLAN.
For my case below is the information:
For my case below is the information:
VPI/VCI-VLAN
0/10 -10
0/20-20
8/30-830
0/10 -10
0/20-20
8/30-830
The command line to obtain the VLAN based on VPI/VCI is manufacturer specific and the DSLAM command line reference manual should be consulted.
2) Create the VLAN interfaces on the Linux server
Below is an example in Ubuntu to create VLAN 10 in /etc/network/interfaces file.
3) Create /etc/ppp/options file
This contains option for the PPPOE Server.
auth indicates server will authenticate user name and password.
3) Create /etc/ppp/pap-secrets
This file contains the user name and password. The user public IP can also be specified.
Example content of user with static public IP
Example content of user with dynamic public IP
The dynamic IP is specified when the pppoe-server is started.
Refer to Step 4.
4) Create the pppoe daemon file
Below is an example with VLAN 10,20 and 830 as well as no VLAN.
No comments:
Post a Comment