Skip to content

Instantly share code, notes, and snippets.

@etrikp
Created August 20, 2014 18:08
Show Gist options
  • Save etrikp/3a08999e8f89ca50efff to your computer and use it in GitHub Desktop.
Save etrikp/3a08999e8f89ca50efff to your computer and use it in GitHub Desktop.
#!/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