Need a script to add in IP's for Red Hat Linux
I'm looking for code that I can put in a shell script that will allow me to input IP addresses and network info (Such as subnet mask...etc) to the ifcfg-eth0 script(s) located in /etc/sysconfig/network-scripts.
Basically something that will ask you what IP address you want to enter... you enter the IP address and the ifcfg-eth0 file gets modified.
Anybody know how to code this correctly?
|