Skip to content

Instantly share code, notes, and snippets.

Mark Petronic mpetronic

View GitHub Profile
@mpetronic
mpetronic / netsetup.sh
Created Sep 25, 2015
VM Network Setup
View netsetup.sh
#!/bin/bash
# Copy this script to a VMWare template or guest before you clone it
# and then you an more easily setup the networking on the clone. It
# configures the hostname, gateway, and IP address. Assumes the clone
# only has one network interface (eth0). It also fixes up the udev
# settings and dynamically reloads the network interface and the
# hostname into the kernel so no reboot is needed.
#
# Usage: ./netsetaup.sh <hostname> <ipaddr> <gateway> [netmask]
You can’t perform that action at this time.