Change dhcp to on via linux command

Hi. I have deployed a mining rig to my customer and i forgot to change the ip to dhcp. The rig now using my ip address at the location. It can not connect to the internet because my gateway is not default ip address of modem (192.168.1.1).
Can i change the dhcp to on via command? Since he doesnt understand config file on the ssd. Thanks