Short topic explaining openwrt configuration to get IP address via DHCP. Explained on example of NetSom development board but suitable for all another OpenWrt driven devices.
Initially, fresh built and flashed image won’t get IP address as it configured as DHCP server itself:
It is pretty simple to change configuration and get IP address via DHCP.
For that you need to edit /etc/config/network:
In a case of facing network issue during developing custom SW/HW steps to troubleshoot described here might be useful:
- Troubleshooting PHY IC issues. part 1.
- Troubleshooting PHY IC issues. part 2.
- Troubleshooting PHY IC issues. part 3.