What should I do if I accidentally deleted the WAN port in OpenWrt?

If you accidentally delete the WAN interface of OpenWrt, you can try the following steps to restore it:

  1. Connect to the LAN port of the router or connect to the router’s console through a serial port.
  2. Access the Web interface of OpenWrt or log into the router using SSH.
  3. Locate and edit the interfaces configuration file in the network settings. You can open this file using the command vi /etc/config/network.
  4. In the configuration file, locate the section for the WAN interface, typically starting with “config interface ‘wan'”.
  5. Ensure that the configuration of the WAN interface matches the requirements of your internet service provider. You may need to provide information such as the PPPoE or static IP address provided by the ISP.
  6. Save and exit the configuration file.
  7. You can restart the network service on the router by using the command /etc/init.d/network restart.
  8. Ensure that the WAN port is connected properly and has obtained the correct IP address.

If the above steps do not resolve the issue, you may need to reinstall the OpenWrt firmware or seek further technical support. Please note to backup your router configuration before making any changes to prevent data loss.

bannerAds