Re: Help
On Thu, Oct 01, 1998 at 09:51:37AM +0200, Wilson Tuma shared with us the following words of wisdom:
> Hi
>
> Which command do I need to to make my system recognized my
> 1. the ip address
> 2. Default Gateway
> 3. broadcast address
> and how do I go about doing that.
these are set in /etc/init.d/network which on my box looks like:
****************************************************************
#! /bin/sh
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
IPADDR=193.10.242.45
NETMASK=255.255.255.0
NETWORK=193.10.242.0
BROADCAST=193.10.242.255
GATEWAY=193.10.242.1
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK}
[ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1
***************************************************************
(sans the star lines)
HTH
--
------------------------------------------------------------------
+ Peter Granroth + Microsoft is NOT the answer +
+ mailto:devnull@granroth.ml.org + Microsoft is the question +
+ http://granroth.ml.org + The answer is NO +
------------------------------------------------------------------
Reply to:
- References:
- Help
- From: "Wilson Tuma" <wilson@fpvc.com>