This article will review how to configure an interface as a dhcp client.
By default NET1 (Network Interface/wan/eth0) should accept dhcp, however in firmwares before 4.12.0, if the dhcp option was not explicitly selected, it could provide an inconsistent experience.
To configure an interface as a dhcp client, log into the web UI, then navigate to System, IP, choose the desired interface tab, in this screenshot Network Interface, select the DHCP radial in the Configuration Method section at the top of the settings, then press enter to save your changes, or scroll to the bottom of the page and click Apply.
To set an interface to be a dhcp client via cli, you will use the below command and replace 'interface value' with the appropriate interface. Valid interface values are: wan, lan, oobfo, and wlan.
config -s config.interfaces.'interface value'.mode=dhcp -a
e.g. to set NET1 to be a dhcp client: config -s config.interfaces.wan.mode=dhcp -a
e.g. to set NET2 to be a dhcp client: config -s config.interfaces.lan.mode=dhcp -a