Formula to install and configure pppoe server and client.
Note
See the full Salt Formulas installation and usage instructions.
Installs and configures pppoe server and/or client
Installs a cronjob to reconnect at the given time or at 05:00 as default. See pppoe/pillar.example.
- Create pillar: see ddns-client/pillar.example for more details.
- Run state.highstate
- Start pppoe server
ifconfig eth1 up && pppoe-server -I eth1
- Run client
pon connection1
- Pppoe interfaces must be up and unconfigured.
auto eth1 iface eth1 inet manual
- Server must be started manually or e.g. via /etc/rc.local
pppoe-server -I eth1
- Clients can be started manually or via /etc/network/interfaces (see https://wiki.debian.org/PPPoE).
auto eth0 iface eth0 inet manual auto dsl-provider iface dsl-provider inet ppp pre-up /sbin/ifconfig eth0 up provider dsl-provider
- More advanced network config using vlan:
auto eth2 iface eth2 inet manual pre-up /sbin/ifconfig eth2 up post-down /sbin/ifconfig eth2 down post-up /sbin/ifup vlan6 pre-down /sbin/ifdown vlan6 # vlan6 # VDSL VLAN 6 # iface vlan6 inet manual vlan-raw-device eth2 post-up /sbin/ifconfig vlan6 up pre-down /sbin/ifconfig vlan6 down post-up /sbin/ifup wan pre-down /sbin/ifdown wan # wan # PPPoe MyProvider # iface wan inet ppp provider myprovider
- To get the connection details try this:
tdbdump /var/run/pppd2.tdb