Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| user:ahorner:pppoe_server_guide [2022/10/12 20:35] – ahorner | user:ahorner:pppoe_server_guide [2022/10/12 22:14] – ahorner | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| </ | </ | ||
| - | Usually, | + | Usually, |
| ===== Enabling RP PPPoE Server Configuration Menu ===== | ===== Enabling RP PPPoE Server Configuration Menu ===== | ||
| Unfortunately, | Unfortunately, | ||
| - | -- Image of menu item | + | {{: |
| - | If this menu item is already present, you may skip this section, otherwise you'll need to SSH into your device and modify the `/ | + | If this menu item is already present, you may skip this section, otherwise you'll need to SSH into your device and modify the '' |
| The default contents of this file is as follows: | The default contents of this file is as follows: | ||
| < | < | ||
| - | #default contents | + | #config pppoe_server |
| + | # | ||
| + | # | ||
| + | # list service_name service-name1 | ||
| + | # list service_name service-name2 | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | #config pppoe_relay | ||
| + | # list server_interface eth1 | ||
| + | # list client_interface eth0 | ||
| + | # list both_interface eth2 | ||
| + | # | ||
| + | # | ||
| </ | </ | ||
| - | You'll need to remove all the comment hashtags from each line, leaving the config file looking like so: | + | You'll need to remove all the comment hashtags from each line of the first section only, leaving the config file looking like so: |
| < | < | ||
| - | #uncommented | + | config pppoe_server |
| + | | ||
| + | | ||
| + | list service_name service-name1 | ||
| + | list service_name service-name2 | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | #config pppoe_relay | ||
| + | # list server_interface eth1 | ||
| + | # list client_interface eth0 | ||
| + | # list both_interface eth2 | ||
| + | # | ||
| + | # | ||
| </ | </ | ||
| - | After this, you'll need to force a pppoe configuration | + | The best thing to do now is to reboot your device, after which the menu item will appear. |
| + | |||
| + | ===== Initial Configuration ===== | ||
| + | The initial configuration of the PPPoE server is quite straightforward, | ||
| + | |||
| + | Without going into too much detail, PPPoE directly sends Ethernet frames between devices using MAC addresses instead of IP addresses in order to establish | ||
| + | |||
| + | We will go through each option one by one for the initial | ||
| + | |||
| + | ==== Interface ==== | ||
| + | --picture of default interface selection | ||
| + | |||
| + | The Interface option allows you to select what logical Interface will be used for the server. Because of the way OpenWrt manages interfaces, it is necessary to select a logical interface which has been configured in the Network -> Interfaces section of OpenWrt. This is because an interface will not be active until it is configured to be by OpenWrt. | ||
| + | |||
| + | You should choose which port (or ports) on your physical device | ||
| + | |||
| + | --picture of creating and created unmanaged interface | ||
| + | |||
| + | You are restricted to only selecting logical OpenWrt interfaces for use by the PPPoE server because the port(s) the server runs on must of course be enabled, which is handled by OpenWrt for you using these logical interfaces. | ||
| + | |||
| + | ==== Access Concentrator Name ==== | ||
| + | --picture of acn input | ||
| + | |||
| + | The Access Concentrator Name is essentially the name of your PPPoE server. This allows you to run more than one PPPoE server on one LAN, and allow you to specify on the PPPoE client which one to connect to (citation needed). For the purposes of a single server, this option is not necessary as it should be autodetected by the PPPoE client, so the default name of '' | ||
| + | |||
| + | ==== Service Name ==== | ||
| + | --picture of sn input | ||
| + | |||
| + | Explanation needed | ||
| + | |||
| + | |||
| + | ==== Maximum Sessions Per Peer ==== | ||
| + | -- picture of mspp input | ||
| + | |||
| + | Maximum Sessions Per Peer specifies how many connections a single PPPoE user can have active at any one time. The default is '''', | ||
| + | |||
| + | ==== IP of Listening Side ==== | ||
| + | -- picture of iols | ||
| + | |||
| + | PPP stands for Peer to Peer (P2P) Protocol, which means two peers are talking directly to each other. This IP address is the address the server will use in this P2P connection. This will be used as the default gateway of the IP connection running atop the PPP session (citation needed). You should configure this to be a different subnet to your LAN on which your DHCP server is running, which is further explained in the First Remote IP section. | ||
| + | |||
| + | ==== First Remote IP ==== | ||
| + | -- picture of fri | ||
| + | |||
| + | This is the first IP address that will be handed out to PPPoE clients when they connect. When establishing a PPP connection, the PPP daemon handles issuing of IP addresses to clients, and the DHCP server is not used. It is also important to note that PPP does not interact with the DHCP server to verify if it has already assigned an IP address to a client, and for this reason it is recommended to place PPPoE clients on a different subnet to the one DHCP is running, to prevent both PPP and DHCP issuing the same address to two different clients resulting in an IP conflict. | ||