>> I has a SUN Sparc computer with SOLARIS 2.5 installed. The computer need
>> two router address put on /etc/defaultrouter. One access to Internet ,
>> access to other division of our company.
>> 18.104.22.168 (firewall, router, DNS server go out to INTERNET)
>> 22.214.171.124 (router to other division 188.178.22.XXX)
>> 126.96.36.199 255.255.0.0
>> Currently, I have problem the network very inconsistency. For example 5
>> ago, I can FTP to sun but 5 minutes I can NOT and get error message
>> host". Same problem happen on access to 188.178.22.XXX computers. Can
>> tell me how to fix it? Thank you.
>You might try setting the netmask to:
> 188.8.131.52 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 (184.108.40.206) in /etc/defaultrouter.
You then need to add a static route to 188.178.22 via 220.127.116.11 - the command
/usr/sbin/route add net 188.178.22 18.104.22.168 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):
Destination Gateway Flags .... Interface
127.0.0.1 127.0.0.1 UH lo0
22.214.171.124 129.4.1.a U le0
126.96.36.199 129.4.1.b U le1
188.8.131.52 a.b.c.d U ???
default 184.108.40.206 UG le0
220.127.116.11 18.104.22.168 UG le1
The first address (127.0.0.1) is the loophost route (alway present).
The next 2 addresses (22.214.171.124 & 126.96.36.199) are the route to the local
networks (i.e. directly attached to this host).
The 188.8.131.52 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
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