J
James Egan
Hello,
Does anyone know if it's possible to modify the metrics on two default
gateways from a command line or something that can be executed
automatically without requiring a user to make advanced manual
alterations to the tcp/ip network settings?
Currently on startup (having set the metrics manually), the routing
table looks like this where the second default gateway is only used if
the first one is dead. This works okay.
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 192.168.7.1 192.168.7.50
1
0.0.0.0 0.0.0.0 192.168.7.2 192.168.7.50
20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1
1
192.168.7.0 255.255.255.0 192.168.7.50 192.168.7.50
25
192.168.7.50 255.255.255.255 127.0.0.1 127.0.0.1
25
192.168.7.255 255.255.255.255 192.168.7.50 192.168.7.50
25
224.0.0.0 240.0.0.0 192.168.7.50 192.168.7.50
25
255.255.255.255 255.255.255.255 192.168.7.50 192.168.7.50
1
Default Gateway: 192.168.7.1
===========================================================================
Persistent Routes:
None
I would like to occasionally switch the metrics around on these
gateways so that 192.168.7.2 is used first but I don't know how to do
it automatically.
Whatever I do with the route command, I always end up with a single
default gateway.
Perhaps there is something other than route.exe I can use?
Jim.
Does anyone know if it's possible to modify the metrics on two default
gateways from a command line or something that can be executed
automatically without requiring a user to make advanced manual
alterations to the tcp/ip network settings?
Currently on startup (having set the metrics manually), the routing
table looks like this where the second default gateway is only used if
the first one is dead. This works okay.
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 192.168.7.1 192.168.7.50
1
0.0.0.0 0.0.0.0 192.168.7.2 192.168.7.50
20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1
1
192.168.7.0 255.255.255.0 192.168.7.50 192.168.7.50
25
192.168.7.50 255.255.255.255 127.0.0.1 127.0.0.1
25
192.168.7.255 255.255.255.255 192.168.7.50 192.168.7.50
25
224.0.0.0 240.0.0.0 192.168.7.50 192.168.7.50
25
255.255.255.255 255.255.255.255 192.168.7.50 192.168.7.50
1
Default Gateway: 192.168.7.1
===========================================================================
Persistent Routes:
None
I would like to occasionally switch the metrics around on these
gateways so that 192.168.7.2 is used first but I don't know how to do
it automatically.
Whatever I do with the route command, I always end up with a single
default gateway.
Perhaps there is something other than route.exe I can use?
Jim.