how to change the ipaddress and gateway using script?
RHEL AS 3/4
i have to connect my backup pc (RHEL AS 3) to the production server and test server very frequently(RHEL AS 4)
for that, each time i am manually opening /etc/sysconfig/network-scripts/ifcfg-eth0 and editing the below lines to and fro according to my need.
IPADDR=188.8.131.52 (this is production ip)
IPADDR=184.108.40.206 (this is test ip)
and the gateway...
can anybody give a solution to change it thru shell/bash script?