Problems with routing in a Solaris 2.4 box

Problems with routing in a Solaris 2.4 box

Post by Per Weistee » Tue, 29 Aug 1995 04:00:00



I have a Sun box running Solaris 2.4 which acts as a router. Both interfaces
has a subnetted class B address

le0 is aaa.bbb.96.2 with mask 255.255.255.248 (net is aaa.bbb.96.0)
le1 is aaa.bbb.96.10 with the same mask       (net is aaa.bbb.96.8)

My static routing is

default      aaa.bbb.96.9       (works ok)
aaa.ccc.0.0  aaa.bbb.96.1       (works ok)
aaa.bbb.0.0  aaa.bbb.96.1       (fails, uses default route)
aaa.bbb.96.0 aaa.bbb.96.2       (works ok)
aaa.bbb.96.8 aaa.bbb.96.10      (works ok)

I can't seem to be able to route to the rest of aaa.bbb network thru
aaa.bbb.96.1, everything to this network (except for my direct nets) goes to
default route. Is this because Solaris ignores netmasks in /etc/netmasks for
this net ? I've tried /etc/netmasks like :

aaa.bbb.0.0     255.255.0.0
aaa.bbb.96.0    255.255.255.248
aaa.bbb.96.8    255.255.255.248

but all I get is wrong netmask for my two local nets.

Any help appreciated.

--
Per Weis*              !Office: Norsk Hydro a.s, VKD283a
UNISON a.s                !Phone:   (+47) 2273 8227
Holmenvn. 20, N-0310 Oslo !Carfone: (+47) 9420 7907
Tlf: (+47) 2214 3320      !Pager:   (+47) 9661 3205

 
 
 

Problems with routing in a Solaris 2.4 box

Post by Timothy J. Hu » Thu, 31 Aug 1995 04:00:00


Quote:>this net ? I've tried /etc/netmasks like :

>aaa.bbb.0.0 255.255.0.0
>aaa.bbb.96.0        255.255.255.248
>aaa.bbb.96.8        255.255.255.248

It has to be
aaa.bbb.0.0     255.255.255.248

Most unix hosts can only subnet a whole class [ABC] network.

You can't have one part subnetted one way and another part subnetted another,
until someone gets Classless Internet Domain Routing (CIDR) sorted out
for the Unix hosts

Timothy
--
Timothy Hunt, System Admin Support Engineer, Unipalm PIPEX
216 The Science Park, Cambridge, CB2 1HJ UK. +44(0)1223 250121/2 (Fax/Voice)
[Disclaimer: I said the above, not Unipalm PIPEX]
And my name is Timothy *not* Tim! *sigh*

 
 
 

1. Access Internet from Win95 box using Solaris 2.4 box as IP gateway

A Sun Sparc 5 running Solaris 2.4 is connected to my ISP via modem
using Solaris 2.4 PPP.  This Sun box is also connected to the
LAN via Ethernet.  I want to be able to access the Internet from
a Win95 PC on the LAN.  I'm almost certain that it can be done,
I just don't know how to set it up.

Thanks for any help.
Rico

2. Linux Commands

3. Artecon SBus Expansion Box problems with Solaris 2.4

4. Hard Disk Problem

5. Routing problems on Solaris 2.4

6. Defining Proxy Server in AIX.

7. IP Routing Problem with Solaris 2.4

8. Typical problem with ufsdump backup on solaris 7

9. Routing Problem with Solaris 2.4

10. using dump to remote solaris 2.4 box

11. Setting up a WWW server on a Solaris 2.4 x86 box.

12. Solaris 2.4 box as firewall?

13. how to set up a dial-in PPP access on a solaris 2.4 box?