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.
- Edit the
network
configuration file in/etc/config/
- Access the file via SSH using:
- Press
i
to enter edit mode. Modify the IP address, subnet mask, default gateway, etc. - After editing:
- Press
Esc
to exit edit mode - Type
:wq
then pressEnter
to save and exit
- Verify changes with: