Skip to content

Instantly share code, notes, and snippets.

@danikx
Last active September 14, 2015 06:17
Show Gist options
  • Save danikx/221cf527de7745510613 to your computer and use it in GitHub Desktop.
Save danikx/221cf527de7745510613 to your computer and use it in GitHub Desktop.
Edit /etc/config/network. Under “WAN” section, set the configuration with:
config 'interface' 'wan'
option 'ifname' 'eth0.2'
option 'proto' 'pppoe'
option 'username' 'your-own-username'
option 'password' 'your-own-password'
option 'defaultroute' '1'
option 'peerdns' '1'
Force a re-dial
ifdown wan
ifup wan;
http://wiki.openwrt.org/doc/uci/network#protocol.pppoe.ppp.over.ethernet
http://wiki.openwrt.org/doc/uci/network
http://wiki.openwrt.org/doc/networking/network.interfaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment