Created
August 20, 2014 18:08
-
-
Save etrikp/3a08999e8f89ca50efff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script is meant to be put in the post creation phase of bringing up an instances | |
# It properly configures the seocond nic so the outside world is reachable. | |
cat << EOF > /etc/network/interfaces.d/eth1.cfg | |
# The primary network interface | |
auto eth1 | |
iface eth1 inet dhcp | |
EOF | |
ifup eth1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment