View Single Post
Old Aug 17th, 2007, 10:01 PM   #1
Thaidog
Newbie
 
Join Date: Sep 2004
Posts: 8
Rep Power: 0 Thaidog is on a distinguished road
Question 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?
Thaidog is offline   Reply With Quote