#! /bin/sh
#
# network	Establish the network connection.
#
# Version:	@(#)network  1.2  14-Nov-1996 miquels@cistron.nl
#

# Configure the loopback device.
ifconfig lo 127.0.0.1
route add -net 127.0.0.0 dev lo

# Configure the ethernet device or start SLIP/PPP below.
IPADDR="192.168.1.1"		# Your IP address.
NETMASK="255.255.255.0"		# Your netmask.
NETWORK="192.168.1.0"		# Your network address.
BROADCAST="192.168.1.255"	# Your broadcast address (blank if none).
GATEWAY=""			# Your gateway address.

/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
/sbin/route add -net ${NETWORK}
[ ! -z "$GATEWAY" ] && /sbin/route add default gw ${GATEWAY} 

