Skip to content

saltstack-formulas/pppoe-formula

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pppoe

Formula to install and configure pppoe server and client.

Available states

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.

Example

  1. Create pillar: see ddns-client/pillar.example for more details.
  2. Run state.highstate
  3. Start pppoe server
ifconfig eth1 up && pppoe-server -I eth1
  1. Run client
pon connection1

Notes

  • 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
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

Releases

No releases published

Packages

No packages published

Languages

  • SaltStack 94.4%
  • HTML 5.6%