I would have to disagree with that statement mupp3t. The problem is that the gatway is dependent on the interface, of which they may be more than one and you have no control over how many there are.
On my laptop, which has a gige and wifi andapter, as well as an additional gige when docked, and a vpn adapter, I have something like four interfaces. in the registry, to set the gateway, I would have to go to:
At this point, I am presented with a series of keys, each one's name is a GUID. There's one for each adapter. Inside each key are a series of values that includes DefualtGateway.
A GPO is not going to have the logic to select the right interface. Just saving the key off one, and trying to apply the resulting reg file will not work, because the keys use a GUID as the name and GUIDs are, well, globally uniquie by definition. Some custom program launched from the logon script could possibly figure it out and set the right value, but I've seen solutions like this cause more damage than they were designed to fix.
Your best bet would be DHCP. Set a long lease time, then go back with dhcputil and convert active leases to reservations to ensure that each workstation always gets the same IP. This has the same net effect and manually setting the IP addresses.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.