![]() |
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? |
Why not use the "setup" command? It does what you are describing.
|
Quote:
|
| All times are GMT -5. The time now is 9:18 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC