Configuring IP Address in OpenWrt

The network configuration file for OpenWrt is /etc/config/network, which manages settings for the switch chip VLANs, network interfaces, and routing.

To view current IP addresses: Enter the ifconfig command in the console.

Modifying IP address (192.168.1.1 → 192.168.10.1):

  1. Edit the network configuration file in /etc/config/
  2. Access the file via SSH using:

  1. Press i to enter edit mode. Modify the IP address, subnet mask, default gateway, etc.
  2. After editing:
  • Press Esc to exit edit mode
  • Type :wq then press Enter to save and exit
  1. Verify changes with: