7 ssh_lxc cat /var/lib/lxc/$host/config | grep ipv4 | tee $host/ipv4
8 public_ip=`grep 193.198 $host/ipv4 | cut -d= -f2 | cut -d/ -f1 | sed 's/ *//'`
9 local_ip=` grep 10.60 $host/ipv4 | cut -d= -f2 | cut -d/ -f1 | sed 's/ *//'`
11 tee /tmp/network-interfaces-$host << __INTERFACES__
14 iface lo inet loopback
16 iface eth0 inet static
21 iface eth1 inet static
26 # this will backup file on original machine which is still running!
27 ping -c 1 $host && ssh_master chroot /tmp/$host bak add,commit /etc/network/interfaces
29 scp /tmp/network-interfaces-$host root@$master:/tmp/
31 ssh_master mv -v /tmp/network-interfaces-$host /tmp/$host/etc/network/interfaces