?
Solved

Routing/Subnetting Solaris 2.3

Posted on 1997-03-15
5
Medium Priority
?
421 Views
Last Modified: 2013-12-16
First, I don't have any upstream gateway. Lans Gateways, which are all connected to the Wan, have to take care themselves about routing table. A default routing entry or running  RIP protocol would cost a lot of money on a Wan, based on X.25 (about 150 Lans are interconnected).

route add net lan_ip_b wan_ip_b 1
     or
route add net lan_ip_a wan_ip_a 1

is exactly what I did on my lans gateways.

The problem is that Solaris ( 2.3 or 2.5 ) don't keep subnets in routing table
for routes from subnetted B nets to subnetted A nets (and vice versa).

Only routes from a subnetted B net to another one or from a subnetted A net to another one is ok (still via the wan of course).

The only solution I found is to create a logical interface (subnetted A address  for B gateways and subnetted B address  for A gateways).

I don't understand why Solaris avoids to route on sub-networks for which
you don't have an interface in the same class with the same netmask.

0
Comment
Question by:manu031597
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
pxh earned 200 total points
ID: 1811941
Let me refer to what you wrote first:

"How to do subnetwork routing for subnets that doesn't match any
of your physical network interfaces?"

The answer is that you need to have (and probably do have) an "upstream" gateway, which can be seen via one of the physical network interfaces. So you will enter a default entry in the
routing table of your LAN routers. All packages which can't be locally sent will then be sent to that upstream (default) gateway, which will decide where to sent them further.

The upstream gateway (and all other gateways) must run the router daemon (in.routed). They then exchange routing information via the RIP protocol and know about all other adjacent routers and which LANs they serve. A helpful tool is the ripquery program (public domain) which you can use to list the routing tables propagated by in.routed. Sometimes the RIP information is different from what "netstat -r" gives you.

It might furthermore be necessary to use
ifconfig <if> plumb <ip1> <ip2>
to reinforce that rip information is propagated for that interface.


Some more hints: the GA and GB which you describe should have two ip numbers each, one for the LAN the route to and one within the global WAN. Let us assume GA has wan_ip_a and lan_ip_a and GB has wan_ip_b and lan_ip_b. In that case GA and GB can directly see each other via the WAN. The command to add a routing entry from lan_a  to lan_b on GA would then be

route add network lan_b wan_ip_b 1

I.e. send all package for lan_b through then WAN to GB, which will forward them further. This can be done because GB has an IP number on the WAN which "visible" for GA.

I hope this helps,

      Peter (pxh@mpe-garching.mpg.de)

0
 

Author Comment

by:manu031597
ID: 1811942
First, I don't have any upstream gateway. Lans Gateways, which are all connected to the Wan, have to take care themselves about routing table. A default routing entry or running  RIP protocol would cost a lot of money on a Wan, based on X.25 (about 150 Lans are interconnected).

route add net lan_ip_b wan_ip_b 1
     or
route add net lan_ip_a wan_ip_a 1

is exactly what I did on my lans gateways.

The problem is that Solaris ( 2.3 or 2.5 ) don't keep subnets in routing table
for routes from subnetted B nets to subnetted A nets (and vice versa).

Only routes from a subnetted B net to another one or from a subnetted A net to another one is ok (still via the wan of course).

The only solution I found is to create a logical interface (subnetted A address  for B gateways and subnetted B address  for A gateways).

I don't understand why Solaris avoids to route on sub-networks for which
you don't have an interface in the same class with the same netmask.


0
 

Author Comment

by:manu031597
ID: 1811943
Edited text of question
0
 
LVL 2

Expert Comment

by:pxh
ID: 1811944
I don't understand why you say that "... Solaris ( 2.3 or 2.5 ) don't keep subnets in routing table ...". Here is an entry from one of my routers (netstat -rn):

xxx.xxx.75.0   xxx.xxx.74.16  UG  0  2969  

This machine is physically connected to two nets: xxx.xxx.74.0 and xxx.xxx.131.0, but it does know about the router to the xxx.xxx.75.0 subnet. I think this is a very similar situation as yours. Moreover the xxx.xxx.74.0 net has a different netmask than the other nets. I never had problems with this.

Could you please explain, what you mean with "class" ?

Peter

0
 

Expert Comment

by:GuyP
ID: 2259295
How or where can I change the default gatweays IP addresse under Solaris 2.5?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question