Change gateway ONLY

T

Tom Jones

Hi there,
I want users to connect to a differnet internet connection depending on
their user group (i.e. pupils, teachers). We are using DHCP so need to
change the gateway to alter the connection. I've been looking at NETSH
INTERFACE IP SET ADDRESS and was hoping to put it in the logon script along
with IFMEMBER but it looks as though I can only change the gateway if I use
static addresses. Is this true and does anyone know how I might chage the
gateway setting if I'm otherwise using DHCP?
Thanks for your time
Tom
 
R

Ritchie

Tom Jones said:
I want users to connect to a differnet internet connection depending on
their user group (i.e. pupils, teachers). We are using DHCP so need to

Out of curiosity, why's that then?
 
T

Tom Jones

Pupils will go through a content filtered internet connection and we have an
'open' connection for staff.
Before you say remove the filtering for the staff on the proxy, the filtered
proxy is not on site but maintained by the local council so we can not alter
it's settings.
 
R

Ritchie

Tom Jones said:
Pupils will go through a content filtered internet connection and we have an
'open' connection for staff.
Before you say remove the filtering for the staff on the proxy, the filtered
proxy is not on site but maintained by the local council so we can not alter
it's settings.

Don't the council have a proxy server?

On Win2000 you can change the default gateway with the ROUTE command:-

route change 0.0.0.0 mask 0.0.0.0 <new gateway>

Whether you're able to do that via a logon script, I wouldn't like to
say.
 
T

Tom Jones

Ritchie said:
Don't the council have a proxy server?

Er.. Yeah, that's what I said in my post?
On Win2000 you can change the default gateway with the ROUTE command:-

route change 0.0.0.0 mask 0.0.0.0 <new gateway>
Cheers for the reply,
Couldn't get that to work for us though. We've sorted it now though
using:

netsh interface ip delete address "local area connection" gateway=all

netsh interface ip add address "local area connection" gateway=100.1.1.5
gwmetric=2
 
R

Ritchie

Tom Jones said:
Er.. Yeah, that's what I said in my post?

Shame you can't just change the browser settings to use the proxy.
Couldn't get that to work for us though. We've sorted it now though
using:

netsh interface ip delete address "local area connection" gateway=all

netsh interface ip add address "local area connection" gateway=100.1.1.5
gwmetric=2

Nice one. Just being curious again. How have you implemented the above,
with a logon script?
 
T

Tom Jones

Nice one. Just being curious again. How have you implemented the above,
with a logon script?

Sort of - we used the "run these programs at logon" option in a group
policy.
Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top