Re: AD-DNS-DHCP



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@xxxxxxxxxxx> wrote in message
news:D8979CC2-E061-4918-8BE0-DB9458D97881@xxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxx> wrote in message
news:ulk75QvDKHA.4004@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxx> wrote in message
news:390A120F-78D2-4AA8-AD30-C047AD3609DE@xxxxxxxxxxxxxxxx

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@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C7E1C046-AAA3-47B3-80C7-957176F7DBD8@xxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxx> wrote in message
news:uAZpn9GDKHA.4792@xxxxxxxxxxxxxxxxxxxxxxx
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








.



Relevant Pages

  • Re: AD-DNS-DHCP
    ... but for now the logon script rout command is good enough. ... DHCP look at setting up User Classes. ... gateway address Options in the same scope but applied to different ... Internet Connection #1 ...
    (microsoft.public.windows.server.active_directory)
  • Re: AD-DNS-DHCP
    ... "Jorge Silva" wrote in message ... You could set a metric for the additional gateway, or you could run Route Delete 0.0.0.0 first, ... 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 I do NOT remove the gateway configurationfrom 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? ...
    (microsoft.public.windows.server.active_directory)
  • Re: AD-DNS-DHCP
    ... You could set a metric for the additional gateway, or you could run Route Delete 0.0.0.0 first, ... "Jorge Silva" wrote in message ... 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 I do NOT remove the gateway configurationfrom 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? ...
    (microsoft.public.windows.server.active_directory)
  • Re: Multiple routes on LAN now I cant get DHCP addresses
    ... gateway set to 10.10.8.5 I cannot get a DHCP address. ... I may need to create a static route on the .8.5 gateway as it doesn't seem to ... How does windows know what router to use to get a DHCP address? ... Networking, Internet, Routing, VPN Troubleshooting on ...
    (microsoft.public.windowsxp.network_web)
  • Re: AD-DNS-DHCP
    ... You could set a metric for the additional gateway, or you could run Route ... DHCP scope but add route command to my logon script, ...
    (microsoft.public.windows.server.active_directory)

Loading