[2419] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: Configuring my net.

daemon@ATHENA.MIT.EDU (Doug Ledford)
Tue Apr 9 01:16:35 1996

Date: 	Tue, 9 Apr 1996 00:09:58 -0500 (CDT)
From: Doug Ledford <dledford@dialnet.net>
To: Jeff Sinason <jsinason@itdcomm.com>
cc: linux-net@vger.rutgers.edu
In-Reply-To: <Pine.LNX.3.91.960408233604.201A-100000@itdcomm.com>

On Mon, 8 Apr 1996, Jeff Sinason wrote:

> 
> My ISP told me that they had subnetted 6 IP addresses for me.  My problem 
> is that I'm not sure what to use for the netmasks and what should be 
> ifconfig'd.  I also don't understand what should be route add'd.
> 
> My link to my ISP is 206.196.100.185
> 
> My subnet address are 206.196.114.17
>                       206.196.114.18
>                            .
>                            .
>                            .
>                        206.196.114.22
> 

From the sound of it, your ISP gave you 8 addresses, the bottom one being 
206.196.114.16 (your network address, shouldn't be used as a machine 
address, which is probably why they didn't mention it) and the top one 
being 206.196.114.23 (your broadcast address, once again, not to be used 
as a machine address).

Here is one way to configure interfaces and routes for this setup:

ifconfig eth0 206.196.114.[17-22] netmask 255.255.255.248 broadcast 
206.196.114.23

route add -net 206.65.196.16 netmask 255.255.255.248 broadcast 
206.196.114.23 eth0 (I'm not sure if you'll need the broadcast here, but it 
shouldn't hurt).

One machine should also have a link to your ISP.  Under linux, the 
address of the link interface can (and should in your case) be the same 
as the ethernet interface.  For instance, if your side of the ppp 
connection is given the address 206.196.114.17, then the machine running 
the ppp connection should have the ethernet interface configured to 
206.196.114.17.  On that machine, you would install a default route by 
adding the options defaultroute to the ppp options file, usually 
/etc/ppp/options.  On the other machines, you would want to add the 
following route:

route add -net default gw 206.196.114.<address of machine with ppp 
connection>

This should get you up and going :)

*****************************************************************************
* Doug Ledford                      *   Unix, Novell, Dos, Windows 3.x,     *
* dledford@dialnet.net    873-DIAL  *     WfW, Windows 95 & NT Technician   *
*   PPP access $14.95/month         *****************************************
*   Springfield, MO and surrounding * Usenet news, e-mail and shell account.*
*   communities.  Sign-up online at * Web page creation and hosting, other  *
*   873-9000 V.34                   * services available, call for info.    *
*****************************************************************************



home help back first fref pref prev next nref lref last post