Configure internet connection (PPPoE) in OpenWrt router

Previously we saw how to setup OpenWrt on Xiaomi Router 3. In this tutorial we will configure internet connectivity (PPPoE) via SSH.

1. SSH into your router (IP: 192.168.1.1, username: root, password: admin or your selected admin password)

2. Now issue the below command:

vi /etc/config/network

Paste this:

config interface 'wan'
option ifname 'eth0.2'
option proto 'pppoe'
option username 'username-given-by-isp'
option password 'password-given-by-isp'
option ipv6 'auto'
option persist 'true'
option maxfail '0'
option holdoff '10'

config device 'wan_dev'
option name 'eth0.2'
option macaddr '<mac-address-provided-by-your-isp-or-any-mac-address' #Example: '6D:63:6C:98:69:58'

3. Save and exit. Now restart the network

#/etc/init.d/network restart

Done! You should connected with internet now. More info: https://openwrt.org/docs/guide-user/base-system/basic-networking

Leave a Reply

Your email address will not be published. Required fields are marked *