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 | |
# 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] |