Forum Search:
Forum.Brain-Cluster.com: Brain Cluster Technical Forum
Ultimate forum for Technical Discussions

Home » Microsoft » Windows Server » Active Directory » AD-DNS-DHCP
AD-DNS-DHCP [message #159115] Fri, 24 July 2009 10:59 Go to next message
Ferg  is currently offline Ferg  United States
Messages: 15
Registered: July 2009
Junior Member
G'Day All,

Greetings and best wishes.
I have searched high and low for a solution here and am stumpped. I have not
found anything. I am trying to accomplist the following.

In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
I also have two different internet connections each with their own firewall,
LAN IP, and range of WAN IPs.
192.192.192.77 Internet Connection #1
192.192.192.87 Internet Connection #2

How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set <STAFF> to
ALWAYS use Internet Connection#2 as the default gateway,
<Associates> and <Partners> to ALWAYS use Internet Connection#1 as the
default gateway.

Many thanks

Mike
Re: AD-DNS-DHCP [message #159118 is a reply to message #159115] Fri, 24 July 2009 11:42 Go to previous messageGo to next message
Jorge Silva  is currently offline Jorge Silva
Messages: 398
Registered: July 2009
Senior Member
Hi
Point the clients to the correct gateway!!!

--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MVP Directory Services
"Ferg" <ferguson@eastsidemiami.com> wrote in message
news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
> G'Day All,
>
> Greetings and best wishes.
> I have searched high and low for a solution here and am stumpped. I have
> not found anything. I am trying to accomplist the following.
>
> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
> I also have two different internet connections each with their own
> firewall, LAN IP, and range of WAN IPs.
> 192.192.192.77 Internet Connection #1
> 192.192.192.87 Internet Connection #2
>
> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set <STAFF>
> to ALWAYS use Internet Connection#2 as the default gateway,
> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as the
> default gateway.
>
> Many thanks
>
> Mike
>
Re: AD-DNS-DHCP [message #159121 is a reply to message #159115] Fri, 24 July 2009 12:47 Go to previous messageGo to next message
meiweb(nospam)  is currently offline meiweb(nospam)  Germany
Messages: 1307
Registered: July 2009
Senior Member
Hello Ferg,

Use 2 scopes in the DHCP server with reservations pointing to the different
gateways.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> G'Day All,
>
> Greetings and best wishes.
> I have searched high and low for a solution here and am stumpped. I
> have not
> found anything. I am trying to accomplist the following.
> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
> I also have two different internet connections each with their own
> firewall,
> LAN IP, and range of WAN IPs.
> 192.192.192.77 Internet Connection #1
> 192.192.192.87 Internet Connection #2
> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
> <STAFF> to
> ALWAYS use Internet Connection#2 as the default gateway,
> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as the
> default gateway.
> Many thanks
>
> Mike
>
Re: AD-DNS-DHCP [message #159123 is a reply to message #159121] Fri, 24 July 2009 12:54 Go to previous messageGo to next message
Ferg  is currently offline Ferg  United States
Messages: 15
Registered: July 2009
Junior Member
Meinolf,

Thanks for the reply.
Does that mean that I will have to configure reservation for each client's
IP?
How about AD OU, nothing possible there?

Thanks again.





"Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
news:ff16fb662adbf8cbdaa65678b8c5@msnews.microsoft.com...
> Hello Ferg,
>
> Use 2 scopes in the DHCP server with reservations pointing to the
> different gateways.
>
> Best regards
>
> Meinolf Weber
> Disclaimer: This posting is provided "AS IS" with no warranties, and
> confers no rights.
> ** Please do NOT email, only reply to Newsgroups
> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>
>> G'Day All,
>>
>> Greetings and best wishes.
>> I have searched high and low for a solution here and am stumpped. I
>> have not
>> found anything. I am trying to accomplist the following.
>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>> I also have two different internet connections each with their own
>> firewall,
>> LAN IP, and range of WAN IPs.
>> 192.192.192.77 Internet Connection #1
>> 192.192.192.87 Internet Connection #2
>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>> <STAFF> to
>> ALWAYS use Internet Connection#2 as the default gateway,
>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as the
>> default gateway.
>> Many thanks
>>
>> Mike
>>
>
>
Re: AD-DNS-DHCP [message #159125 is a reply to message #159123] Fri, 24 July 2009 13:01 Go to previous messageGo to next message
meiweb(nospam)  is currently offline meiweb(nospam)  Germany
Messages: 1307
Registered: July 2009
Senior Member
Hello Ferg,

No, ip configuration is done via DHCP or with fixed ip addresses. Maybe you
should think about using a multi-port router, they can use multiple DSL connections
and you can configure them for separating services or load balancing.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> Meinolf,
>
> Thanks for the reply.
> Does that mean that I will have to configure reservation for each
> client's
> IP?
> How about AD OU, nothing possible there?
> Thanks again.
>
> "Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
> news:ff16fb662adbf8cbdaa65678b8c5@msnews.microsoft.com...
>
>> Hello Ferg,
>>
>> Use 2 scopes in the DHCP server with reservations pointing to the
>> different gateways.
>>
>> Best regards
>>
>> Meinolf Weber
>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>> confers no rights.
>> ** Please do NOT email, only reply to Newsgroups
>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>> G'Day All,
>>>
>>> Greetings and best wishes.
>>> I have searched high and low for a solution here and am stumpped. I
>>> have not
>>> found anything. I am trying to accomplist the following.
>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>> I also have two different internet connections each with their own
>>> firewall,
>>> LAN IP, and range of WAN IPs.
>>> 192.192.192.77 Internet Connection #1
>>> 192.192.192.87 Internet Connection #2
>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>> <STAFF> to
>>> ALWAYS use Internet Connection#2 as the default gateway,
>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>>> the
>>> default gateway.
>>> Many thanks
>>> Mike
>>>
Re: AD-DNS-DHCP [message #159126 is a reply to message #159115] Fri, 24 July 2009 13:04 Go to previous messageGo to next message
Jorge Silva  is currently offline Jorge Silva
Messages: 398
Registered: July 2009
Senior Member
Hi Ferg,
Please always respond here.

Answer:
Simple, example: for DHCP clients, remove the gatway configuration from your
DHCP scope, then you can setup a logon or startup script/batch file that
defines a static route to general gateway something like this:
#---------------------------------------------------
route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
#---------------------------------------------------
The "-p" switch means persistent, event after a reboot the route will be
there.

--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MVP Directory Services
"Ferg" <ferguson@eastsidemiami.com> wrote in message
news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
> G'Day All,
>
> Greetings and best wishes.
> I have searched high and low for a solution here and am stumpped. I have
> not found anything. I am trying to accomplist the following.
>
> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
> I also have two different internet connections each with their own
> firewall, LAN IP, and range of WAN IPs.
> 192.192.192.77 Internet Connection #1
> 192.192.192.87 Internet Connection #2
>
> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set <STAFF>
> to ALWAYS use Internet Connection#2 as the default gateway,
> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as the
> default gateway.
>
> Many thanks
>
> Mike
>
Re: AD-DNS-DHCP [message #159127 is a reply to message #159126] Fri, 24 July 2009 13:14 Go to previous messageGo to next message
Ferg  is currently offline Ferg  United States
Messages: 15
Registered: July 2009
Junior Member
Jorge,
Awesome reply. That's what I was basically looking for since yesterday.
I will give it a try.

'preciate it.

Thanks

"Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
news:656865F7-FB49-438F-956E-55F0647A4640@microsoft.com...
> Hi Ferg,
> Please always respond here.
>
> Answer:
> Simple, example: for DHCP clients, remove the gatway configuration from
> your DHCP scope, then you can setup a logon or startup script/batch file
> that defines a static route to general gateway something like this:
> #---------------------------------------------------
> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
> #---------------------------------------------------
> The "-p" switch means persistent, event after a reboot the route will be
> there.
>
> --
> I hope that the information above helps you.
> Have a Nice day.
>
> Jorge Silva
> MVP Directory Services
> "Ferg" <ferguson@eastsidemiami.com> wrote in message
> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>> G'Day All,
>>
>> Greetings and best wishes.
>> I have searched high and low for a solution here and am stumpped. I have
>> not found anything. I am trying to accomplist the following.
>>
>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>> I also have two different internet connections each with their own
>> firewall, LAN IP, and range of WAN IPs.
>> 192.192.192.77 Internet Connection #1
>> 192.192.192.87 Internet Connection #2
>>
>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set <STAFF>
>> to ALWAYS use Internet Connection#2 as the default gateway,
>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as the
>> default gateway.
>>
>> Many thanks
>>
>> Mike
>>
>
Re: AD-DNS-DHCP [message #159128 is a reply to message #159126] Fri, 24 July 2009 13:31 Go to previous messageGo to next message
meiweb(nospam)  is currently offline meiweb(nospam)  Germany
Messages: 1307
Registered: July 2009
Senior Member
Hello Jorge,

Never thought about using the route add function this way. Works like a charm.
:-)

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> Hi Ferg,
> Please always respond here.
> Answer:
> Simple, example: for DHCP clients, remove the gatway configuration
> from your
> DHCP scope, then you can setup a logon or startup script/batch file
> that
> defines a static route to general gateway something like this:
> #---------------------------------------------------
> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
> #---------------------------------------------------
> The "-p" switch means persistent, event after a reboot the route will
> be
> there.
> Jorge Silva
> MVP Directory Services
> "Ferg" <ferguson@eastsidemiami.com> wrote in message
> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>> G'Day All,
>>
>> Greetings and best wishes.
>> I have searched high and low for a solution here and am stumpped. I
>> have
>> not found anything. I am trying to accomplist the following.
>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>> I also have two different internet connections each with their own
>> firewall, LAN IP, and range of WAN IPs.
>> 192.192.192.77 Internet Connection #1
>> 192.192.192.87 Internet Connection #2
>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>> <STAFF>
>> to ALWAYS use Internet Connection#2 as the default gateway,
>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>> the
>> default gateway.
>> Many thanks
>>
>> Mike
>>
Re: AD-DNS-DHCP [message #159137 is a reply to message #159126] Fri, 24 July 2009 15:18 Go to previous messageGo to next message
Joe Dunn  is currently offline Joe Dunn
Messages: 36
Registered: July 2009
Member
If you wanted to the keep the management of the default gateway addresses in
DHCP look at setting up User Classes. Then use a logon script via GPO with
the ipconfig \setuserclass command. You can then have different default
gateway address Options in the same scope but applied to different computers
depending on OU.

Best Regards
Joe Dunn
MCSE, MCTS, CCNA



"Jorge Silva" wrote:

> Hi Ferg,
> Please always respond here.
>
> Answer:
> Simple, example: for DHCP clients, remove the gatway configuration from your
> DHCP scope, then you can setup a logon or startup script/batch file that
> defines a static route to general gateway something like this:
> #---------------------------------------------------
> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
> #---------------------------------------------------
> The "-p" switch means persistent, event after a reboot the route will be
> there.
>
> --
> I hope that the information above helps you.
> Have a Nice day.
>
> Jorge Silva
> MVP Directory Services
> "Ferg" <ferguson@eastsidemiami.com> wrote in message
> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
> > G'Day All,
> >
> > Greetings and best wishes.
> > I have searched high and low for a solution here and am stumpped. I have
> > not found anything. I am trying to accomplist the following.
> >
> > In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
> > I also have two different internet connections each with their own
> > firewall, LAN IP, and range of WAN IPs.
> > 192.192.192.77 Internet Connection #1
> > 192.192.192.87 Internet Connection #2
> >
> > How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set <STAFF>
> > to ALWAYS use Internet Connection#2 as the default gateway,
> > <Associates> and <Partners> to ALWAYS use Internet Connection#1 as the
> > default gateway.
> >
> > Many thanks
> >
> > Mike
> >
>
Re: AD-DNS-DHCP [message #159149 is a reply to message #159128] Fri, 24 July 2009 18:02 Go to previous messageGo to next message
Jorge Silva  is currently offline Jorge Silva
Messages: 398
Registered: July 2009
Senior Member
Yep.
:D

--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MVP Directory Services
"Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
news:ff16fb662addb8cbdaac740fe3d5@msnews.microsoft.com...
> Hello Jorge,
>
> Never thought about using the route add function this way. Works like a
> charm. :-)
>
> Best regards
>
> Meinolf Weber
> Disclaimer: This posting is provided "AS IS" with no warranties, and
> confers no rights.
> ** Please do NOT email, only reply to Newsgroups
> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>
>> Hi Ferg,
>> Please always respond here.
>> Answer:
>> Simple, example: for DHCP clients, remove the gatway configuration
>> from your
>> DHCP scope, then you can setup a logon or startup script/batch file
>> that
>> defines a static route to general gateway something like this:
>> #---------------------------------------------------
>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>> #---------------------------------------------------
>> The "-p" switch means persistent, event after a reboot the route will
>> be
>> there.
>> Jorge Silva
>> MVP Directory Services
>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>> G'Day All,
>>>
>>> Greetings and best wishes.
>>> I have searched high and low for a solution here and am stumpped. I
>>> have
>>> not found anything. I am trying to accomplist the following.
>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>> I also have two different internet connections each with their own
>>> firewall, LAN IP, and range of WAN IPs.
>>> 192.192.192.77 Internet Connection #1
>>> 192.192.192.87 Internet Connection #2
>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>> <STAFF>
>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>>> the
>>> default gateway.
>>> Many thanks
>>>
>>> Mike
>>>
>
>
Re: AD-DNS-DHCP [message #159150 is a reply to message #159127] Fri, 24 July 2009 18:09 Go to previous messageGo to next message
Jorge Silva  is currently offline Jorge Silva
Messages: 398
Registered: July 2009
Senior Member
Great!!!

If your routers do support loadbalance mechanism as stated by Meinolf and
your objective is to load balance across those IPs, I also do recommend to
use the routers, is simpler and faster...

If not, than route -p add should do the job.
Note that you also play with metrics (METRIC specifies the metric, ie. cost
for the destination. Lower cost, higher priority) using the route add cmd:
sample:
#---------------------------------------------------
route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77 metric 1
route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.87 metric 100
#---------------------------------------------------

and for the other machines
#---------------------------------------------------
route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.87 metric 1
route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77 metric 100
#---------------------------------------------------
--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MVP Directory Services
"Ferg" <ferguson@eastsidemiami.com> wrote in message
news:O8mDBJIDKHA.1492@TK2MSFTNGP03.phx.gbl...
> Jorge,
> Awesome reply. That's what I was basically looking for since yesterday.
> I will give it a try.
>
> 'preciate it.
>
> Thanks
>
> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
> news:656865F7-FB49-438F-956E-55F0647A4640@microsoft.com...
>> Hi Ferg,
>> Please always respond here.
>>
>> Answer:
>> Simple, example: for DHCP clients, remove the gatway configuration from
>> your DHCP scope, then you can setup a logon or startup script/batch file
>> that defines a static route to general gateway something like this:
>> #---------------------------------------------------
>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>> #---------------------------------------------------
>> The "-p" switch means persistent, event after a reboot the route will be
>> there.
>>
>> --
>> I hope that the information above helps you.
>> Have a Nice day.
>>
>> Jorge Silva
>> MVP Directory Services
>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>> G'Day All,
>>>
>>> Greetings and best wishes.
>>> I have searched high and low for a solution here and am stumpped. I have
>>> not found anything. I am trying to accomplist the following.
>>>
>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>> I also have two different internet connections each with their own
>>> firewall, LAN IP, and range of WAN IPs.
>>> 192.192.192.77 Internet Connection #1
>>> 192.192.192.87 Internet Connection #2
>>>
>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set <STAFF>
>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as the
>>> default gateway.
>>>
>>> Many thanks
>>>
>>> Mike
>>>
>>
>
>
Re: AD-DNS-DHCP [message #159154 is a reply to message #159137] Fri, 24 July 2009 19:14 Go to previous messageGo to next message
aceman  is currently offline aceman  United States
Messages: 5816
Registered: July 2009
Senior Member
"Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>
> If you wanted to the keep the management of the default gateway addresses in
> DHCP look at setting up User Classes. Then use a logon script via GPO with
> the ipconfig \setuserclass command. You can then have different default
> gateway address Options in the same scope but applied to different computers
> depending on OU.
>

I would probably go with this option instead of the route print, but I must admit, I like the route print idea from Jorge.

But then again, if I were Ferg (the original poster), I would investigate a router that will handle multiple ISPs, as Meinolf suggested, in order to alleviate the need to make these non-default alterations to my operating systems.

Cheers!


--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and confers no rights.

Please reply back to the newsgroup or forum to benefit from collaboration among responding engineers, and to help others benefit from your resolution.

Ace Fekay, MCT, MCTS Exchange, MCSE, MCSA 2003 & 2000, MCSA Messaging
Microsoft Certified Trainer
aceman@mvps.RemoveThisPart.org
http://twitter.com/acefekay

For urgent issues, you may want to contact Microsoft PSS directly. Please check http://support.microsoft.com for regional support phone numbers.
Re: AD-DNS-DHCP [message #159174 is a reply to message #159137] Sat, 25 July 2009 17:53 Go to previous messageGo to next message
Jorge Silva  is currently offline Jorge Silva
Messages: 398
Registered: July 2009
Senior Member
Another thing, how many DHCP clients are we talking about?

--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MVP Directory Services
"Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>
> If you wanted to the keep the management of the default gateway addresses
> in
> DHCP look at setting up User Classes. Then use a logon script via GPO
> with
> the ipconfig \setuserclass command. You can then have different default
> gateway address Options in the same scope but applied to different
> computers
> depending on OU.
>
> Best Regards
> Joe Dunn
> MCSE, MCTS, CCNA
>
>
>
> "Jorge Silva" wrote:
>
>> Hi Ferg,
>> Please always respond here.
>>
>> Answer:
>> Simple, example: for DHCP clients, remove the gatway configuration from
>> your
>> DHCP scope, then you can setup a logon or startup script/batch file that
>> defines a static route to general gateway something like this:
>> #---------------------------------------------------
>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>> #---------------------------------------------------
>> The "-p" switch means persistent, event after a reboot the route will be
>> there.
>>
>> --
>> I hope that the information above helps you.
>> Have a Nice day.
>>
>> Jorge Silva
>> MVP Directory Services
>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>> > G'Day All,
>> >
>> > Greetings and best wishes.
>> > I have searched high and low for a solution here and am stumpped. I
>> > have
>> > not found anything. I am trying to accomplist the following.
>> >
>> > In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>> > I also have two different internet connections each with their own
>> > firewall, LAN IP, and range of WAN IPs.
>> > 192.192.192.77 Internet Connection #1
>> > 192.192.192.87 Internet Connection #2
>> >
>> > How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>> > <STAFF>
>> > to ALWAYS use Internet Connection#2 as the default gateway,
>> > <Associates> and <Partners> to ALWAYS use Internet Connection#1 as the
>> > default gateway.
>> >
>> > Many thanks
>> >
>> > Mike
>> >
>>
Re: AD-DNS-DHCP [message #159175 is a reply to message #159149] Sat, 25 July 2009 18:17 Go to previous messageGo to next message
anthony  is currently offline anthony
Messages: 288
Registered: July 2009
Senior Member
Laptops will fail when they move off the LAN if they have a persistent
default route.
Also, every DHCP client would need to be in the domain, otherwise no
gateway.
Anthony,
http://www.airdesk.com


"Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
news:03FE54EA-1D2E-4BEA-9F41-8DD85C88AF23@microsoft.com...
> Yep.
> :D
>
> --
> I hope that the information above helps you.
> Have a Nice day.
>
> Jorge Silva
> MVP Directory Services
> "Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
> news:ff16fb662addb8cbdaac740fe3d5@msnews.microsoft.com...
>> Hello Jorge,
>>
>> Never thought about using the route add function this way. Works like a
>> charm. :-)
>>
>> Best regards
>>
>> Meinolf Weber
>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>> confers no rights.
>> ** Please do NOT email, only reply to Newsgroups
>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>
>>> Hi Ferg,
>>> Please always respond here.
>>> Answer:
>>> Simple, example: for DHCP clients, remove the gatway configuration
>>> from your
>>> DHCP scope, then you can setup a logon or startup script/batch file
>>> that
>>> defines a static route to general gateway something like this:
>>> #---------------------------------------------------
>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>> #---------------------------------------------------
>>> The "-p" switch means persistent, event after a reboot the route will
>>> be
>>> there.
>>> Jorge Silva
>>> MVP Directory Services
>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>> G'Day All,
>>>>
>>>> Greetings and best wishes.
>>>> I have searched high and low for a solution here and am stumpped. I
>>>> have
>>>> not found anything. I am trying to accomplist the following.
>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>> I also have two different internet connections each with their own
>>>> firewall, LAN IP, and range of WAN IPs.
>>>> 192.192.192.77 Internet Connection #1
>>>> 192.192.192.87 Internet Connection #2
>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>>> <STAFF>
>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>>>> the
>>>> default gateway.
>>>> Many thanks
>>>>
>>>> Mike
>>>>
>>
>>
>
Re: AD-DNS-DHCP [message #159177 is a reply to message #159125] Sat, 25 July 2009 20:40 Go to previous messageGo to next message
Grant Taylor  is currently offline Grant Taylor  United States
Messages: 168
Registered: July 2009
Senior Member
On 7/24/2009 12:01 PM, Meinolf Weber [MVP-DS] wrote:
> Maybe you should think about using a multi-port router, they can use
> multiple DSL connections and you can configure them for separating
> services or load balancing.

Using a multi-port router probably would make things somewhat easier.
However, even if the router is configured to segregate based on service,
what happens if you want to the same service across two different
internet connections based on user? Further, what happens if users
switch systems?

Using GPO scripts to set the (non-persistent) route will allow things to
be correct no matter who is logged on to what system or what they are doing.



Grant. . . .
Re: AD-DNS-DHCP [message #159182 is a reply to message #159177] Sun, 26 July 2009 05:40 Go to previous messageGo to next message
anthony  is currently offline anthony
Messages: 288
Registered: July 2009
Senior Member
If users had the rights to set their gateway in a login script, then they
could simply change it to the fast one.
A start-up script would work though, as long as users are not admins.

Really I think that if you are looking at different classes of service,
possibly Voice also, and maybe wireless and Guest access, then VLAN's and
QoS are the way to go.


Anthony
http://www.airdesk.com



"Grant Taylor" <gtaylor@riverviewtech.net> wrote in message
news:h4g8m4$qjp$1@tncsrv01.tnetconsulting.net...
> On 7/24/2009 12:01 PM, Meinolf Weber [MVP-DS] wrote:
>> Maybe you should think about using a multi-port router, they can use
>> multiple DSL connections and you can configure them for separating
>> services or load balancing.
>
> Using a multi-port router probably would make things somewhat easier.
> However, even if the router is configured to segregate based on service,
> what happens if you want to the same service across two different internet
> connections based on user? Further, what happens if users switch systems?
>
> Using GPO scripts to set the (non-persistent) route will allow things to
> be correct no matter who is logged on to what system or what they are
> doing.
>
>
>
> Grant. . . .
Re: AD-DNS-DHCP [message #159184 is a reply to message #159175] Sun, 26 July 2009 07:19 Go to previous messageGo to next message
Jorge Silva  is currently offline Jorge Silva
Messages: 398
Registered: July 2009
Senior Member
> Laptops will fail when they move off the LAN if they have a persistent
> default route.

Easy, for laptops, make the routes non-persistent.

> Also, every DHCP client would need to be in the domain, otherwise no
> gateway.

The clients don't need to be in the domain to get DHCP address.
--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MVP Directory Services
"Anthony [MVP]" <anthony@no-reply.com> wrote in message
news:3AD4CBAD-6C26-4F06-9DAA-D5D8FBE4E5B4@microsoft.com...
> Laptops will fail when they move off the LAN if they have a persistent
> default route.
> Also, every DHCP client would need to be in the domain, otherwise no
> gateway.
> Anthony,
> http://www.airdesk.com
>
>
> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
> news:03FE54EA-1D2E-4BEA-9F41-8DD85C88AF23@microsoft.com...
>> Yep.
>> :D
>>
>> --
>> I hope that the information above helps you.
>> Have a Nice day.
>>
>> Jorge Silva
>> MVP Directory Services
>> "Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
>> news:ff16fb662addb8cbdaac740fe3d5@msnews.microsoft.com...
>>> Hello Jorge,
>>>
>>> Never thought about using the route add function this way. Works like a
>>> charm. :-)
>>>
>>> Best regards
>>>
>>> Meinolf Weber
>>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>>> confers no rights.
>>> ** Please do NOT email, only reply to Newsgroups
>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>>
>>>> Hi Ferg,
>>>> Please always respond here.
>>>> Answer:
>>>> Simple, example: for DHCP clients, remove the gatway configuration
>>>> from your
>>>> DHCP scope, then you can setup a logon or startup script/batch file
>>>> that
>>>> defines a static route to general gateway something like this:
>>>> #---------------------------------------------------
>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>> #---------------------------------------------------
>>>> The "-p" switch means persistent, event after a reboot the route will
>>>> be
>>>> there.
>>>> Jorge Silva
>>>> MVP Directory Services
>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>> G'Day All,
>>>>>
>>>>> Greetings and best wishes.
>>>>> I have searched high and low for a solution here and am stumpped. I
>>>>> have
>>>>> not found anything. I am trying to accomplist the following.
>>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>>> I also have two different internet connections each with their own
>>>>> firewall, LAN IP, and range of WAN IPs.
>>>>> 192.192.192.77 Internet Connection #1
>>>>> 192.192.192.87 Internet Connection #2
>>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>>>> <STAFF>
>>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>>>>> the
>>>>> default gateway.
>>>>> Many thanks
>>>>>
>>>>> Mike
>>>>>
>>>
>>>
>>
Re: AD-DNS-DHCP [message #159209 is a reply to message #159174] Mon, 27 July 2009 08:02 Go to previous messageGo to next message
Ferg  is currently offline Ferg  United States
Messages: 15
Registered: July 2009
Junior Member
About 75.

Anyway, all the replies have benefitted me quite a bit. I have many options,
but for now the logon script rout command is good enough.
I will work on getting my Cisco switches configured with VLANS and go that
route later on.

Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you "guys". I
appreciate your help.
Cheers and best wishes.


"Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
> Another thing, how many DHCP clients are we talking about?
>
> --
> I hope that the information above helps you.
> Have a Nice day.
>
> Jorge Silva
> MVP Directory Services
> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>
>> If you wanted to the keep the management of the default gateway addresses
>> in
>> DHCP look at setting up User Classes. Then use a logon script via GPO
>> with
>> the ipconfig \setuserclass command. You can then have different default
>> gateway address Options in the same scope but applied to different
>> computers
>> depending on OU.
>>
>> Best Regards
>> Joe Dunn
>> MCSE, MCTS, CCNA
>>
>>
>>
>> "Jorge Silva" wrote:
>>
>>> Hi Ferg,
>>> Please always respond here.
>>>
>>> Answer:
>>> Simple, example: for DHCP clients, remove the gatway configuration from
>>> your
>>> DHCP scope, then you can setup a logon or startup script/batch file
>>> that
>>> defines a static route to general gateway something like this:
>>> #---------------------------------------------------
>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>> #---------------------------------------------------
>>> The "-p" switch means persistent, event after a reboot the route will be
>>> there.
>>>
>>> --
>>> I hope that the information above helps you.
>>> Have a Nice day.
>>>
>>> Jorge Silva
>>> MVP Directory Services
>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>> > G'Day All,
>>> >
>>> > Greetings and best wishes.
>>> > I have searched high and low for a solution here and am stumpped. I
>>> > have
>>> > not found anything. I am trying to accomplist the following.
>>> >
>>> > In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>> > I also have two different internet connections each with their own
>>> > firewall, LAN IP, and range of WAN IPs.
>>> > 192.192.192.77 Internet Connection #1
>>> > 192.192.192.87 Internet Connection #2
>>> >
>>> > How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>> > <STAFF>
>>> > to ALWAYS use Internet Connection#2 as the default gateway,
>>> > <Associates> and <Partners> to ALWAYS use Internet Connection#1 as the
>>> > default gateway.
>>> >
>>> > Many thanks
>>> >
>>> > Mike
>>> >
>>>
>
Re: AD-DNS-DHCP [message #159211 is a reply to message #159209] Mon, 27 July 2009 08:22 Go to previous messageGo to next message
meiweb(nospam)  is currently offline meiweb(nospam)  Germany
Messages: 1307
Registered: July 2009
Senior Member
Hello Ferg,

You're welcome.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> About 75.
>
> Anyway, all the replies have benefitted me quite a bit. I have many
> options,
> but for now the logon script rout command is good enough.
> I will work on getting my Cisco switches configured with VLANS and go
> that
> route later on.
> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you
> "guys". I
> appreciate your help.
> Cheers and best wishes.
> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
> news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
>
>> Another thing, how many DHCP clients are we talking about?
>>
>> --
>> I hope that the information above helps you.
>> Have a Nice day.
>> Jorge Silva
>> MVP Directory Services
>> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
>> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>> If you wanted to the keep the management of the default gateway
>>> addresses
>>> in
>>> DHCP look at setting up User Classes. Then use a logon script via
>>> GPO
>>> with
>>> the ipconfig \setuserclass command. You can then have different
>>> default
>>> gateway address Options in the same scope but applied to different
>>> computers
>>> depending on OU.
>>> Best Regards
>>> Joe Dunn
>>> MCSE, MCTS, CCNA
>>> "Jorge Silva" wrote:
>>>
>>>> Hi Ferg,
>>>> Please always respond here.
>>>> Answer:
>>>> Simple, example: for DHCP clients, remove the gatway configuration
>>>> from
>>>> your
>>>> DHCP scope, then you can setup a logon or startup script/batch file
>>>> that
>>>> defines a static route to general gateway something like this:
>>>> #---------------------------------------------------
>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>> #---------------------------------------------------
>>>> The "-p" switch means persistent, event after a reboot the route
>>>> will be
>>>> there.
>>>> --
>>>> I hope that the information above helps you.
>>>> Have a Nice day.
>>>> Jorge Silva
>>>> MVP Directory Services
>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>> G'Day All,
>>>>>
>>>>> Greetings and best wishes.
>>>>> I have searched high and low for a solution here and am stumpped.
>>>>> I
>>>>> have
>>>>> not found anything. I am trying to accomplist the following.
>>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>>> I also have two different internet connections each with their own
>>>>> firewall, LAN IP, and range of WAN IPs.
>>>>> 192.192.192.77 Internet Connection #1
>>>>> 192.192.192.87 Internet Connection #2
>>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>>>> <STAFF>
>>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>>>>> the
>>>>> default gateway.
>>>>> Many thanks
>>>>>
>>>>> Mike
>>>>>
Re: AD-DNS-DHCP [message #159236 is a reply to message #159209] Mon, 27 July 2009 14:12 Go to previous messageGo to next message
Jorge Silva  is currently offline Jorge Silva
Messages: 398
Registered: July 2009
Senior Member
Great.
Let's know if you need additional help.
--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MVP Directory Services
"Ferg" <ferguson@eastsidemiami.com> wrote in message
news:u4znqIrDKHA.5040@TK2MSFTNGP04.phx.gbl...
> About 75.
>
> Anyway, all the replies have benefitted me quite a bit. I have many
> options, but for now the logon script rout command is good enough.
> I will work on getting my Cisco switches configured with VLANS and go that
> route later on.
>
> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you "guys". I
> appreciate your help.
> Cheers and best wishes.Gre
>
>
> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
> news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
>> Another thing, how many DHCP clients are we talking about?
>>
>> --
>> I hope that the information above helps you.
>> Have a Nice day.
>>
>> Jorge Silva
>> MVP Directory Services
>> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
>> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>>
>>> If you wanted to the keep the management of the default gateway
>>> addresses in
>>> DHCP look at setting up User Classes. Then use a logon script via GPO
>>> with
>>> the ipconfig \setuserclass command. You can then have different default
>>> gateway address Options in the same scope but applied to different
>>> computers
>>> depending on OU.
>>>
>>> Best Regards
>>> Joe Dunn
>>> MCSE, MCTS, CCNA
>>>
>>>
>>>
>>> "Jorge Silva" wrote:
>>>
>>>> Hi Ferg,
>>>> Please always respond here.
>>>>
>>>> Answer:
>>>> Simple, example: for DHCP clients, remove the gatway configuration from
>>>> your
>>>> DHCP scope, then you can setup a logon or startup script/batch file
>>>> that
>>>> defines a static route to general gateway something like this:
>>>> #---------------------------------------------------
>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>> #---------------------------------------------------
>>>> The "-p" switch means persistent, event after a reboot the route will
>>>> be
>>>> there.
>>>>
>>>> --
>>>> I hope that the information above helps you.
>>>> Have a Nice day.
>>>>
>>>> Jorge Silva
>>>> MVP Directory Services
>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>> > G'Day All,
>>>> >
>>>> > Greetings and best wishes.
>>>> > I have searched high and low for a solution here and am stumpped. I
>>>> > have
>>>> > not found anything. I am trying to accomplist the following.
>>>> >
>>>> > In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>> > I also have two different internet connections each with their own
>>>> > firewall, LAN IP, and range of WAN IPs.
>>>> > 192.192.192.77 Internet Connection #1
>>>> > 192.192.192.87 Internet Connection #2
>>>> >
>>>> > How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>>> > <STAFF>
>>>> > to ALWAYS use Internet Connection#2 as the default gateway,
>>>> > <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>>>> > the
>>>> > default gateway.
>>>> >
>>>> > Many thanks
>>>> >
>>>> > Mike
>>>> >
>>>>
>>
>
>
Re: AD-DNS-DHCP [message #159244 is a reply to message #159211] Mon, 27 July 2009 15:55 Go to previous messageGo to next message
Ferg  is currently offline Ferg  United States
Messages: 15
Registered: July 2009
Junior Member
G'Day All,

Here is a followup question, even though I could run a test to see the
outcome,:
If I do NOT remove the gateway configuration(192.168.131.21) from my DHCP
scope but add the following to my logon script, which one
will ultimately prevail, the DHCP gateway configuration or the route add
command in the logon script.

route command added to my logon script: route -f add 0.0.0.0 mask 0.0.0.0
192.168.131.22.

Thanks




"Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
news:ff16fb662b1368cbdcdcbe06960f@msnews.microsoft.com...
> Hello Ferg,
>
> You're welcome.
>
> Best regards
>
> Meinolf Weber
> Disclaimer: This posting is provided "AS IS" with no warranties, and
> confers no rights.
> ** Please do NOT email, only reply to Newsgroups
> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>
>> About 75.
>>
>> Anyway, all the replies have benefitted me quite a bit. I have many
>> options,
>> but for now the logon script rout command is good enough.
>> I will work on getting my Cisco switches configured with VLANS and go
>> that
>> route later on.
>> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you
>> "guys". I
>> appreciate your help.
>> Cheers and best wishes.
>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>> news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
>>
>>> Another thing, how many DHCP clients are we talking about?
>>>
>>> --
>>> I hope that the information above helps you.
>>> Have a Nice day.
>>> Jorge Silva
>>> MVP Directory Services
>>> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
>>> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>>> If you wanted to the keep the management of the default gateway
>>>> addresses
>>>> in
>>>> DHCP look at setting up User Classes. Then use a logon script via
>>>> GPO
>>>> with
>>>> the ipconfig \setuserclass command. You can then have different
>>>> default
>>>> gateway address Options in the same scope but applied to different
>>>> computers
>>>> depending on OU.
>>>> Best Regards
>>>> Joe Dunn
>>>> MCSE, MCTS, CCNA
>>>> "Jorge Silva" wrote:
>>>>
>>>>> Hi Ferg,
>>>>> Please always respond here.
>>>>> Answer:
>>>>> Simple, example: for DHCP clients, remove the gatway configuration
>>>>> from
>>>>> your
>>>>> DHCP scope, then you can setup a logon or startup script/batch file
>>>>> that
>>>>> defines a static route to general gateway something like this:
>>>>> #---------------------------------------------------
>>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>>> #---------------------------------------------------
>>>>> The "-p" switch means persistent, event after a reboot the route
>>>>> will be
>>>>> there.
>>>>> --
>>>>> I hope that the information above helps you.
>>>>> Have a Nice day.
>>>>> Jorge Silva
>>>>> MVP Directory Services
>>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>>> G'Day All,
>>>>>>
>>>>>> Greetings and best wishes.
>>>>>> I have searched high and low for a solution here and am stumpped.
>>>>>> I
>>>>>> have
>>>>>> not found anything. I am trying to accomplist the following.
>>>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>>>> I also have two different internet connections each with their own
>>>>>> firewall, LAN IP, and range of WAN IPs.
>>>>>> 192.192.192.77 Internet Connection #1
>>>>>> 192.192.192.87 Internet Connection #2
>>>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>>>>> <STAFF>
>>>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>>>>>> the
>>>>>> default gateway.
>>>>>> Many thanks
>>>>>>
>>>>>> Mike
>>>>>>
>
>
Re: AD-DNS-DHCP [message #159245 is a reply to message #159244] Mon, 27 July 2009 16:02 Go to previous messageGo to next message
Jorge Silva  is currently offline Jorge Silva
Messages: 398
Registered: July 2009
Senior Member
The flush cmd will clear all route config, in some scenarios you'll need to
reboot the system or the gateway won't work. What is the question?

The -f switch doesn't remove the TCPIP config, it only cleans the route
table.

--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MVP Directory Services
"Ferg" <ferguson@eastsidemiami.com> wrote in message
news:ulk75QvDKHA.4004@TK2MSFTNGP05.phx.gbl...
> G'Day All,
>
> Here is a followup question, even though I could run a test to see the
> outcome,:
> If I do NOT remove the gateway configuration(192.168.131.21) from my DHCP
> scope but add the following to my logon script, which one
> will ultimately prevail, the DHCP gateway configuration or the route add
> command in the logon script.
>
> route command added to my logon script: route -f add 0.0.0.0 mask 0.0.0.0
> 192.168.131.22.
>
> Thanks
>
>
>
>
> "Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
> news:ff16fb662b1368cbdcdcbe06960f@msnews.microsoft.com...
>> Hello Ferg,
>>
>> You're welcome.
>>
>> Best regards
>>
>> Meinolf Weber
>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>> confers no rights.
>> ** Please do NOT email, only reply to Newsgroups
>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>
>>> About 75.
>>>
>>> Anyway, all the replies have benefitted me quite a bit. I have many
>>> options,
>>> but for now the logon script rout command is good enough.
>>> I will work on getting my Cisco switches configured with VLANS and go
>>> that
>>> route later on.
>>> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you
>>> "guys". I
>>> appreciate your help.
>>> Cheers and best wishes.
>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>> news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
>>>
>>>> Another thing, how many DHCP clients are we talking about?
>>>>
>>>> --
>>>> I hope that the information above helps you.
>>>> Have a Nice day.
>>>> Jorge Silva
>>>> MVP Directory Services
>>>> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
>>>> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>>>> If you wanted to the keep the management of the default gateway
>>>>> addresses
>>>>> in
>>>>> DHCP look at setting up User Classes. Then use a logon script via
>>>>> GPO
>>>>> with
>>>>> the ipconfig \setuserclass command. You can then have different
>>>>> default
>>>>> gateway address Options in the same scope but applied to different
>>>>> computers
>>>>> depending on OU.
>>>>> Best Regards
>>>>> Joe Dunn
>>>>> MCSE, MCTS, CCNA
>>>>> "Jorge Silva" wrote:
>>>>>
>>>>>> Hi Ferg,
>>>>>> Please always respond here.
>>>>>> Answer:
>>>>>> Simple, example: for DHCP clients, remove the gatway configuration
>>>>>> from
>>>>>> your
>>>>>> DHCP scope, then you can setup a logon or startup script/batch file
>>>>>> that
>>>>>> defines a static route to general gateway something like this:
>>>>>> #---------------------------------------------------
>>>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>>>> #---------------------------------------------------
>>>>>> The "-p" switch means persistent, event after a reboot the route
>>>>>> will be
>>>>>> there.
>>>>>> --
>>>>>> I hope that the information above helps you.
>>>>>> Have a Nice day.
>>>>>> Jorge Silva
>>>>>> MVP Directory Services
>>>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>>>> G'Day All,
>>>>>>>
>>>>>>> Greetings and best wishes.
>>>>>>> I have searched high and low for a solution here and am stumpped.
>>>>>>> I
>>>>>>> have
>>>>>>> not found anything. I am trying to accomplist the following.
>>>>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>>>>> I also have two different internet connections each with their own
>>>>>>> firewall, LAN IP, and range of WAN IPs.
>>>>>>> 192.192.192.77 Internet Connection #1
>>>>>>> 192.192.192.87 Internet Connection #2
>>>>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>>>>>> <STAFF>
>>>>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>>>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>>>>>>> the
>>>>>>> default gateway.
>>>>>>> Many thanks
>>>>>>>
>>>>>>> Mike
>>>>>>>
>>
>>
>
>
Re: AD-DNS-DHCP [message #159246 is a reply to message #159245] Mon, 27 July 2009 16:26 Go to previous messageGo to next message
Ferg  is currently offline Ferg  United States
Messages: 15
Registered: July 2009
Junior Member
Thanks. This is the question:

If I do NOT remove the gateway configuration(192.168.131.21) from my DHCP
scope but add the following to my logon script, which one
will ultimately prevail, the DHCP gateway configuration or the route add
command in the logon script?





"Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
news:D8979CC2-E061-4918-8BE0-DB9458D97881@microsoft.com...
> The flush cmd will clear all route config, in some scenarios you'll need
> to reboot the system or the gateway won't work. What is the question?
>
> The -f switch doesn't remove the TCPIP config, it only cleans the route
> table.
>
> --
> I hope that the information above helps you.
> Have a Nice day.
>
> Jorge Silva
> MVP Directory Services
> "Ferg" <ferguson@eastsidemiami.com> wrote in message
> news:ulk75QvDKHA.4004@TK2MSFTNGP05.phx.gbl...
>> G'Day All,
>>
>> Here is a followup question, even though I could run a test to see the
>> outcome,:
>> If I do NOT remove the gateway configuration(192.168.131.21) from my DHCP
>> scope but add the following to my logon script, which one
>> will ultimately prevail, the DHCP gateway configuration or the route add
>> command in the logon script.
>>
>> route command added to my logon script: route -f add 0.0.0.0 mask
>> 0.0.0.0 192.168.131.22.
>>
>> Thanks
>>
>>
>>
>>
>> "Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
>> news:ff16fb662b1368cbdcdcbe06960f@msnews.microsoft.com...
>>> Hello Ferg,
>>>
>>> You're welcome.
>>>
>>> Best regards
>>>
>>> Meinolf Weber
>>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>>> confers no rights.
>>> ** Please do NOT email, only reply to Newsgroups
>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>>
>>>> About 75.
>>>>
>>>> Anyway, all the replies have benefitted me quite a bit. I have many
>>>> options,
>>>> but for now the logon script rout command is good enough.
>>>> I will work on getting my Cisco switches configured with VLANS and go
>>>> that
>>>> route later on.
>>>> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you
>>>> "guys". I
>>>> appreciate your help.
>>>> Cheers and best wishes.
>>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>>> news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
>>>>
>>>>> Another thing, how many DHCP clients are we talking about?
>>>>>
>>>>> --
>>>>> I hope that the information above helps you.
>>>>> Have a Nice day.
>>>>> Jorge Silva
>>>>> MVP Directory Services
>>>>> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
>>>>> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>>>>> If you wanted to the keep the management of the default gateway
>>>>>> addresses
>>>>>> in
>>>>>> DHCP look at setting up User Classes. Then use a logon script via
>>>>>> GPO
>>>>>> with
>>>>>> the ipconfig \setuserclass command. You can then have different
>>>>>> default
>>>>>> gateway address Options in the same scope but applied to different
>>>>>> computers
>>>>>> depending on OU.
>>>>>> Best Regards
>>>>>> Joe Dunn
>>>>>> MCSE, MCTS, CCNA
>>>>>> "Jorge Silva" wrote:
>>>>>>
>>>>>>> Hi Ferg,
>>>>>>> Please always respond here.
>>>>>>> Answer:
>>>>>>> Simple, example: for DHCP clients, remove the gatway configuration
>>>>>>> from
>>>>>>> your
>>>>>>> DHCP scope, then you can setup a logon or startup script/batch file
>>>>>>> that
>>>>>>> defines a static route to general gateway something like this:
>>>>>>> #---------------------------------------------------
>>>>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>>>>> #---------------------------------------------------
>>>>>>> The "-p" switch means persistent, event after a reboot the route
>>>>>>> will be
>>>>>>> there.
>>>>>>> --
>>>>>>> I hope that the information above helps you.
>>>>>>> Have a Nice day.
>>>>>>> Jorge Silva
>>>>>>> MVP Directory Services
>>>>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>>>>> G'Day All,
>>>>>>>>
>>>>>>>> Greetings and best wishes.
>>>>>>>> I have searched high and low for a solution here and am stumpped.
>>>>>>>> I
>>>>>>>> have
>>>>>>>> not found anything. I am trying to accomplist the following.
>>>>>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>>>>>> I also have two different internet connections each with their own
>>>>>>>> firewall, LAN IP, and range of WAN IPs.
>>>>>>>> 192.192.192.77 Internet Connection #1
>>>>>>>> 192.192.192.87 Internet Connection #2
>>>>>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>>>>>>> <STAFF>
>>>>>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>>>>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>>>>>>>> the
>>>>>>>> default gateway.
>>>>>>>> Many thanks
>>>>>>>>
>>>>>>>> Mike
>>>>>>>>
>>>
>>>
>>
>>
>
Re: AD-DNS-DHCP [message #159248 is a reply to message #159245] Mon, 27 July 2009 16:28 Go to previous messageGo to next message
Ferg  is currently offline Ferg  United States
Messages: 15
Registered: July 2009
Junior Member
This is the question:

If I do NOT remove the gateway configuration(192.168.131.21) from my DHCP
scope but add route command to my logon script, which one will ultimately
prevail, the DHCP gateway configuration or the route add command in the
logon script?



"Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
news:D8979CC2-E061-4918-8BE0-DB9458D97881@microsoft.com...
> The flush cmd will clear all route config, in some scenarios you'll need
> to reboot the system or the gateway won't work. What is the question?
>
> The -f switch doesn't remove the TCPIP config, it only cleans the route
> table.
>
> --
> I hope that the information above helps you.
> Have a Nice day.
>
> Jorge Silva
> MVP Directory Services
> "Ferg" <ferguson@eastsidemiami.com> wrote in message
> news:ulk75QvDKHA.4004@TK2MSFTNGP05.phx.gbl...
>> G'Day All,
>>
>> Here is a followup question, even though I could run a test to see the
>> outcome,:
>> If I do NOT remove the gateway configuration(192.168.131.21) from my DHCP
>> scope but add the following to my logon script, which one
>> will ultimately prevail, the DHCP gateway configuration or the route add
>> command in the logon script.
>>
>> route command added to my logon script: route -f add 0.0.0.0 mask
>> 0.0.0.0 192.168.131.22.
>>
>> Thanks
>>
>>
>>
>>
>> "Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
>> news:ff16fb662b1368cbdcdcbe06960f@msnews.microsoft.com...
>>> Hello Ferg,
>>>
>>> You're welcome.
>>>
>>> Best regards
>>>
>>> Meinolf Weber
>>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>>> confers no rights.
>>> ** Please do NOT email, only reply to Newsgroups
>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>>
>>>> About 75.
>>>>
>>>> Anyway, all the replies have benefitted me quite a bit. I have many
>>>> options,
>>>> but for now the logon script rout command is good enough.
>>>> I will work on getting my Cisco switches configured with VLANS and go
>>>> that
>>>> route later on.
>>>> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you
>>>> "guys". I
>>>> appreciate your help.
>>>> Cheers and best wishes.
>>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>>> news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
>>>>
>>>>> Another thing, how many DHCP clients are we talking about?
>>>>>
>>>>> --
>>>>> I hope that the information above helps you.
>>>>> Have a Nice day.
>>>>> Jorge Silva
>>>>> MVP Directory Services
>>>>> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
>>>>> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>>>>> If you wanted to the keep the management of the default gateway
>>>>>> addresses
>>>>>> in
>>>>>> DHCP look at setting up User Classes. Then use a logon script via
>>>>>> GPO
>>>>>> with
>>>>>> the ipconfig \setuserclass command. You can then have different
>>>>>> default
>>>>>> gateway address Options in the same scope but applied to different
>>>>>> computers
>>>>>> depending on OU.
>>>>>> Best Regards
>>>>>> Joe Dunn
>>>>>> MCSE, MCTS, CCNA
>>>>>> "Jorge Silva" wrote:
>>>>>>
>>>>>>> Hi Ferg,
>>>>>>> Please always respond here.
>>>>>>> Answer:
>>>>>>> Simple, example: for DHCP clients, remove the gatway configuration
>>>>>>> from
>>>>>>> your
>>>>>>> DHCP scope, then you can setup a logon or startup script/batch file
>>>>>>> that
>>>>>>> defines a static route to general gateway something like this:
>>>>>>> #---------------------------------------------------
>>>>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>>>>> #---------------------------------------------------
>>>>>>> The "-p" switch means persistent, event after a reboot the route
>>>>>>> will be
>>>>>>> there.
>>>>>>> --
>>>>>>> I hope that the information above helps you.
>>>>>>> Have a Nice day.
>>>>>>> Jorge Silva
>>>>>>> MVP Directory Services
>>>>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>>>>> G'Day All,
>>>>>>>>
>>>>>>>> Greetings and best wishes.
>>>>>>>> I have searched high and low for a solution here and am stumpped.
>>>>>>>> I
>>>>>>>> have
>>>>>>>> not found anything. I am trying to accomplist the following.
>>>>>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>>>>>> I also have two different internet connections each with their own
>>>>>>>> firewall, LAN IP, and range of WAN IPs.
>>>>>>>> 192.192.192.77 Internet Connection #1
>>>>>>>> 192.192.192.87 Internet Connection #2
>>>>>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>>>>>>> <STAFF>
>>>>>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>>>>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>>>>>>>> the
>>>>>>>> default gateway.
>>>>>>>> Many thanks
>>>>>>>>
>>>>>>>> Mike
>>>>>>>>
>>>
>>>
>>
>>
>
Re: AD-DNS-DHCP [message #159250 is a reply to message #159248] Mon, 27 July 2009 17:13 Go to previous messageGo to next message
anthony  is currently offline anthony
Messages: 288
Registered: July 2009
Senior Member
Ferg,
If you use the Route command from cmd you will see the effects of adding the
route.
You will have an initial default route that is the same as the gateway
assigned in DHCP. If you add another default route you will have two, and
the first will be used unless you set metrics. If you look in TCP/IP
properties at this stage you will see two "gateways", which are the default
routes.
To get what you want you would need first to run a Route Delete 0.0.0.0,
which will remove the existing gateway, then route add to create the new
default route.
Hope that helps,
Anthony
http://www.airdesk.com





"Ferg" <ferguson@eastsidemiami.com> wrote in message
news:e73wOjvDKHA.4792@TK2MSFTNGP05.phx.gbl...
> This is the question:
>
> If I do NOT remove the gateway configuration(192.168.131.21) from my DHCP
> scope but add route command to my logon script, which one will ultimately
> prevail, the DHCP gateway configuration or the route add command in the
> logon script?
>
>
>
> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
> news:D8979CC2-E061-4918-8BE0-DB9458D97881@microsoft.com...
>> The flush cmd will clear all route config, in some scenarios you'll need
>> to reboot the system or the gateway won't work. What is the question?
>>
>> The -f switch doesn't remove the TCPIP config, it only cleans the route
>> table.
>>
>> --
>> I hope that the information above helps you.
>> Have a Nice day.
>>
>> Jorge Silva
>> MVP Directory Services
>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>> news:ulk75QvDKHA.4004@TK2MSFTNGP05.phx.gbl...
>>> G'Day All,
>>>
>>> Here is a followup question, even though I could run a test to see the
>>> outcome,:
>>> If I do NOT remove the gateway configuration(192.168.131.21) from my
>>> DHCP scope but add the following to my logon script, which one
>>> will ultimately prevail, the DHCP gateway configuration or the route add
>>> command in the logon script.
>>>
>>> route command added to my logon script: route -f add 0.0.0.0 mask
>>> 0.0.0.0 192.168.131.22.
>>>
>>> Thanks
>>>
>>>
>>>
>>>
>>> "Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
>>> news:ff16fb662b1368cbdcdcbe06960f@msnews.microsoft.com...
>>>> Hello Ferg,
>>>>
>>>> You're welcome.
>>>>
>>>> Best regards
>>>>
>>>> Meinolf Weber
>>>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>>>> confers no rights.
>>>> ** Please do NOT email, only reply to Newsgroups
>>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>>>
>>>>> About 75.
>>>>>
>>>>> Anyway, all the replies have benefitted me quite a bit. I have many
>>>>> options,
>>>>> but for now the logon script rout command is good enough.
>>>>> I will work on getting my Cisco switches configured with VLANS and go
>>>>> that
>>>>> route later on.
>>>>> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you
>>>>> "guys". I
>>>>> appreciate your help.
>>>>> Cheers and best wishes.
>>>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>>>> news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
>>>>>
>>>>>> Another thing, how many DHCP clients are we talking about?
>>>>>>
>>>>>> --
>>>>>> I hope that the information above helps you.
>>>>>> Have a Nice day.
>>>>>> Jorge Silva
>>>>>> MVP Directory Services
>>>>>> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
>>>>>> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>>>>>> If you wanted to the keep the management of the default gateway
>>>>>>> addresses
>>>>>>> in
>>>>>>> DHCP look at setting up User Classes. Then use a logon script via
>>>>>>> GPO
>>>>>>> with
>>>>>>> the ipconfig \setuserclass command. You can then have different
>>>>>>> default
>>>>>>> gateway address Options in the same scope but applied to different
>>>>>>> computers
>>>>>>> depending on OU.
>>>>>>> Best Regards
>>>>>>> Joe Dunn
>>>>>>> MCSE, MCTS, CCNA
>>>>>>> "Jorge Silva" wrote:
>>>>>>>
>>>>>>>> Hi Ferg,
>>>>>>>> Please always respond here.
>>>>>>>> Answer:
>>>>>>>> Simple, example: for DHCP clients, remove the gatway configuration
>>>>>>>> from
>>>>>>>> your
>>>>>>>> DHCP scope, then you can setup a logon or startup script/batch file
>>>>>>>> that
>>>>>>>> defines a static route to general gateway something like this:
>>>>>>>> #---------------------------------------------------
>>>>>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>>>>>> #---------------------------------------------------
>>>>>>>> The "-p" switch means persistent, event after a reboot the route
>>>>>>>> will be
>>>>>>>> there.
>>>>>>>> --
>>>>>>>> I hope that the information above helps you.
>>>>>>>> Have a Nice day.
>>>>>>>> Jorge Silva
>>>>>>>> MVP Directory Services
>>>>>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>>>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>>>>>> G'Day All,
>>>>>>>>>
>>>>>>>>> Greetings and best wishes.
>>>>>>>>> I have searched high and low for a solution here and am stumpped.
>>>>>>>>> I
>>>>>>>>> have
>>>>>>>>> not found anything. I am trying to accomplist the following.
>>>>>>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>>>>>>> I also have two different internet connections each with their own
>>>>>>>>> firewall, LAN IP, and range of WAN IPs.
>>>>>>>>> 192.192.192.77 Internet Connection #1
>>>>>>>>> 192.192.192.87 Internet Connection #2
>>>>>>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>>>>>>>> <STAFF>
>>>>>>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>>>>>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>>>>>>>>> the
>>>>>>>>> default gateway.
>>>>>>>>> Many thanks
>>>>>>>>>
>>>>>>>>> Mike
>>>>>>>>>
>>>>
>>>>
>>>
>>>
>>
>
>
Re: AD-DNS-DHCP [message #159251 is a reply to message #159248] Mon, 27 July 2009 17:57 Go to previous messageGo to next message
Jorge Silva  is currently offline Jorge Silva
Messages: 398
Registered: July 2009
Senior Member
The route add cmd DOESN'T add any gateway to your NIC config, the path to be
chosen by windows will be based on the Metric that is defined on the route
table. If the default gateway provided by your DHCP server is 100 and the
route used in the script is 1, then the route set by the script wins.

If you define more specific routes, eg: 10.10.0.0 mask 255.255.255.0
192.168.0.1 Metric 10, then all requests to 10.10.0.0/24 address will take
192.168.0.1 gateway because this route is more specific than 0.0.0.0 even
with a Metric of 10.

--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MVP Directory Services
"Ferg" <ferguson@eastsidemiami.com> wrote in message
news:e73wOjvDKHA.4792@TK2MSFTNGP05.phx.gbl...
> This is the question:
>
> If I do NOT remove the gateway configuration(192.168.131.21) from my DHCP
> scope but add route command to my logon script, which one will ultimately
> prevail, the DHCP gateway configuration or the route add command in the
> logon script?
>
>
>
> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
> news:D8979CC2-E061-4918-8BE0-DB9458D97881@microsoft.com...
>> The flush cmd will clear all route config, in some scenarios you'll need
>> to reboot the system or the gateway won't work. What is the question?
>>
>> The -f switch doesn't remove the TCPIP config, it only cleans the route
>> table.
>>
>> --
>> I hope that the information above helps you.
>> Have a Nice day.
>>
>> Jorge Silva
>> MVP Directory Services
>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>> news:ulk75QvDKHA.4004@TK2MSFTNGP05.phx.gbl...
>>> G'Day All,
>>>
>>> Here is a followup question, even though I could run a test to see the
>>> outcome,:
>>> If I do NOT remove the gateway configuration(192.168.131.21) from my
>>> DHCP scope but add the following to my logon script, which one
>>> will ultimately prevail, the DHCP gateway configuration or the route add
>>> command in the logon script.
>>>
>>> route command added to my logon script: route -f add 0.0.0.0 mask
>>> 0.0.0.0 192.168.131.22.
>>>
>>> Thanks
>>>
>>>
>>>
>>>
>>> "Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
>>> news:ff16fb662b1368cbdcdcbe06960f@msnews.microsoft.com...
>>>> Hello Ferg,
>>>>
>>>> You're welcome.
>>>>
>>>> Best regards
>>>>
>>>> Meinolf Weber
>>>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>>>> confers no rights.
>>>> ** Please do NOT email, only reply to Newsgroups
>>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>>>
>>>>> About 75.
>>>>>
>>>>> Anyway, all the replies have benefitted me quite a bit. I have many
>>>>> options,
>>>>> but for now the logon script rout command is good enough.
>>>>> I will work on getting my Cisco switches configured with VLANS and go
>>>>> that
>>>>> route later on.
>>>>> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you
>>>>> "guys". I
>>>>> appreciate your help.
>>>>> Cheers and best wishes.
>>>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>>>> news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
>>>>>
>>>>>> Another thing, how many DHCP clients are we talking about?
>>>>>>
>>>>>> --
>>>>>> I hope that the information above helps you.
>>>>>> Have a Nice day.
>>>>>> Jorge Silva
>>>>>> MVP Directory Services
>>>>>> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
>>>>>> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>>>>>> If you wanted to the keep the management of the default gateway
>>>>>>> addresses
>>>>>>> in
>>>>>>> DHCP look at setting up User Classes. Then use a logon script via
>>>>>>> GPO
>>>>>>> with
>>>>>>> the ipconfig \setuserclass command. You can then have different
>>>>>>> default
>>>>>>> gateway address Options in the same scope but applied to different
>>>>>>> computers
>>>>>>> depending on OU.
>>>>>>> Best Regards
>>>>>>> Joe Dunn
>>>>>>> MCSE, MCTS, CCNA
>>>>>>> "Jorge Silva" wrote:
>>>>>>>
>>>>>>>> Hi Ferg,
>>>>>>>> Please always respond here.
>>>>>>>> Answer:
>>>>>>>> Simple, example: for DHCP clients, remove the gatway configuration
>>>>>>>> from
>>>>>>>> your
>>>>>>>> DHCP scope, then you can setup a logon or startup script/batch file
>>>>>>>> that
>>>>>>>> defines a static route to general gateway something like this:
>>>>>>>> #---------------------------------------------------
>>>>>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>>>>>> #---------------------------------------------------
>>>>>>>> The "-p" switch means persistent, event after a reboot the route
>>>>>>>> will be
>>>>>>>> there.
>>>>>>>> --
>>>>>>>> I hope that the information above helps you.
>>>>>>>> Have a Nice day.
>>>>>>>> Jorge Silva
>>>>>>>> MVP Directory Services
>>>>>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>>>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>>>>>> G'Day All,
>>>>>>>>>
>>>>>>>>> Greetings and best wishes.
>>>>>>>>> I have searched high and low for a solution here and am stumpped.
>>>>>>>>> I
>>>>>>>>> have
>>>>>>>>> not found anything. I am trying to accomplist the following.
>>>>>>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>>>>>>> I also have two different internet connections each with their own
>>>>>>>>> firewall, LAN IP, and range of WAN IPs.
>>>>>>>>> 192.192.192.77 Internet Connection #1
>>>>>>>>> 192.192.192.87 Internet Connection #2
>>>>>>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>>>>>>>> <STAFF>
>>>>>>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>>>>>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1 as
>>>>>>>>> the
>>>>>>>>> default gateway.
>>>>>>>>> Many thanks
>>>>>>>>>
>>>>>>>>> Mike
>>>>>>>>>
>>>>
>>>>
>>>
>>>
>>
>
>
Re: AD-DNS-DHCP [message #159256 is a reply to message #159251] Mon, 27 July 2009 20:11 Go to previous messageGo to next message
anthony  is currently offline anthony
Messages: 288
Registered: July 2009
Senior Member
Ipconfig will show a second default gateway.
You could set a metric for the additional gateway, or you could run Route
Delete 0.0.0.0 first,
Anthony,
http://www.airdesk.com



"Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
news:E8390B8E-B268-4C14-8DAD-09C4D7886D2C@microsoft.com...
> The route add cmd DOESN'T add any gateway to your NIC config, the path to
> be chosen by windows will be based on the Metric that is defined on the
> route table. If the default gateway provided by your DHCP server is 100
> and the route used in the script is 1, then the route set by the script
> wins.
>
> If you define more specific routes, eg: 10.10.0.0 mask 255.255.255.0
> 192.168.0.1 Metric 10, then all requests to 10.10.0.0/24 address will take
> 192.168.0.1 gateway because this route is more specific than 0.0.0.0 even
> with a Metric of 10.
>
> --
> I hope that the information above helps you.
> Have a Nice day.
>
> Jorge Silva
> MVP Directory Services
> "Ferg" <ferguson@eastsidemiami.com> wrote in message
> news:e73wOjvDKHA.4792@TK2MSFTNGP05.phx.gbl...
>> This is the question:
>>
>> If I do NOT remove the gateway configuration(192.168.131.21) from my DHCP
>> scope but add route command to my logon script, which one will ultimately
>> prevail, the DHCP gateway configuration or the route add command in the
>> logon script?
>>
>>
>>
>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>> news:D8979CC2-E061-4918-8BE0-DB9458D97881@microsoft.com...
>>> The flush cmd will clear all route config, in some scenarios you'll need
>>> to reboot the system or the gateway won't work. What is the question?
>>>
>>> The -f switch doesn't remove the TCPIP config, it only cleans the route
>>> table.
>>>
>>> --
>>> I hope that the information above helps you.
>>> Have a Nice day.
>>>
>>> Jorge Silva
>>> MVP Directory Services
>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>> news:ulk75QvDKHA.4004@TK2MSFTNGP05.phx.gbl...
>>>> G'Day All,
>>>>
>>>> Here is a followup question, even though I could run a test to see the
>>>> outcome,:
>>>> If I do NOT remove the gateway configuration(192.168.131.21) from my
>>>> DHCP scope but add the following to my logon script, which one
>>>> will ultimately prevail, the DHCP gateway configuration or the route
>>>> add command in the logon script.
>>>>
>>>> route command added to my logon script: route -f add 0.0.0.0 mask
>>>> 0.0.0.0 192.168.131.22.
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>>
>>>> "Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
>>>> news:ff16fb662b1368cbdcdcbe06960f@msnews.microsoft.com...
>>>>> Hello Ferg,
>>>>>
>>>>> You're welcome.
>>>>>
>>>>> Best regards
>>>>>
>>>>> Meinolf Weber
>>>>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>>>>> confers no rights.
>>>>> ** Please do NOT email, only reply to Newsgroups
>>>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>>>>
>>>>>> About 75.
>>>>>>
>>>>>> Anyway, all the replies have benefitted me quite a bit. I have many
>>>>>> options,
>>>>>> but for now the logon script rout command is good enough.
>>>>>> I will work on getting my Cisco switches configured with VLANS and go
>>>>>> that
>>>>>> route later on.
>>>>>> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you
>>>>>> "guys". I
>>>>>> appreciate your help.
>>>>>> Cheers and best wishes.
>>>>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>>>>> news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
>>>>>>
>>>>>>> Another thing, how many DHCP clients are we talking about?
>>>>>>>
>>>>>>> --
>>>>>>> I hope that the information above helps you.
>>>>>>> Have a Nice day.
>>>>>>> Jorge Silva
>>>>>>> MVP Directory Services
>>>>>>> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
>>>>>>> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>>>>>>> If you wanted to the keep the management of the default gateway
>>>>>>>> addresses
>>>>>>>> in
>>>>>>>> DHCP look at setting up User Classes. Then use a logon script via
>>>>>>>> GPO
>>>>>>>> with
>>>>>>>> the ipconfig \setuserclass command. You can then have different
>>>>>>>> default
>>>>>>>> gateway address Options in the same scope but applied to different
>>>>>>>> computers
>>>>>>>> depending on OU.
>>>>>>>> Best Regards
>>>>>>>> Joe Dunn
>>>>>>>> MCSE, MCTS, CCNA
>>>>>>>> "Jorge Silva" wrote:
>>>>>>>>
>>>>>>>>> Hi Ferg,
>>>>>>>>> Please always respond here.
>>>>>>>>> Answer:
>>>>>>>>> Simple, example: for DHCP clients, remove the gatway configuration
>>>>>>>>> from
>>>>>>>>> your
>>>>>>>>> DHCP scope, then you can setup a logon or startup script/batch
>>>>>>>>> file
>>>>>>>>> that
>>>>>>>>> defines a static route to general gateway something like this:
>>>>>>>>> #---------------------------------------------------
>>>>>>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>>>>>>> #---------------------------------------------------
>>>>>>>>> The "-p" switch means persistent, event after a reboot the route
>>>>>>>>> will be
>>>>>>>>> there.
>>>>>>>>> --
>>>>>>>>> I hope that the information above helps you.
>>>>>>>>> Have a Nice day.
>>>>>>>>> Jorge Silva
>>>>>>>>> MVP Directory Services
>>>>>>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>>>>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>>>>>>> G'Day All,
>>>>>>>>>>
>>>>>>>>>> Greetings and best wishes.
>>>>>>>>>> I have searched high and low for a solution here and am stumpped.
>>>>>>>>>> I
>>>>>>>>>> have
>>>>>>>>>> not found anything. I am trying to accomplist the following.
>>>>>>>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>>>>>>>> I also have two different internet connections each with their
>>>>>>>>>> own
>>>>>>>>>> firewall, LAN IP, and range of WAN IPs.
>>>>>>>>>> 192.192.192.77 Internet Connection #1
>>>>>>>>>> 192.192.192.87 Internet Connection #2
>>>>>>>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>>>>>>>>> <STAFF>
>>>>>>>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>>>>>>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1
>>>>>>>>>> as
>>>>>>>>>> the
>>>>>>>>>> default gateway.
>>>>>>>>>> Many thanks
>>>>>>>>>>
>>>>>>>>>> Mike
>>>>>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>
Re: AD-DNS-DHCP [message #159257 is a reply to message #159209] Mon, 27 July 2009 20:19 Go to previous messageGo to next message
aceman  is currently offline aceman  United States
Messages: 5816
Registered: July 2009
Senior Member
"Ferg" <ferguson@eastsidemiami.com> wrote in message
news:u4znqIrDKHA.5040@TK2MSFTNGP04.phx.gbl...
> About 75.
>
> Anyway, all the replies have benefitted me quite a bit. I have many
> options, but for now the logon script rout command is good enough.
> I will work on getting my Cisco switches configured with VLANS and go that
> route later on.
>
> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you "guys". I
> appreciate your help.
> Cheers and best wishes.
>


You're welcome!

Ace
Re: AD-DNS-DHCP [message #159267 is a reply to message #159256] Tue, 28 July 2009 05:51 Go to previous messageGo to next message
Jorge Silva  is currently offline Jorge Silva
Messages: 398
Registered: July 2009
Senior Member
ahhh...
Ok, right, using IPConfig...
I thought that Antony was talking about GUI...
--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MVP Directory Services
"Anthony [MVP]" <anthony@no-reply.com> wrote in message
news:76F35845-617A-4CA7-8E45-94D5C8374B78@microsoft.com...
> Ipconfig will show a second default gateway.
> You could set a metric for the additional gateway, or you could run Route
> Delete 0.0.0.0 first,
> Anthony,
> http://www.airdesk.com
>
>
>
> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
> news:E8390B8E-B268-4C14-8DAD-09C4D7886D2C@microsoft.com...
>> The route add cmd DOESN'T add any gateway to your NIC config, the path to
>> be chosen by windows will be based on the Metric that is defined on the
>> route table. If the default gateway provided by your DHCP server is 100
>> and the route used in the script is 1, then the route set by the script
>> wins.
>>
>> If you define more specific routes, eg: 10.10.0.0 mask 255.255.255.0
>> 192.168.0.1 Metric 10, then all requests to 10.10.0.0/24 address will
>> take 192.168.0.1 gateway because this route is more specific than 0.0.0.0
>> even with a Metric of 10.
>>
>> --
>> I hope that the information above helps you.
>> Have a Nice day.
>>
>> Jorge Silva
>> MVP Directory Services
>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>> news:e73wOjvDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>> This is the question:
>>>
>>> If I do NOT remove the gateway configuration(192.168.131.21) from my
>>> DHCP scope but add route command to my logon script, which one will
>>> ultimately prevail, the DHCP gateway configuration or the route add
>>> command in the logon script?
>>>
>>>
>>>
>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>> news:D8979CC2-E061-4918-8BE0-DB9458D97881@microsoft.com...
>>>> The flush cmd will clear all route config, in some scenarios you'll
>>>> need to reboot the system or the gateway won't work. What is the
>>>> question?
>>>>
>>>> The -f switch doesn't remove the TCPIP config, it only cleans the route
>>>> table.
>>>>
>>>> --
>>>> I hope that the information above helps you.
>>>> Have a Nice day.
>>>>
>>>> Jorge Silva
>>>> MVP Directory Services
>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>> news:ulk75QvDKHA.4004@TK2MSFTNGP05.phx.gbl...
>>>>> G'Day All,
>>>>>
>>>>> Here is a followup question, even though I could run a test to see the
>>>>> outcome,:
>>>>> If I do NOT remove the gateway configuration(192.168.131.21) from my
>>>>> DHCP scope but add the following to my logon script, which one
>>>>> will ultimately prevail, the DHCP gateway configuration or the route
>>>>> add command in the logon script.
>>>>>
>>>>> route command added to my logon script: route -f add 0.0.0.0 mask
>>>>> 0.0.0.0 192.168.131.22.
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> "Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
>>>>> news:ff16fb662b1368cbdcdcbe06960f@msnews.microsoft.com...
>>>>>> Hello Ferg,
>>>>>>
>>>>>> You're welcome.
>>>>>>
>>>>>> Best regards
>>>>>>
>>>>>> Meinolf Weber
>>>>>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>>>>>> confers no rights.
>>>>>> ** Please do NOT email, only reply to Newsgroups
>>>>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>>>>>
>>>>>>> About 75.
>>>>>>>
>>>>>>> Anyway, all the replies have benefitted me quite a bit. I have many
>>>>>>> options,
>>>>>>> but for now the logon script rout command is good enough.
>>>>>>> I will work on getting my Cisco switches configured with VLANS and
>>>>>>> go
>>>>>>> that
>>>>>>> route later on.
>>>>>>> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you
>>>>>>> "guys". I
>>>>>>> appreciate your help.
>>>>>>> Cheers and best wishes.
>>>>>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>>>>>> news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
>>>>>>>
>>>>>>>> Another thing, how many DHCP clients are we talking about?
>>>>>>>>
>>>>>>>> --
>>>>>>>> I hope that the information above helps you.
>>>>>>>> Have a Nice day.
>>>>>>>> Jorge Silva
>>>>>>>> MVP Directory Services
>>>>>>>> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
>>>>>>>> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>>>>>>>> If you wanted to the keep the management of the default gateway
>>>>>>>>> addresses
>>>>>>>>> in
>>>>>>>>> DHCP look at setting up User Classes. Then use a logon script via
>>>>>>>>> GPO
>>>>>>>>> with
>>>>>>>>> the ipconfig \setuserclass command. You can then have different
>>>>>>>>> default
>>>>>>>>> gateway address Options in the same scope but applied to different
>>>>>>>>> computers
>>>>>>>>> depending on OU.
>>>>>>>>> Best Regards
>>>>>>>>> Joe Dunn
>>>>>>>>> MCSE, MCTS, CCNA
>>>>>>>>> "Jorge Silva" wrote:
>>>>>>>>>
>>>>>>>>>> Hi Ferg,
>>>>>>>>>> Please always respond here.
>>>>>>>>>> Answer:
>>>>>>>>>> Simple, example: for DHCP clients, remove the gatway
>>>>>>>>>> configuration
>>>>>>>>>> from
>>>>>>>>>> your
>>>>>>>>>> DHCP scope, then you can setup a logon or startup script/batch
>>>>>>>>>> file
>>>>>>>>>> that
>>>>>>>>>> defines a static route to general gateway something like this:
>>>>>>>>>> #---------------------------------------------------
>>>>>>>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>>>>>>>> #---------------------------------------------------
>>>>>>>>>> The "-p" switch means persistent, event after a reboot the route
>>>>>>>>>> will be
>>>>>>>>>> there.
>>>>>>>>>> --
>>>>>>>>>> I hope that the information above helps you.
>>>>>>>>>> Have a Nice day.
>>>>>>>>>> Jorge Silva
>>>>>>>>>> MVP Directory Services
>>>>>>>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>>>>>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>>>>>>>> G'Day All,
>>>>>>>>>>>
>>>>>>>>>>> Greetings and best wishes.
>>>>>>>>>>> I have searched high and low for a solution here and am
>>>>>>>>>>> stumpped.
>>>>>>>>>>> I
>>>>>>>>>>> have
>>>>>>>>>>> not found anything. I am trying to accomplist the following.
>>>>>>>>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>>>>>>>>> I also have two different internet connections each with their
>>>>>>>>>>> own
>>>>>>>>>>> firewall, LAN IP, and range of WAN IPs.
>>>>>>>>>>> 192.192.192.77 Internet Connection #1
>>>>>>>>>>> 192.192.192.87 Internet Connection #2
>>>>>>>>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever, set
>>>>>>>>>>> <STAFF>
>>>>>>>>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>>>>>>>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1
>>>>>>>>>>> as
>>>>>>>>>>> the
>>>>>>>>>>> default gateway.
>>>>>>>>>>> Many thanks
>>>>>>>>>>>
>>>>>>>>>>> Mike
>>>>>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
Re: AD-DNS-DHCP [message #159273 is a reply to message #159267] Tue, 28 July 2009 06:48 Go to previous messageGo to next message
Ferg  is currently offline Ferg  United States
Messages: 15
Registered: July 2009
Junior Member
Great answers.
Thanks again everyone for your kind attention.
'preciate it.

G'Day

"Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
news:6E221962-38E0-49A2-B15E-2D0927A0CC20@microsoft.com...
> ahhh...
> Ok, right, using IPConfig...
> I thought that Antony was talking about GUI...
> --
> I hope that the information above helps you.
> Have a Nice day.
>
> Jorge Silva
> MVP Directory Services
> "Anthony [MVP]" <anthony@no-reply.com> wrote in message
> news:76F35845-617A-4CA7-8E45-94D5C8374B78@microsoft.com...
>> Ipconfig will show a second default gateway.
>> You could set a metric for the additional gateway, or you could run Route
>> Delete 0.0.0.0 first,
>> Anthony,
>> http://www.airdesk.com
>>
>>
>>
>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>> news:E8390B8E-B268-4C14-8DAD-09C4D7886D2C@microsoft.com...
>>> The route add cmd DOESN'T add any gateway to your NIC config, the path
>>> to be chosen by windows will be based on the Metric that is defined on
>>> the route table. If the default gateway provided by your DHCP server is
>>> 100 and the route used in the script is 1, then the route set by the
>>> script wins.
>>>
>>> If you define more specific routes, eg: 10.10.0.0 mask 255.255.255.0
>>> 192.168.0.1 Metric 10, then all requests to 10.10.0.0/24 address will
>>> take 192.168.0.1 gateway because this route is more specific than
>>> 0.0.0.0 even with a Metric of 10.
>>>
>>> --
>>> I hope that the information above helps you.
>>> Have a Nice day.
>>>
>>> Jorge Silva
>>> MVP Directory Services
>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>> news:e73wOjvDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>> This is the question:
>>>>
>>>> If I do NOT remove the gateway configuration(192.168.131.21) from my
>>>> DHCP scope but add route command to my logon script, which one will
>>>> ultimately prevail, the DHCP gateway configuration or the route add
>>>> command in the logon script?
>>>>
>>>>
>>>>
>>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>>> news:D8979CC2-E061-4918-8BE0-DB9458D97881@microsoft.com...
>>>>> The flush cmd will clear all route config, in some scenarios you'll
>>>>> need to reboot the system or the gateway won't work. What is the
>>>>> question?
>>>>>
>>>>> The -f switch doesn't remove the TCPIP config, it only cleans the
>>>>> route table.
>>>>>
>>>>> --
>>>>> I hope that the information above helps you.
>>>>> Have a Nice day.
>>>>>
>>>>> Jorge Silva
>>>>> MVP Directory Services
>>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>>> news:ulk75QvDKHA.4004@TK2MSFTNGP05.phx.gbl...
>>>>>> G'Day All,
>>>>>>
>>>>>> Here is a followup question, even though I could run a test to see
>>>>>> the outcome,:
>>>>>> If I do NOT remove the gateway configuration(192.168.131.21) from my
>>>>>> DHCP scope but add the following to my logon script, which one
>>>>>> will ultimately prevail, the DHCP gateway configuration or the route
>>>>>> add command in the logon script.
>>>>>>
>>>>>> route command added to my logon script: route -f add 0.0.0.0 mask
>>>>>> 0.0.0.0 192.168.131.22.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> "Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
>>>>>> news:ff16fb662b1368cbdcdcbe06960f@msnews.microsoft.com...
>>>>>>> Hello Ferg,
>>>>>>>
>>>>>>> You're welcome.
>>>>>>>
>>>>>>> Best regards
>>>>>>>
>>>>>>> Meinolf Weber
>>>>>>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>>>>>>> confers no rights.
>>>>>>> ** Please do NOT email, only reply to Newsgroups
>>>>>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>>>>>>
>>>>>>>> About 75.
>>>>>>>>
>>>>>>>> Anyway, all the replies have benefitted me quite a bit. I have many
>>>>>>>> options,
>>>>>>>> but for now the logon script rout command is good enough.
>>>>>>>> I will work on getting my Cisco switches configured with VLANS and
>>>>>>>> go
>>>>>>>> that
>>>>>>>> route later on.
>>>>>>>> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you
>>>>>>>> "guys". I
>>>>>>>> appreciate your help.
>>>>>>>> Cheers and best wishes.
>>>>>>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>>>>>>> news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
>>>>>>>>
>>>>>>>>> Another thing, how many DHCP clients are we talking about?
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> I hope that the information above helps you.
>>>>>>>>> Have a Nice day.
>>>>>>>>> Jorge Silva
>>>>>>>>> MVP Directory Services
>>>>>>>>> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
>>>>>>>>> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>>>>>>>>> If you wanted to the keep the management of the default gateway
>>>>>>>>>> addresses
>>>>>>>>>> in
>>>>>>>>>> DHCP look at setting up User Classes. Then use a logon script
>>>>>>>>>> via
>>>>>>>>>> GPO
>>>>>>>>>> with
>>>>>>>>>> the ipconfig \setuserclass command. You can then have different
>>>>>>>>>> default
>>>>>>>>>> gateway address Options in the same scope but applied to
>>>>>>>>>> different
>>>>>>>>>> computers
>>>>>>>>>> depending on OU.
>>>>>>>>>> Best Regards
>>>>>>>>>> Joe Dunn
>>>>>>>>>> MCSE, MCTS, CCNA
>>>>>>>>>> "Jorge Silva" wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi Ferg,
>>>>>>>>>>> Please always respond here.
>>>>>>>>>>> Answer:
>>>>>>>>>>> Simple, example: for DHCP clients, remove the gatway
>>>>>>>>>>> configuration
>>>>>>>>>>> from
>>>>>>>>>>> your
>>>>>>>>>>> DHCP scope, then you can setup a logon or startup script/batch
>>>>>>>>>>> file
>>>>>>>>>>> that
>>>>>>>>>>> defines a static route to general gateway something like this:
>>>>>>>>>>> #---------------------------------------------------
>>>>>>>>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>>>>>>>>> #---------------------------------------------------
>>>>>>>>>>> The "-p" switch means persistent, event after a reboot the route
>>>>>>>>>>> will be
>>>>>>>>>>> there.
>>>>>>>>>>> --
>>>>>>>>>>> I hope that the information above helps you.
>>>>>>>>>>> Have a Nice day.
>>>>>>>>>>> Jorge Silva
>>>>>>>>>>> MVP Directory Services
>>>>>>>>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>>>>>>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>>>>>>>>> G'Day All,
>>>>>>>>>>>>
>>>>>>>>>>>> Greetings and best wishes.
>>>>>>>>>>>> I have searched high and low for a solution here and am
>>>>>>>>>>>> stumpped.
>>>>>>>>>>>> I
>>>>>>>>>>>> have
>>>>>>>>>>>> not found anything. I am trying to accomplist the following.
>>>>>>>>>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>>>>>>>>>> I also have two different internet connections each with their
>>>>>>>>>>>> own
>>>>>>>>>>>> firewall, LAN IP, and range of WAN IPs.
>>>>>>>>>>>> 192.192.192.77 Internet Connection #1
>>>>>>>>>>>> 192.192.192.87 Internet Connection #2
>>>>>>>>>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever,
>>>>>>>>>>>> set
>>>>>>>>>>>> <STAFF>
>>>>>>>>>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>>>>>>>>>> <Associates> and <Partners> to ALWAYS use Internet Connection#1
>>>>>>>>>>>> as
>>>>>>>>>>>> the
>>>>>>>>>>>> default gateway.
>>>>>>>>>>>> Many thanks
>>>>>>>>>>>>
>>>>>>>>>>>> Mike
>>>>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>
Re: AD-DNS-DHCP [message #159366 is a reply to message #159273] Wed, 29 July 2009 08:10 Go to previous message
Jorge Silva  is currently offline Jorge Silva
Messages: 398
Registered: July 2009
Senior Member
You're welcome.

--
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MVP Directory Services
"Ferg" <ferguson@eastsidemiami.com> wrote in message
news:uaBf0D3DKHA.1336@TK2MSFTNGP05.phx.gbl...
> Great answers.
> Thanks again everyone for your kind attention.
> 'preciate it.
>
> G'Day
>
> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
> news:6E221962-38E0-49A2-B15E-2D0927A0CC20@microsoft.com...
>> ahhh...
>> Ok, right, using IPConfig...
>> I thought that Antony was talking about GUI...
>> --
>> I hope that the information above helps you.
>> Have a Nice day.
>>
>> Jorge Silva
>> MVP Directory Services
>> "Anthony [MVP]" <anthony@no-reply.com> wrote in message
>> news:76F35845-617A-4CA7-8E45-94D5C8374B78@microsoft.com...
>>> Ipconfig will show a second default gateway.
>>> You could set a metric for the additional gateway, or you could run
>>> Route Delete 0.0.0.0 first,
>>> Anthony,
>>> http://www.airdesk.com
>>>
>>>
>>>
>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>> news:E8390B8E-B268-4C14-8DAD-09C4D7886D2C@microsoft.com...
>>>> The route add cmd DOESN'T add any gateway to your NIC config, the path
>>>> to be chosen by windows will be based on the Metric that is defined on
>>>> the route table. If the default gateway provided by your DHCP server is
>>>> 100 and the route used in the script is 1, then the route set by the
>>>> script wins.
>>>>
>>>> If you define more specific routes, eg: 10.10.0.0 mask 255.255.255.0
>>>> 192.168.0.1 Metric 10, then all requests to 10.10.0.0/24 address will
>>>> take 192.168.0.1 gateway because this route is more specific than
>>>> 0.0.0.0 even with a Metric of 10.
>>>>
>>>> --
>>>> I hope that the information above helps you.
>>>> Have a Nice day.
>>>>
>>>> Jorge Silva
>>>> MVP Directory Services
>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>> news:e73wOjvDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>> This is the question:
>>>>>
>>>>> If I do NOT remove the gateway configuration(192.168.131.21) from my
>>>>> DHCP scope but add route command to my logon script, which one will
>>>>> ultimately prevail, the DHCP gateway configuration or the route add
>>>>> command in the logon script?
>>>>>
>>>>>
>>>>>
>>>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>>>> news:D8979CC2-E061-4918-8BE0-DB9458D97881@microsoft.com...
>>>>>> The flush cmd will clear all route config, in some scenarios you'll
>>>>>> need to reboot the system or the gateway won't work. What is the
>>>>>> question?
>>>>>>
>>>>>> The -f switch doesn't remove the TCPIP config, it only cleans the
>>>>>> route table.
>>>>>>
>>>>>> --
>>>>>> I hope that the information above helps you.
>>>>>> Have a Nice day.
>>>>>>
>>>>>> Jorge Silva
>>>>>> MVP Directory Services
>>>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>>>> news:ulk75QvDKHA.4004@TK2MSFTNGP05.phx.gbl...
>>>>>>> G'Day All,
>>>>>>>
>>>>>>> Here is a followup question, even though I could run a test to see
>>>>>>> the outcome,:
>>>>>>> If I do NOT remove the gateway configuration(192.168.131.21) from my
>>>>>>> DHCP scope but add the following to my logon script, which one
>>>>>>> will ultimately prevail, the DHCP gateway configuration or the route
>>>>>>> add command in the logon script.
>>>>>>>
>>>>>>> route command added to my logon script: route -f add 0.0.0.0 mask
>>>>>>> 0.0.0.0 192.168.131.22.
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> "Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
>>>>>>> news:ff16fb662b1368cbdcdcbe06960f@msnews.microsoft.com...
>>>>>>>> Hello Ferg,
>>>>>>>>
>>>>>>>> You're welcome.
>>>>>>>>
>>>>>>>> Best regards
>>>>>>>>
>>>>>>>> Meinolf Weber
>>>>>>>> Disclaimer: This posting is provided "AS IS" with no warranties,
>>>>>>>> and confers no rights.
>>>>>>>> ** Please do NOT email, only reply to Newsgroups
>>>>>>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>>>>>>>
>>>>>>>>> About 75.
>>>>>>>>>
>>>>>>>>> Anyway, all the replies have benefitted me quite a bit. I have
>>>>>>>>> many
>>>>>>>>> options,
>>>>>>>>> but for now the logon script rout command is good enough.
>>>>>>>>> I will work on getting my Cisco switches configured with VLANS and
>>>>>>>>> go
>>>>>>>>> that
>>>>>>>>> route later on.
>>>>>>>>> Jorge, Meinolf, Grant, Anthony and Ace, thanks very much to you
>>>>>>>>> "guys". I
>>>>>>>>> appreciate your help.
>>>>>>>>> Cheers and best wishes.
>>>>>>>>> "Jorge Silva" <jorgesilva_pt@hotmail.com> wrote in message
>>>>>>>>> news:390A120F-78D2-4AA8-AD30-C047AD3609DE@microsoft.com...
>>>>>>>>>
>>>>>>>>>> Another thing, how many DHCP clients are we talking about?
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> I hope that the information above helps you.
>>>>>>>>>> Have a Nice day.
>>>>>>>>>> Jorge Silva
>>>>>>>>>> MVP Directory Services
>>>>>>>>>> "Joe Dunn" <JoeDunn@discussions.microsoft.com> wrote in message
>>>>>>>>>> news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@microsoft.com...
>>>>>>>>>>> If you wanted to the keep the management of the default gateway
>>>>>>>>>>> addresses
>>>>>>>>>>> in
>>>>>>>>>>> DHCP look at setting up User Classes. Then use a logon script
>>>>>>>>>>> via
>>>>>>>>>>> GPO
>>>>>>>>>>> with
>>>>>>>>>>> the ipconfig \setuserclass command. You can then have different
>>>>>>>>>>> default
>>>>>>>>>>> gateway address Options in the same scope but applied to
>>>>>>>>>>> different
>>>>>>>>>>> computers
>>>>>>>>>>> depending on OU.
>>>>>>>>>>> Best Regards
>>>>>>>>>>> Joe Dunn
>>>>>>>>>>> MCSE, MCTS, CCNA
>>>>>>>>>>> "Jorge Silva" wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Ferg,
>>>>>>>>>>>> Please always respond here.
>>>>>>>>>>>> Answer:
>>>>>>>>>>>> Simple, example: for DHCP clients, remove the gatway
>>>>>>>>>>>> configuration
>>>>>>>>>>>> from
>>>>>>>>>>>> your
>>>>>>>>>>>> DHCP scope, then you can setup a logon or startup script/batch
>>>>>>>>>>>> file
>>>>>>>>>>>> that
>>>>>>>>>>>> defines a static route to general gateway something like this:
>>>>>>>>>>>> #---------------------------------------------------
>>>>>>>>>>>> route -p add 0.0.0.0 mask 0.0.0.0 192.192.192.77
>>>>>>>>>>>> #---------------------------------------------------
>>>>>>>>>>>> The "-p" switch means persistent, event after a reboot the
>>>>>>>>>>>> route
>>>>>>>>>>>> will be
>>>>>>>>>>>> there.
>>>>>>>>>>>> --
>>>>>>>>>>>> I hope that the information above helps you.
>>>>>>>>>>>> Have a Nice day.
>>>>>>>>>>>> Jorge Silva
>>>>>>>>>>>> MVP Directory Services
>>>>>>>>>>>> "Ferg" <ferguson@eastsidemiami.com> wrote in message
>>>>>>>>>>>> news:uAZpn9GDKHA.4792@TK2MSFTNGP05.phx.gbl...
>>>>>>>>>>>>> G'Day All,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Greetings and best wishes.
>>>>>>>>>>>>> I have searched high and low for a solution here and am
>>>>>>>>>>>>> stumpped.
>>>>>>>>>>>>> I
>>>>>>>>>>>>> have
>>>>>>>>>>>>> not found anything. I am trying to accomplist the following.
>>>>>>>>>>>>> In my AD I have 3 OU - <Staff>, <Associates>, <Partners>
>>>>>>>>>>>>> I also have two different internet connections each with their
>>>>>>>>>>>>> own
>>>>>>>>>>>>> firewall, LAN IP, and range of WAN IPs.
>>>>>>>>>>>>> 192.192.192.77 Internet Connection #1
>>>>>>>>>>>>> 192.192.192.87 Internet Connection #2
>>>>>>>>>>>>> How can I, through AD, Logon Scripts, DNS, DHCP or whatever,
>>>>>>>>>>>>> set
>>>>>>>>>>>>> <STAFF>
>>>>>>>>>>>>> to ALWAYS use Internet Connection#2 as the default gateway,
>>>>>>>>>>>>> <Associates> and <Partners> to ALWAYS use Internet
>>>>>>>>>>>>> Connection#1 as
>>>>>>>>>>>>> the
>>>>>>>>>>>>> default gateway.
>>>>>>>>>>>>> Many thanks
>>>>>>>>>>>>>
>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>
>
>
Previous Topic:domain local group
Next Topic:Help with Adminpak on XP Pro/SP3
Goto Forum:
  


Current Time: Fri Oct 20 03:07:40 EDT 2017

Total time taken to generate the page: 0.08449 seconds
.:: Contact :: Home ::Sitemap::.

Powered by: FUDforum 3.0.0RC2.
Copyright ©2001-2009 FUDforum Bulletin Board Software