reset eth0 from shell instead of from control panel

Help!!! Ive just set the eth0 from DHCP and now its not working from the webmin control panel network settings… I can get to the shell and connect to the centos server. Is there a way I can reset the eth0 back to DHCP to bring everything it back online?

I did change it to the current exising IP it uses but obviously I shouldnt have. Please can you help.

sorted it using this command - echo “iface eth0 inet dhcp” >>/etc/network/interfaces