[SUMMARY] Add a static route to subnetted net with in.routed

From: Mohamed LRHAZI (mlrhazi@gltrade.fr)
Date: Fri Dec 03 1999 - 08:03:58 CST


Hello,

thanx to : rrobino@wavedivision.com and jblanche@france.sun.com

Their answers were kind of short, here is my understanding, and feel free to correct me I will repost a correction if need be.

I was trying to add static routes with to a subnetted network via in.routed (Solaris 7) and /etc/networks+/etc/netmasks.

Well, in.routed didnt consider my /etc/netmasks and defaulted to classical class C netmasks.

The answer seems to be :

If the subnetted network is not directly conected one, on the local interfaces, then in.routed doent see it.

Two solutions :
manuall route add with correct netmask included with -netmask option.
use a RIP2 awere routing deamon.

Thanx all.
Mohamed.

my original post follows.

> Hello all,
>
> I have a problem adding a static route using /etc/gateways and /etc/netmasks under Solaris 7
> after rebooting, the netstat -rvn shows (pasted only relevant route):
>
> # netstat -rvn
>
> IRE Table:
> Destination Mask Gateway Device Mxfrg Rtt Ref Flg Out In/Fwd
> -------------------- --------------- -------------------- ------ ----- ----- --- --- ----- ------
>
> 195.6.223.0 255.255.255.0 195.110.249.251 1500* 0 0 UG 0 0
>
>
> the netmask should be 255.255.255.192, as my /etc/netmasks says :
> # cat /etc/netmasks
>
> 195.6.223.0 255.255.255.192
> 195.6.223.64 255.255.255.192
> 195.6.223.128 255.255.255.192
> 195.6.223.192 255.255.255.192
>
> the line for 195.6.233 in my /etc/gateways is :
>
> net 195.6.223.192 gateway 195.110.249.251 metric 1 passive
>
> Any idas? what am i missing here ?
>
> If I manually enter it, it works, route add with -netmask 255.255.255.192
>
> Thanx alot.
>
>



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