#!/bin/bash DEFAULT=$(/usr/sbin/netstat -anr |awk '/^default/ {print $2;};'); REMOTE=$(/sbin/ifconfig |awk '/\.99\./ {print $4; };'); /sbin/route add X.X.X.X $DEFAULT /sbin/route add -net X.X $REMOTE