Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add 2 gateway routes

Status
Not open for further replies.

stovie

Technical User
Apr 7, 2003
32
US
I need some help adding routes in sco.
I am using SCO Openserver 5.0.4.
Basically I have 2 gateways here. The first is 10.15.1.1 and allows me access to the rest of the computers in the office and in other offices.
The other gateway is 10.15.10.2 and is the sonicwall that will allow access to the internet and VPN services.
I have tried to add an entry into the /usr/internet/etc/sco_ip/routes file, but this caused intermittent access to the computer (it would drop connections, sometimes it could ping out, sometimes not).
 
What is the ip address and netmask of your sco box ?
What are the network address of your other offices ?

Hope This Help
PH.
 
PHV

Could you give me an example as to how two gateways
may be configured? Can it be done with just one NIC?
Where do I put the gateway entries, and how do I define them as to keep them from clashing with one another?

The netmask is the same.
 
Can you post the result of this command ?
Code:
ifconfig -a; netstat -rn

Hope This Help
PH.
 
PHV

Here are the results of the ifconfig -a; netstat -rn


# ifconfig -a
lo0: flags=4049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
inet 127.0.0.1 netmask 7f000000
perf. params: recv size: 57344; send size: 57344; full-size frames: 1
atl0: flags=404a<BROADCAST,LOOPBACK,RUNNING,MULTICAST> mtu 8232
inet 0.0.0.0 netmask 7f000000
perf. params: recv size: 4096; send size: 8192; full-size frames: 1
net0: flags=4043<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 216.181.118.68 netmask ffffffe0 broadcast 216.181.118.95
perf. params: recv size: 24576; send size: 24576; full-size frames: 1
ether 00:08:c7:9f:ca:5f



# netstat -rn
Routing tables
Destination Gateway Flags Refs Use Interface
default 216.181.118.65 UGS 0 182 net0
127.0.0.1 127.0.0.1 UH 14 938008 lo0
216.181.118.64 216.181.118.68 UC 1 0 net0
216.181.118.68 127.0.0.1 UGHS 3 12 lo0
224 216.181.118.68 UCS 0 0 net0
 
Just to clarify, are the ip address for the server and other office computers similar (216.181.118.##) or a totally separate subnet? If the office computers are a separate network, is that network listed in /etc/networks or the individual ip addresses in /etc/hosts?

Also, what were the commands you were using in /usr/internet/etc/sco_ip/routes file?

BAndersn
 
you can put them in /etc/rc2.d

example
--------

vi S99route
route add default 216.181.118.65
route add 172.21.12.0 MASK 255.255.255.0 216.181.118.68

save file
changes permissions chmod 777 /etc/rc2.d/S99route
execute file /etc/rc2.d/S99route
and these two routes are oké.
This is an example

Greetz
Deugniet
 
you can put them in /etc/rc2.d

example
--------

vi S99route
route add default 216.181.118.65
route add 172.16.6.0 MASK 255.255.255.0 216.181.118.68

save file
changes permissions chmod 777 /etc/rc2.d/S99route
execute file /etc/rc2.d/S99route
and these two routes are ok.
I test this example and operate ok, to restart operating system the routes are load automatic.

Sorry for my english.

Regards
lucaspino
 
based on what stovie has posted so far, the route table should end up like

default 10.15.10.2 UGS
rest.of.office 10.15.1.1
10.15 216.181.118.65
216.181.118.64 216.181.118.68 UC 1 0 net0
216.181.118.68 127.0.0.1 UGHS 3 12 lo0
224 216.181.118.68 UCS 0 0 net0

route add default 10.15.10.2
route add rest.of.office 10.15.1.1
route add 10.15.0.0 216.181.118.65

Now i am assuming that:
216.181.118.65 knows how to get to the 10.15 subnet, and 10.1.5.10.2 is on that subnet.
that the office computers are on a class C subnet 10.15.1

Note: that the machine 216.181.118.68 has a netmask of 255.255.255.224 so my assumptions of the class B and class C subnets may be totally wrong.

To add these routes use deugniet's suggestion of /etc/rc2/S99route.
Also if you define these routes you should NOT let routed start on the sco box.

 
oops forgot to change the line
&quot;that the office computers are on a class C subnet 10.15.1&quot;

after I read that 10.15.10.2 and 10.15.1.1 are on the same subnet. the rest.of.office must be a different subnet than 10.15.0.0
 
Thanks for all your suggestions. They were helpful.
The way I solved my problem was quite simple.
In the /usr/internet/etc/sco_ip/routes file I added
the following lines

syntax: net default 10.15.10.2 (gatway to the internet)
syntax: host ip address 10.15.1.1 (internal network)

All the ip address for the internal network are on the
same netmask. For ip address on the same netmask you can just type 10.1.0.0 for everything on that subnet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top