SUMMARY: Routing problem : Virtual Interface

From: Shibu R Nair (
Date: Thu Mar 26 1998 - 11:53:14 CST

I greatly appreciate the efforts of :
Seth Rothenberg <>
Pierre Padovani <>
bismark@alta.Jpl.Nasa.Gov (Bismark Espinoza)
Carlos Sevillano <>
Ramindur Singh <>
artur <>
Taco Hettema <>
"Brion Leary" <>

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

I am adding routing table entry as
route add net 1
route add net 1

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

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

`netstat -nr` output looks like [check the destination] UG 0 - UG 0 -
but in this case i cannot ping to 90.1 or 90.3 network
as it goes thru the gateway which is the primary interface...
i cannot change the netmasks to 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 : & netmask :
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

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

Free web-based email, Forever, From anywhere!

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