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 (remember to change ‘username-given-by-isp’ & ‘password-given-by-isp’ fields. Also If your ISP needs specific mac address to connect, change ‘<mac-address-provided-by-your-isp-or-any-mac-address>’ the field also):
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. Execute the following command:
/etc/init.d/network restart
Done! Now you should connected with internet. For more info, please visit https://openwrt.org/docs/guide-user/base-system/basic-networking