I would like to have a bash script for Centos machine. I want the script to show me the current IP Address /subnet mask / Default GW. and give me option to enter a new IP Address /subnet Mask / Default GW. It should do it for ETH0.
Can someone have an idea how to do it?