HELP!! Wield routing problem ..

HELP!! Wield routing problem ..

Post by MC » Fri, 30 Aug 1996 04:00:00



I has a SUN Sparc computer with SOLARIS 2.5 installed.  The computer need has
two router address put on /etc/defaultrouter.  One access to Internet , another
access to other division of our company.  

E.G.
/etc/defaultrouter
        129.4.1.4   (firewall, router, DNS server go out to INTERNET)
        129.4.2.49  (router to other division 188.178.22.XXX)

/etc/netmask
        129.4.0.0       255.255.0.0

Currently, I have problem the network very inconsistency.  For example 5 minutes
ago, I can FTP to sun but 5 minutes I can NOT and get error message "unknown
host".  Same problem happen on access to 188.178.22.XXX computers.  Can anyone
tell me how to fix it?  Thank you.

 
 
 

HELP!! Wield routing problem ..

Post by Serge C-Pelletie » Sat, 31 Aug 1996 04:00:00



> I has a SUN Sparc computer with SOLARIS 2.5 installed.  The computer need has
> two router address put on /etc/defaultrouter.  One access to Internet , another
> access to other division of our company.

> E.G.
> /etc/defaultrouter
>         129.4.1.4   (firewall, router, DNS server go out to INTERNET)
>         129.4.2.49  (router to other division 188.178.22.XXX)

> /etc/netmask
>         129.4.0.0       255.255.0.0

> Currently, I have problem the network very inconsistency.  For example 5 minutes
> ago, I can FTP to sun but 5 minutes I can NOT and get error message "unknown
> host".  Same problem happen on access to 188.178.22.XXX computers.  Can anyone
> tell me how to fix it?  Thank you.

You might try setting the netmask to:
        129.4.0.0       255.255.255.0
I think you just fall in the class B category, so you need the third
number to be masked that way.

--
Serge C-Pelletier

Garnet Strong Lab
UNB, Fredericton, N.B.
Visit us at http://www.strong.unb.ca

 
 
 

HELP!! Wield routing problem ..

Post by Roland Gerla » Wed, 04 Sep 1996 04:00:00




>> I has a SUN Sparc computer with SOLARIS 2.5 installed.  The computer need
has
>> two router address put on /etc/defaultrouter.  One access to Internet ,
another
>> access to other division of our company.

>> E.G.
>> /etc/defaultrouter
>>         129.4.1.4   (firewall, router, DNS server go out to INTERNET)
>>         129.4.2.49  (router to other division 188.178.22.XXX)

>> /etc/netmask
>>         129.4.0.0       255.255.0.0

>> Currently, I have problem the network very inconsistency.  For example 5
minutes
>> ago, I can FTP to sun but 5 minutes I can NOT and get error message
"unknown
>> host".  Same problem happen on access to 188.178.22.XXX computers.  Can
anyone
>> tell me how to fix it?  Thank you.

>You might try setting the netmask to:
>    129.4.0.0       255.255.255.0
>I think you just fall in the class B category, so you need the third
>number to be masked that way.

129.4 is a class B address so you'll have to set the netmask to 255.255.255.0
on all your machines.

Only one address can go in the /etc/defaultrouter file.  You should put only
in your internet router's address (129.4.1.4) in /etc/defaultrouter.

You then need to add a static route to 188.178.22 via 129.4.2.49 - the command
is:

        /usr/sbin/route add net 188.178.22 129.4.2.49 1

Then when you do a "netstat -rn" you'll see something like (a.b.c.d is the
address of the host on which your running the command):

        Routing Table:

        Destination     Gateway         Flags .... Interface
        127.0.0.1       127.0.0.1       UH            lo0
        129.4.1.0       129.4.1.a       U             le0
        129.4.2.0       129.4.1.b       U             le1
        224.0.0.0       a.b.c.d         U             ???
        default         129.4.1.4       UG            le0
        188.178.22.0    129.4.2.49      UG            le1

The first address (127.0.0.1) is the loophost route (alway present).

The next 2 addresses (129.4.1.0 & 129.4.2.0) are the route to the local
networks (i.e. directly attached to this host).

The 224.0.0.0 address is the multicast address (someone help me here - I don't
have any machines with two interfaces so I don't know how the route is setup
for two interfaces - what it used for anyway?).

The next line starting with default is the default route as setup by the
/etc/defaultrouter file.

The last is the static route to your other division.

Note the Flags column.  U - indicates that the route is up, H - indicates that
the route is to a host (and not a net), and G indicates the route points to a
gateway (i.e. a router).  Both the default route and the route to your other
division must have the G as they are accessible only through the routers.

The big question is where to put the route add command so it is executed when
the machine boots.  As a guess, I'd put it in a file called
/etc/rc2.d/S70staticroutes (S70 so it runs after S69inet which sets up the
default route).

Cheers,
Roland.

 
 
 

1. Please help: Wield login problem.

Hi,

we have a wield login problem with Ultra 2 running Solaris 2.5.1. Root can
log in but normal users can't. The error message I got when I tried to
log in as a normal user is the following:

login: hello
Password:
No directory!

However, after logging as root, I found that the user home directories
mounted correctly. Moreover, I can't su the normal users, the error
message is

#su hello
su: No shell

BTW, we are using NIS,the Ultra 2 is a client. Other clients on the system
(including a Sparc 4 which is also runing Solaris 2.5.1 box) have no
problem at all.

Any idea?

Thanks a lot in advance!

Heling

2. Teminal setup

3. Help:modem acting wield:dedicated printing when I connect

4. Unix Systems Administrator wanted.

5. SUN E250 wield hang problem?

6. M$ and Al Qaeda

7. Major start-up problems after wielding MS-DOS fdisk

8. CDROM_SEND_PACKET and ide-cd

9. wield CDROM problem with 4.3 CD???

10. wield communication problem

11. Routing from me to myself. Help.route problem

12. major routing problem, trying to route 192.x.x.x and 10.x.x.x HELP !!!

13. route problem: route forgot to specify route netmask.