Solved

Routing/Subnetting Solaris 2.3

Posted on 1997-03-15
5
374 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 100 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Edited text of question
0
 
LVL 2

Expert Comment

by:pxh
Comment Utility
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
Comment Utility
How or where can I change the default gatweays IP addresse under Solaris 2.5?
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now