*BSD News Article 60289


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!newsfeed.internetmci.com!info.ucla.edu!library.ucla.edu!psgrain!news.itb.ac.id!www.ee.itb.ac.id!budianto
From: Budianto <budianto@www.ee.itb.ac.id>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: TCP/IP & Routing & netmasks. :-)
Date: Sun, 28 Jan 1996 05:41:08 +0700
Organization: Institut Teknologi Bandung
Lines: 65
Message-ID: <Pine.BSF.3.91.960128053040.14074A-100000@www.ee.itb.ac.id>
References: <4e83av$sn@turtle.apana.org.au>
NNTP-Posting-Host: www.ee.itb.ac.id
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
In-Reply-To: <4e83av$sn@turtle.apana.org.au> 



On 25 Jan 1996, Robert Nagy wrote:

>            hosts on this net            hosts on this net
>            |   |   |   |  |                  |  |  |  |
>            ----------------             -------------------
>              203.9.159.1                   203.9.159.128
>            ----------------             -------------------
>                   |                              |
>                   |                              |
>                   \                              /
>                    \                            /
>                     \                          /
>                      \                        /
>                       \                      /
>                        \                    /
>                         \                  /
>                          \                /
>                        ---------------------
>                             our new isp
>                               let's say
>                             the router is
>                              130.131.9.1
>                        ---------------------
> 
> Is the netmask on both .1 and .128 supposed to be  255.255.255.128 ?
> does this mean that I simply point the routes by
> 
> route add -net 203.9.159.127 130.131.9.1  on the .1 system and
> route add -net 203.9.159.0 130.131.9.1    on the .128 system?
> 
> -----------------------------------------------------------------------------
> URL: http://turtle.apana.org.au/~nagy/        Email: nagy@turtle.apana.org.au
>        1993 Harley Davidson Fat Boy, A Good Woman & A Bull Terrier
>                         That Makes My Life Complete

	First , you can't take the broadcast address (203.9.159.127) for 
       IP , so you must change it to another ip , ex 203.9.159.129

	On your router you have 3 NIC so you must give the 3 NIC with IP
	addres and configuring it.
	For NIC point to 203.9.159.1 you can give 203.9.159.2
	For NIC point to 203.9.159.129 you can give 203.9.159.130
	
	Maybe you can try my opinion :
	1. on 203.9.159.1 
	   ifconfig <interface_name> 203.9.159.1 netmask 255.255.255.128
	   route add default -net  203.9.159.1   
	2. on 203.9.159.129
	   ifconfig <interface_name> 203.9.159.129 netmask 255.255.255.128
	   route add default -net 203.9.159.129
	3. on router 130.131.9.1
	   ifconfig <interface_name> 203.9.159.2     netmask 255.255.255.128
	   ifconfig <interface_name> 203.9.159.130   netmask 255.255.255.128
   	   ifconfig <interface_name> 130.131.9.1     netmask 255.255.255.0
	   route add -net 203.9.159.0     203.9.159.2
	   route add -net 203.9.159.128   203.9.159.130
    	   route add default -net 130.131.9.1


	budianto@hme.ee.itb.ac.id
	Electrical Engginering ITB