Subject: Identical Routes with multiple Gateways
To: None <netbsd-help@NetBSD.ORG>
From: Hasnain Karampurwala <hkaram@isi.com>
List: netbsd-help
Date: 06/16/1995 16:36:19
Hi,

Looking at the routing code in 4.4BSD it looks like it
is not possible to add routes that are identical in key
and mask but differ in gateway? On a SUN running SUNOS
this is possible to do. Also I believe the 4.3 code use
d to allow this.

In 4.4 you cant add:

route: dst=192.12.12.12 Mask=0xfffffff0 Gateway=128.92.12.12
route: dst=192.12.12.12 Mask=0xfffffff0 Gateway=138.92.12.12

for example. I believe the code will return the EEXIST error
for the second route using the ioctl. 

Does that imply that I cant have 2 interfaces that are on the
same subnet (different IPs assigned?). Because 2 direct routes
will have to be installed. 

If this feature has been disabled in 4.4 was it due to some
specification (RFC, etc)? Unless I am reading the code wrong.
I was looking at route.[ch].

Please enlighten, Thanks!!


Hasnain.