Link to home
Start Free TrialLog in
Avatar of ddameo
ddameoFlag for United States of America

asked on

How to assign router metric using DHCP and two routers on Win2K Server?

I have a situation where I need to assign two routers (gateways) to certain DHCP clients on a Windows 2000 Server network. The problem I'm having is that I need to assign one of the routers a particular metric such that Windows always prefers it unless that router goes down, and I'm having difficulty figuring out how to do it. Details follow.

Environment is a Windows 2000 server-based network with primarily Windows XP- and 2000-based clients.
The network is a single subnet of 192.168.10.0 / 255.255.255.0.
All clients are configured to receive IP address info from the primary domain controller in the domain.
Router A is assigned 192.168.10.1 and is connected to a single T-1 line.
Router B is assigned 192.168.10.5 and is connected to a separate T-1 line from a different provider.
People in Group A (90% of users) will be using router A as their ONLY default gateway.
People in Group B (10% of users) will be using router B as their PRIMARY gateway, with router B as their SECONDARY gateway.

Computers in Group B have a DHCP User Class ID assigned to their network adapter that uses the string "GatewayB" which is set using the ipconfig /setclassid command.
Computers in Group B have no User Class ID assigned.

In DHCP server, the scope's options include an entry for the GatewayB user class that provides two gateways (192.168.10.5, 192.168.10.1).

All this works fine. When users in Group B connect to the network, DHCP assigns them two default gateways in the correct order. The problem is that both gateways have the same metric, which is not what we want. We want router B to have a lower (higher priority) metric so that Group B clients always use Router B unless it's down. If we were hard-coding IP addresses, I'd just manually assign the metrics and be done with it. But in a network of this size (50+ clients), we're not doing that.

I just recently learned of the "Default Router Metric Base" DHCP scope option for Microsoft clients, but this appears to apply the specified metric to ALL gateways, which puts me right back where I started.

Can anyone come up with a way to accomplish this without resorting to a script?

Thanks.
Avatar of SysExpert
SysExpert
Flag of Israel image

Not sure that you can without a script.
Normally this would be in a route command.

see

route /?

I hope this helps !
Avatar of ddameo

ASKER

Right. I was hoping to avoid using a script. I will be at that client tomorrow and will try a few things. I have an idea that might work, but I was hoping someone already knew how to do this.

Thanks.
In a normal failover situation the ROUTERS are the ones that handle it, not the PC's.

I would definitely look into that solution first since that is how a good router is designed.

 
I hope this helps !
Avatar of ddameo

ASKER

SysExpert,

You're right, but unfortunately that's not an option here. We have two T-1s from two vendors with two Cisco 2200 series routers. There's no budget money to install yet another router in front of these two routers, so that's why I was looking to do what I discussed above. Due to non-technical issues I won't get into here, the second vendor's T-1 line may only be available to us for a short (2-3 month) period of time, but we want to provide certain people with access to that service while it's there.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of SysExpert
SysExpert
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ddameo

ASKER

SysExpert,

I'm not sure how to close out this question. You basically confirmed that I have to use a script (which I knew I could do, but was hoping for a non-scripting alternaive), so you didn't actually solve my problem. But you also didn't provide me with any wrong information, either. Not being completely knowledgeable on awarding points, I'm wondering how I should close this question. Any thoughts?

Thanks.