Skip to content

Instantly share code, notes, and snippets.

@cpliakas
Created January 19, 2012 19:15
Show Gist options
  • Save cpliakas/1641917 to your computer and use it in GitHub Desktop.
Save cpliakas/1641917 to your computer and use it in GitHub Desktop.
Adds a virtual network interface to Ubuntu's network config file
#!/bin/bash
cat <<EOF >> /etc/network/interfaces
# Virtual network interface
auto eth1
iface eth1 inet static
name Host-only adapter
address 192.168.56.15
netmask 255.255.255.0
broadcast 192.168.56.255
network 192.168.56.0
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment