route -netmask ?

route -netmask ?

Post by ilab » Fri, 21 Nov 1997 04:00:00



Does anyone know how I can specify a netmask when adding a route to a
remote network ?

I noticed there is no -netmask option in the 'route add' command in
SunOS 4 or 5. This does exist e.g. on IRIX.

Also, the netstat -rn doesn't show the netmask associated with a certain
route. How can I see it ?

Is it just the commands route and netstat that don't support this or is
there no explicit netmask stored in SunOS's routing table ?

Thanks.

Wim Livens,

please mail to : livensw  rc  bel  alcatel  be

 
 
 

route -netmask ?

Post by Barry Margoli » Fri, 21 Nov 1997 04:00:00




>Is it just the commands route and netstat that don't support this or is
>there no explicit netmask stored in SunOS's routing table ?

There's no netmask in Sun's routing table; it still implements classful
routing.

--

GTE Internetworking, Powered by BBN, Cambridge, MA
Support the anti-spam movement; see <http://www.cauce.org/>
Please don't send technical questions directly to me, post them to newsgroups.

 
 
 

route -netmask ?

Post by William LeFebv » Fri, 21 Nov 1997 04:00:00




>Does anyone know how I can specify a netmask when adding a route to a
>remote network ?

Upgrade to Solaris 2.6.

Quote:>Also, the netstat -rn doesn't show the netmask associated with a certain
>route. How can I see it ?

If the network is directly connected, the use "ifconfig" on the interface
named in the routing table to determine the effective netmask.  If the
network is not directly connected, then the netmask will be the default
for the network's class (A, B, or C).

Quote:>Is it just the commands route and netstat that don't support this or is
>there no explicit netmask stored in SunOS's routing table ?

SunOS 5.5.1 and earlier do not support classless routing.  Although
I believe there is room in the routing table for a netmask on every
route, the kernel provides no mechanism for explicitly setting it.

--
                                William LeFebvre
                                Group sys Consulting

                                +1 770 813 3224

 
 
 

route -netmask ?

Post by Dan McDona » Tue, 25 Nov 1997 04:00:00




Quote:

>There's no netmask in Sun's routing table; it still implements classful
>routing.

As of SunOS 5.6 (aka. Solaris 2.6) there is classless routing, and all of the
-netmask, "get", etc. commands that the original poster is looking for.

--
Daniel L. McDonald  -  Solaris Internet Engineering  ||  MY OPINIONS ARE NOT

Phone: (650) 786-6815            |"rising falling at force ten
WWW: http://www.kebe.com/~danmcd | we twist the world and ride the wind" - Rush

 
 
 

route -netmask ?

Post by Daniel Dun » Wed, 26 Nov 1997 04:00:00





> >Is it just the commands route and netstat that don't support this or is
> >there no explicit netmask stored in SunOS's routing table ?

> There's no netmask in Sun's routing table; it still implements classful
> routing.

The /etc/netmask file is used to set the netmasks.

look at the man page for more information.

Dan Dunn

 
 
 

route -netmask ?

Post by Steinar Ha » Wed, 26 Nov 1997 04:00:00


[Daniel Dunn]

|   > There's no netmask in Sun's routing table; it still implements classful
|   > routing.
|  
|   The /etc/netmask file is used to set the netmasks.

The point was that SunOS 4.1.x, and Solaris up to and including 2.5.1,
doesn't have a netmask per routing table entry. The fact that the
/etc/netmask file is used to set the netmasks isn't particularly
relevant.