SUMMARY /etc/gateways

From: Daniel Beaudry (Daniel.Beaudry@Enter-Net.com)
Date: Tue Mar 24 1998 - 12:48:18 CST


Here is the original question:

> Hello Sunners
>
> In Solaris 2.4, we used to have a file called /etc/gateways. I recently updated my system to 2.5.1, and since then, when rebooting, I got some messages stating error at line (line_number) in /etc/gateways.
>
> What is tne new syntax of this file?
>
> Where can I find more info on that?
>
> Does Solaris support partial C class routing with this release?
>
> Thank's in advance, I will summaryse.

Thank's to every one who replied:

Ramindur Singh [ramindur@zuno.com] :

This is for defining the address of your router, right? In 2.5.1 this file is called defaultrouter and just contains the IP address of the router. The information I have on this file is that if it exists, it
will use this address to go outside the network, and no further routing configuration is carried out. If this file does not exist, it will look at the number of interfaces, if more than one, then routed is
started in server mode, otherwise routed is started in quiet mode.
To add more than one route, I have had to do this in /etc/rc3.d directory by creating a file called S40routes which contain commands like "route add net x.x.x.x y.y.y.y hop_count."
I am not sure what you mean by partial C Class routing, but if you are refering to sub-nets then the answer is yes.

Chris Liljenstolpe [cds@io.com]

Solaris has always supported non-byte alligned subnets, so long as all the
subnets held within the same byte-alligned subnet/network (i.e. in the same
class A, B, or C - depending on the address you were using) used the same
mask (then you could use /etc/netmasks). Solaris 2.6 does allow for true
VLSM, Solaris 2.5.1 still has the same limitations as earlier releases.

Aaron Lineberger [aaron@cs.odu.edu]

There is a file which is called /etc/defaultrouter which should contain
your default route...(Look in /etc/rc2.d/S69inet) Also the netmask can be
set in /etc/netmasks

Matthew Stier [Matthew.Stier@tddny.fujitsu.com]

The syntax for the /etc/gateways file is defined in the in.routed manpage.

and :
Tony C. Wu [tonywu@life.nthu.edu.tw]
Sergey Mokryshev [mokr@child.ru]
Benjamin Cline [benji@hnt.com]

Daniel Beaudry
V.P. Technologies
Communications MULTIMEDIA / Enter-Net Tel : (514) 652-7189
2100, boul. Rene-Gaultier Fax : (514) 652-6973
Varennes (Quebec), J3X 1P1 E-Mail: Daniel.Beaudry@Enter-net.com



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