Skip to content

Commit

Permalink
[docs] Added OpenWRT PPPoE example
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Apr 18, 2017
1 parent 6326f8a commit d481781
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions docs/source/backends/openwrt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,47 @@ Will be rendered as follows::
option ifname 'eth0'
option proto 'dchpv6'

Using different protocols
~~~~~~~~~~~~~~~~~~~~~~~~~

OpenWRT and LEDE support many protocols (pppoe, pppoa, pptp, l2tp, ecc) and
the list of supported protocols evolves over time.

OpenWISP and netjsonconfig try to stay out of your way by leaving you maximum
flexibility to use any protocol and any configuration option you may need,
just set ``type`` to ``other``, then proceed by setting `proto` and any other
configuration option according to your needs, see the example below.

PPPoE proto example
^^^^^^^^^^^^^^^^^^^

The following configuration dictionary:

.. code-block:: python
{
"interfaces": [
{
"type": "other",
"name": "eth0",
"network": "wan",
"proto": "pppoe",
"username": "<username>",
"password": "<password>"
}
]
}
Will be rendered as follows::

package network

config interface 'wan'
option ifname 'eth0'
option password '<password>'
option proto 'ppoe'
option username '<username>'

Bridge settings
---------------

Expand Down

0 comments on commit d481781

Please sign in to comment.