Re: Misbehaving routing tables



Thanks for your feedback, Bill. I made the change and I am watching activity
carefully of the coming days. I'll report back my findings at the end of the
week.
--
DHK


"Bill Grant" wrote:



"DHK" <DHK@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8AF9959E-B2B9-49B9-AFDE-CCF8FAA4AED4@xxxxxxxxxxxxxxxx
My client has Windows Server 2003 R2 Standard Edition SP2. It has two
NICs
installed. 192.168.10.x is to an internal network. 192.168.20.x is only
attached to a firewall. The metrics are supposed to give priority to
192.168.20.x, but it isn't working out that way. I have written a bat file
for modifying the routing table, but it isn't working.

I have including a portion of the routing table below immediately
following
a restart of the server:
ctive Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 192.168.10.254 192.168.10.2 10
0.0.0.0 0.0.0.0 192.168.20.254 192.168.20.5 10
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.10.0 255.255.255.0 192.168.10.2 192.168.10.2 10
192.168.10.2 255.255.255.255 127.0.0.1 127.0.0.1 10
192.168.10.255 255.255.255.255 192.168.10.2 192.168.10.2 10
192.168.20.0 255.255.255.0 192.168.20.5 192.168.20.5 10
192.168.20.5 255.255.255.255 127.0.0.1 127.0.0.1 10
192.168.20.255 255.255.255.255 192.168.20.5 192.168.20.5 10
224.0.0.0 240.0.0.0 192.168.10.2 192.168.10.2 10
224.0.0.0 240.0.0.0 192.168.20.5 192.168.20.5 10
255.255.255.255 255.255.255.255 192.168.10.2 192.168.10.2 1
255.255.255.255 255.255.255.255 192.168.20.5 192.168.20.5 1
Default Gateway: 192.168.10.254

The .bat file I use to modify the routing table is as follows. It is run
every time the system restarts:
route change 0.0.0.0 Mask 0.0.0.0 192.168.20.254 Metric 10 IF 0x10004
route change 0.0.0.0 Mask 0.0.0.0 192.168.10.254 Metric 20 IF 0x10003

When I run the bat file manually, it does not change the routing table
metrics.

If the server is left alone, a user is able to access the server via the
external address. The router forwards all traffic to 192.168.20.x. A full
TCP
session is established and sustained. However, after a few days, the
routing
table changes as follows:
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 192.168.10.254 192.168.10.2 10
0.0.0.0 0.0.0.0 192.168.20.254 192.168.20.5 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.10.0 255.255.255.0 192.168.10.2 192.168.10.2 10
192.168.10.2 255.255.255.255 127.0.0.1 127.0.0.1 10
192.168.10.255 255.255.255.255 192.168.10.2 192.168.10.2 10
192.168.20.0 255.255.255.0 192.168.20.5 192.168.20.5 20
192.168.20.5 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.20.255 255.255.255.255 192.168.20.5 192.168.20.5 20
224.0.0.0 240.0.0.0 192.168.10.2 192.168.10.2 10
224.0.0.0 240.0.0.0 192.168.20.5 192.168.20.5 20
255.255.255.255 255.255.255.255 192.168.10.2 192.168.10.2 1
255.255.255.255 255.255.255.255 192.168.20.5 192.168.20.5 1
Default Gateway: 192.168.10.254

This issue was addressed more than a year ago and for reasons unknown to
me,
the problem has returned.

I did notice that the default gateway is the 192.168.10.x network, not the
192.168.20.x network. Is that part of the problem?

Can you advise me how I can fix this issue?

Thanks.
--
DHK

A machine should only have one default gateway set, and therefore only
one default route. The default gateway on the internal NIC should be blank.



.



Relevant Pages

  • Re: Two Routers VPN Community Wireless
    ... The routing table is standard with the primary gateway at 192.168.12.138. ... I think I have a understanding of how routes work from the PC but combine ... tables in the Router even come into play when the VPN tunnel is established? ... If it would help I can bring the actual routing table in tomorrow from home. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Question on single host with mutiple subnets/gateways
    ... >> netmask and network routes, traffic should not go to default gateway ... > Sorry for my unclear description, here's the current routing table. ... This looks correct "if these are separate networks", ...
    (comp.os.linux.networking)
  • whats hacking my routing table?
    ... Today I've discovered that something strange happens to the routing ... After booting, my routes are: ... as a default gateway. ... internet router which isn't entered anywhere in the network setup. ...
    (microsoft.public.security.virus)
  • Re: Freebsd bad routing
    ... > I have a Freebsd server and some bad routes are been showed to me. ... I didnt configured any routing protocols ... ... > I just need the default route (gateway). ... > "127 bad routing redirects ...
    (freebsd-questions)
  • Re: AIX 1.3 Failures and Fables
    ... DESTINATION GATEWAY FLGS REFCNT USE INTERFACE ... Is my interpretation of the AIX 1.3 #man route correct? ... Manually manipulates the routing tables. ... Is the destination host or network. ...
    (comp.sys.ibm.ps2.hardware)

Loading