/srv/irclogs.ubuntu.com/2015/11/02/#cloud-init.txt

=== You're now known as ubuntulog2
nosleep77hi guys, i'm trying to find a way to create a 2nd eth file (for ex ifcfg-eth1) if the instance has 2 nics. is there a way to automate this?18:55
natorioushi nosleep77.   Is it "ln -s /etc/init.d/net.lo /etc/init.d/net.eth2" ?19:24
natoriousthats what it is on gentoo anyways19:24
nosleep77natorious: no its centos 6.619:28
natoriousthats gonna be in /etc/sysconfig/network-scripts then.  Is it for static or dhcp networking?19:31
natoriousif this is specific to a cloud env too, you could remove the hwaddr and attr lines from your /etc/sysconfig/network-scripts/ifcfg-ehtx and /etc/udev/rules.d/70-persistent-net.rules file after getting both interfaces working then take snaps in that cloud env to use19:35
natoriousoh, looks like you can pass the network config via cloud-config to set that up for you too19:41
natoriousthough the datasource would need to support it to call apply_network.  Looks like OpenNebula, NoCloud and ConfigDrive support it19:47

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!