adding permanent static routes in multihomed server....

  • Thread starter Thread starter Thomas Trinh
  • Start date Start date
T

Thomas Trinh

Hi,

I have a multi-homed Win2003 Server with 2 NICS connected to 2 disjointed
networks with 2 default gateways. This server sits in between 2 Firewalls.
NIC1 points to the inside card (192.168.4.1) of the Internet FW. NIC2 points
to the external NIC (192.168..1) of the DB FW. The problem I have right now
is that when I try to connect to a DB server behind the DB FW using ODBC, I
get a timeout error. When I disable NIC1, the ODBC works fine. My guess is
that the server doesn't know where to route the ODBC request to use NIC2 to
pass on the request. I've read about adding a static route entry to the
server using "route add 192.168.8.0 MASK 255.255.255.0 192.168.8.1", and it
does work. I also know that this entry will be cleared once the server is
rebooted. How do I permanently add that static route so the reboot has no
effect on it. Do I need to enable RRAS on the server? Any suggestions are
welcomed.

NIC1
==================================
IP Address. . . . . . . . . . . . : 192.168.4.76
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :192.168.4.1
DNS Servers . . . . . . . . . . . : 208.45.146.41
208.45.146.57

NIC2
==================================
IP Address. . . . . . . . . . . . : 192.168.8.76
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.8.1




===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 192.168.4.1
192.168.4.76 10
0.0.0.0 0.0.0.0 192.168.8.1
192.168.8.76 30
127.0.0.0 255.0.0.0 127.0.0.1
127.0.0.1 1
192.168.4.0 255.255.255.0 192.168.4.76 192.168.4.76
10
192.168.4.76 255.255.255.255 127.0.0.1 127.0.0.1
10
192.168.4.255 255.255.255.255 192.168.4.76 192.168.4.76
10
192.168.8.0 255.255.255.0 192.168.8.76 192.168.8.76
30
192.168.8.76 255.255.255.255 127.0.0.1 127.0.0.1
30
192.168.8.255 255.255.255.255 192.168.8.76 192.168.8.76
30
224.0.0.0 240.0.0.0 192.168.4.76
192.168.4.76 10
224.0.0.0 240.0.0.0 192.168.8.76
192.168.8.76 30
255.255.255.255 255.255.255.255 192.168.4.76 192.168.4.76 1
255.255.255.255 255.255.255.255 192.168.8.76 192.168.8.76 1
Default Gateway: 192.168.4.1
===========================================================================
Persistent Routes:
None


TIA,

Tom
 
You just add a -p parameter to the command to make it permanent. eg

route add -p 192.168.8.0 etc .
 
Correction:
Outisde card of DB FW is 192.168.8.1. Mistyped the IP in the previous
post.
 
Back
Top