#!/bin/sh if [ `id -u` -ne 0 ] then echo You must start this as root exit 1 fi /sbin/ifconfig $1 10.100.0.1 netmask 255.255.255.252 # Enable packet forwarding echo 1 > /proc/sys/net/ipv4/ip_forward # Now we get funky - we do proxy arp for the virtual machine so it can be # seen transparently on all of the network echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp echo 1 > /proc/sys/net/ipv4/conf/$1/proxy_arp