<div dir="auto">Yes. It can easily be edited remote by script.<div dir="auto"><br></div><div dir="auto">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.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mar 18, 2017 8:23 PM, &quot;Raj Wurttemberg&quot; &lt;<a href="mailto:rajaw@c64.us">rajaw@c64.us</a>&gt; wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_5221432268505584419WordSection1"><p class="MsoNormal">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.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">(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….<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal">/Raj<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>______________________________<wbr>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo</a><br>
<br></blockquote></div><br></div>