SUMMARY: Routing problem : Virtual Interface

From: Shibu R Nair (shibu@mailexcite.com)
Date: Thu Mar 26 1998 - 11:53:14 CST


Hello!
I greatly appreciate the efforts of :
Seth Rothenberg <SROTHENB@montefiore.org>
Pierre Padovani <padovani@aaec.com>
bismark@alta.Jpl.Nasa.Gov (Bismark Espinoza)
Carlos Sevillano <SEVILLCA@tokiom.com>
Ramindur Singh <ramindur@zuno.com>
artur <artur@compugen.co.il>
Taco Hettema <tacoh@gv-nmc.unisource.nl>
"Brion Leary" <brion@dia.state.ma.us>

Problem:
O/s : solaris 2.5.1
I have two networks
90.1 on router 89.0.129.1
90.3 on router 89.0.129.2 respectively...These two networks have to acces the server[89.0.28.60]

I am adding routing table entry as
route add net 90.1.0.0 89.0.129.1 1
route add net 90.3.0.0 89.0.129.2 1

But based on the order in which i make the entry
 i.e in the above case ...when i ping from 89.0.28.60
 90.1.1.1 is alive but 90.3.1.1 is unreachable as it is going thru 89.0.129.1 instead
of 89.0.129.2 gateway

One more thing I have observed is that the `netstat -nr` looks like
90.0.0.0 89.0.129.1 UG 0 -
90.0.0.0 89.0.129.2 UG 0 -
but if i add without the net option
route add 90.1.0.0 89.0.129.1 1
route add 90.3.0.0 89.0.129.2 1

`netstat -nr` output looks like [check the destination]

90.1.0.0 89.0.129.1 UG 0 -
90.3.0.0 89.0.129.2 UG 0 -
but in this case i cannot ping to 90.1 or 90.3 network
as it goes thru the 89.0.28.60 gateway which is the primary interface...
i cannot change the netmasks to 255.255.0.0 as i don't know who all r goin to get
affected ...

---
Solution : 
Well everybody came out with the solution of changing the netmasks or changing the
default router...
Seth Rothenburg came with some real good solution..
but finally i resorted to this ....
I created a logical interface on hme0 as hme0:1 with
ip addr : 90.254.254.230 & netmask : 255.255.0.0
then i added the routes for 90.1 & 90.2 same as above.

this works .....!!! please create /etc/hostname.hme0:1 with the corresponding ip address..for making it permanent thanx

Shibu Nair e-mail :shibu@mailexcite.com

Resi Tel:732-726-1191 Office Tel :212-839-7227 ,212-839-6497 Address : 133, Fax :212-524-5051 ROANOKE STREET, WOODBRIDGE,NJ - 07095 http :www.novasof.com

Free web-based email, Forever, From anywhere! http://www.mailexcite.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:34 CDT