[ale] Update ifcfg-eth0 file from command line? (need to re-ip 50 servers)

Jim Kinney jim.kinney at gmail.com
Sat Mar 18 20:31:34 EDT 2017


Yes. It can easily be edited remote by script.

I got lazy/smart a while back and setup dhcp with fixed IPs. So now to
re-ip, adjust the dhcp refresh time down to every 10, then 1, drop in new
config with ne ip list, reload dhcpd, run dns update, run refresh back to
normal on dhcp.

On Mar 18, 2017 8:23 PM, "Raj Wurttemberg" <rajaw at c64.us> wrote:

Is it possible to edit the ifcfg-eth0 file (RHEL6) from the command line?
On my Windows servers I can use the  netsh command to make the change (I
wrote a VMware PowerCLI script to update Windows already).  If I have to
use sed or whatever, that’s fine… I was just curious if there were an
easier way.



One of our hosted customers wants us to re-IP all of their servers and I
definitely don’t want to log into each server to make the change. :p



(Side note… I do have Salt running in the environment also.)  Ugh… that
reminds me…. Salt doesn’t like it when servers get re-IPd….



Thanks,

/Raj



_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20170318/6f76b274/attachment.html>


More information about the Ale mailing list