#!/bin/sh

echo router > /etc/netconfig

iface=`ifconfig  -a | grep eth0`
if [ "$iface" != "" ]; then
    echo Configuring eth0
    ifconfig eth0 192.168.86.22
fi

iface=`ifconfig -a | grep eth1`
if [ "$iface" != "" ]; then
    echo Configuring eth1
    ifconfig eth1 192.168.87.22;
fi

echo Turning on routing
echo 1 > /proc/sys/net/ipv4/ip_forward;


