Created
January 19, 2012 19:15
-
-
Save cpliakas/1641917 to your computer and use it in GitHub Desktop.
Adds a virtual network interface to Ubuntu's network config file
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 | |
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