<div dir="ltr">I think George had mentioned during the hacksprint, that he was interested in this, and Santi had done some experiments. Maybe discuss with them?</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Oct 26, 2013 at 8:10 AM, Tim Moody <span dir="ltr"><<a href="mailto:tim@timmoody.com" target="_blank">tim@timmoody.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="font-size:12pt;font-family:'Calibri'">
<div>we need to have get facts do this, so people don’t have to edit, as we
discussed on a previous call. is anyone working on this or should I?</div>
<div> </div>
<div style="font-size:12pt;font-family:'Calibri'">Tim</div>
<div style="font-style:normal;font-size:small;display:inline;text-decoration:none;font-family:'Calibri';font-weight:normal">
<div style="FONT:10pt tahoma">
<div> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="aschoolf@gmail.com" href="mailto:aschoolf@gmail.com" target="_blank">Anna</a> </div>
<div><b>Sent:</b> Friday, October 25, 2013 8:11 PM</div>
<div><b>To:</b> <a title="xsce-devel@googlegroups.com" href="mailto:xsce-devel@googlegroups.com" target="_blank">xsce-devel</a> ; <a title="server-devel@lists.laptop.org" href="mailto:server-devel@lists.laptop.org" target="_blank">Server Devel</a> </div>
<div><b>Subject:</b> [XSCE] ifcfg-eth# files in /etc/sysconfig/network-scripts
generated by runansible</div></div></div>
<div> </div></div><div><div class="h5">
<div style="font-style:normal;font-size:small;display:inline;text-decoration:none;font-family:'Calibri';font-weight:normal">
<div dir="ltr">
<div>This morning, I was trying out a 2 dongle install from <a href="https://github.com/XSCE/xsce.git" target="_blank">https://github.com/XSCE/xsce.git</a>.
The default in vars/default_vars.yml is eth0 as WAN and eth1 as LAN. Well,
I forgot to edit that for my interfaces (eth1 as WAN and eth2 as LAN). So
after ./runansible finished, I edited vars/default_vars.yml accordingly and
reran ./runansible.<br><br>After a reboot, I couldn't ssh back in. Walked
over to the XO 1.75 and ifconfig indicated that eth1 and eth2 were both on
172.18.96.1. On DXS, whenever I've forgotten to edit default_vars.yml for
my interfaces, I can edit that file, rerun ./runansible, and everything gets
sorted out.<br><br>What I discovered is that now runansible apparently generates
an ifcfg file for the LAN interface in /etc/sysconfig/network-scripts.
After attempt #1 with the default interfaces (eth0 for WAN and eth1 for LAN) and
attempt #2 with my edits (eth1 for WAN and eth2 for LAN), now I had ifcfg-eth1
and ifcfg-eth2 in
there:<br><br>DEVICE=eth1<br>BOOTPROTO=static<br>DHCPCLASS=<br>HWADDR=00:1C:49:01:04:27<br>IPADDR=172.18.96.1<br>NETMASK=255.255.224.0<br>ONBOOT=yes<br><br>DEVICE=eth2<br>BOOTPROTO=static<br>DHCPCLASS=<br>HWADDR=00:E0:4C:53:44:58<br>
IPADDR=172.18.96.1<br>NETMASK=255.255.224.0<br>ONBOOT=yes<br><br>Before
I figured out what was going on, I rebooted a couple of times and was perplexed
that both eth1 and eth2 kept coming up on 172.18.96.1.<br><br>So, I deleted
ifcfg-eth1, reran ./runansible, rebooted, and now networking is fine. WAN
is eth1 on 192.168.1.11 and LAN is eth2 on 172.18.96.1, like it's supposed to
be.<br><br></div>What we should probably do is discard any ifcfg-eth# files
first thing so there aren't any old ones lingering about to muck up
networking.<br>
<div><br>Anna<br><br></div></div></div></div></div></div></div></div>
</blockquote></div><br></div>