I
I
Ilya bow2017-01-13 12:45:33
linux
Ilya bow, 2017-01-13 12:45:33

I'm building openwrt. How to add a pppoe connection there (I would like to have a sample)?

I'm building openwrt with Buildroot.
In the office of me it is unwritten they say put the configs here. /files/etc/config/
And I don't know how this pppoe config itself looks like (the contents of the file) how to name the file itself.
Can someone post a sample?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin ™, 2017-01-13
@8889996

On the official documentation page, all the pppoe config options are described in detail - link .
Here is an approximate config from the router (note that my wan and lan ports of the router are specially programmatically swapped, so it's not worth just copy-pasting this config without understanding it):
[email protected]:~# cat /etc/config/network

config interface 'loopback'
  option ifname 'lo'
  option proto 'static'
  option ipaddr '127.0.0.1'
  option netmask '255.0.0.0'

config interface 'lan'
  option type 'bridge'
  option proto 'static'
  option ipaddr '192.168.1.1'
  option netmask '255.255.255.0'
  option _orig_ifname 'eth0 wlan0'
  option _orig_bridge 'true'
  option ifname 'eth1'

config interface 'wan'
  option _orig_ifname 'eth1'
  option _orig_bridge 'false'
  option proto 'pppoe'
  option username 'ЛОГИН_PPPOE'
  option password 'ПАРОЛЬ_PPPOE'
  option ifname 'eth0'

config switch
  option name 'eth0'
  option reset '1'
  option enable_vlan '1'

config switch_vlan
  option device 'eth0'
  option vlan '1'
  option ports '0 1 2 3 4'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question