Question

DHCP in a Multi-Subnet Environment

Asked by: mtstewdog

My WAN has multiple subnets configured as such:

10.0.1.X
10.0.2.X
10.0.3.X
etc...

Here's the scenario: I plug my laptop into a port on the first subnet and DHCP dutifully assigns it 10.0.1.101, just as the configured address pool would dictate.  Now I unplug and move to the next subnet and plug in.  Obviously, I now want DHCP to assign the laptop 10.0.2.101 so that it will function on this subnet.  However, DHCP continues to assign 10.0.1.101.  I must go into the DHCP snap-in, delete the lease (which is still there) and then run ipconfig /release and then ipconfig /renew in order to "force" the issue.

How can I get DHCP to do this automatically and transparently?  My domain controller is running Windows Server 2003.

THANKS!  Stew

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-02-10 at 03:42:50ID21309323
Tags

dhcp

,

subnet

,

multi

Topics

Miscellaneous Networking

,

Internet Protocols

,

Dynamic Host Configuration Protocol (DHCP)

Participating Experts
4
Points
125
Comments
22

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. DHCP - Release/Renew in Different Subnets not working …
    How can this be automated instead of having users run winipcfg to release/ renew when they visit another office. Our Configuration ------------------------- We have 3 subnets 192.168.1.x BDC (WINS/DHCP#1, PDC) here 192.168.2.x = BDC (DHCP#2) here 192.168.3.x = no servers T...
  2. DHCP and Subnetting
    Situation: Setup DHCP and Subnet current network How do i set up DHCP so that i can have 2 subnets ? this is what we have now. 10.1.1.x 255.255.255.0 we are growing past the use of this as it only allows for one network I would like to go to this 10.1.1.x 10.1.x.x 255...
  3. DHCP with Subnetting
    All IP address of my network is assigned by DHCP, and i would like to subnet it to reduce traffic, how should i do?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: SystmProgPosted on 2005-02-10 at 04:02:21ID: 13274278

Create a superscope and configure all scopes under this superscope.

 

by: SystmProgPosted on 2005-02-10 at 04:04:05ID: 13274284

If you don't create superscope DHCP will assign IP address from the first scope and then from the next scope if ip addresses reach its limit in the first scope. Superscope takes care of this. When a client request an IP address the Superscope will give the correct IP address from correct superscope.

Thankx

 

by: pseudocyberPosted on 2005-02-10 at 04:22:38ID: 13274397

Mtstewdog, what kind of network gear do you have?  Usually, all your VLANs have to be explicitly configured to pass DHCP requests from the local network over to where the DHCP server is.  Cisco does it with "ip helper".

 

by: stevenlewisPosted on 2005-02-10 at 05:10:18ID: 13274731

dhcp works with lease times
after 50% of the time has elapsed, the client will request a renewal, if no response, it will wait until 75% and try again, and if no response, cut the remaining time in half and so on

 

by: mtstewdogPosted on 2005-02-10 at 11:00:07ID: 13278689

Thanks for all the suggestions.  Due to the physical location of each subnet, it will take me some time to determine if I've made progress based on you suggestions.

Thanks again, Stew

 

by: SystmProgPosted on 2005-02-10 at 20:00:43ID: 13282957

Ok :-)
Thankx

 

by: PennGwynPosted on 2005-02-11 at 18:27:19ID: 13292034

> Mtstewdog, what kind of network gear do you have?  Usually, all your VLANs have to be explicitly configured to pass DHCP
> requests from the local network over to where the DHCP server is.  Cisco does it with "ip helper".

That's *one* way to do it.  Another is for the DHCP server to have a NIC on each VLAN, or a trunked port.  A third possibility is to have a separate DHCP server on each VLAN -- I don't think that could produce this problem.  I don't think we've been told which approach is used on his network.

I *assume* that after moving to a new VLAN, he does an "ipconfig /release" and "ipconfig /renew" to get a new lease.  But maybe he's not, and if so that's the problem.


 

by: mtstewdogPosted on 2005-02-16 at 04:15:39ID: 13322875

I thank you for all the great suggestions and tips, but alas, I've made no progress.  It has occurred to me, however, that perhaps some additional information on my behalf may help.

Each of my subnets are behind separate Cisco routers which themselves are separated by point-to-point T1 circuits.

When I move to a new location/subnet/LAN, not only must I perform an ip config /release and /renew, but I also must actually go into the Windows Server 2003 DHCP snap-in and delete the old lease from the previous location.  Now I can do the /release/renew and DHCP will assign a proper IP address.

Thanks again!

Stew

 

by: SystmProgPosted on 2005-02-16 at 04:22:53ID: 13322909

Wow!

 

by: mtstewdogPosted on 2005-02-16 at 04:35:01ID: 13322985

Wow?  What does that mean?

Perhaps I should have added that it is my desire to NOT have to have users bother with /release/renew.  I want them to seamlessly, transparently, move from one location to another and have DHCP handle the details.

My Cisco expert tells me that as a last resort, he can set up the routers to handle the necessary DHCP tasks.  But having DHCP in my domain controller is clearly better, more centralized way to go.

Stew

 

by: stevenlewisPosted on 2005-02-16 at 04:48:33ID: 13323076

How many machine move between subnets?
If not many, you could use user calsses for those machines, and set the lease time short on those (short lease times mean more chatter)
so they will have to renew a lot sooner than the machines that don't move
http://www.winnetmag.com/Articles/Print.cfm?Action=Print&ArticleID=7983
you may have to setup dual dhcp servers (seperate the scope of course)
and then set the mobile machines with a very short lease time

 

by: pseudocyberPosted on 2005-02-16 at 05:11:12ID: 13323305

So, if all the subnets are seperated by Cisco routers which are seperated by T1's ... it doesn't sound as if people are moving from one floor/subnet to another.  They probably move from one geographic location to another, right?  If so, they probably shut down their machine.  So, if they shut down their machine and go to another office and start it up, DHCP client would request an address and it would all work seamlessly.

With Cisco routers, use "ip helper" to handle the DHCP requests passing the layer 3 boundry.

 

by: pseudocyberPosted on 2005-04-25 at 04:05:44ID: 13857374

:)

 

by: pseudocyberPosted on 2005-04-25 at 08:54:12ID: 13859520

I don't think it should be delete/refund.  I think the points should be split.

 

by: mtstewdogPosted on 2005-04-26 at 04:49:35ID: 13865897

Why should the points be split?  Between who?  Gee whiz, I still have the problem.  Why should points be awarded in such a case?

Every suggestion offered is one I've been trying to avoid.  Sure, I could have a separate DHCP server at each location.  And sure, I could use my Cisco routers to do the DHCP.  All of these would solve the problem but does not address the orginal challenge presented.  I asked if my current DHCP server could be configured to handle the case of a machine (typically a laptop) moving from location to location without having to force the user to do an ipconfig /release and /renew and so far, nobody has offered anything that works -- or at least said, "Nope.  Can't be done".

Thanks for your consideration,

Stewart

 

by: pseudocyberPosted on 2005-04-26 at 05:20:18ID: 13866079

I'm sorry Stewart - I thought the question had been abandoned - as did the administrators here - since there was no reply to my last post.

I was saying are your locations geographically seperate - so the likelihood is that someone will visit two spots and start up their machine at a different spot?  If so, then if your routers hand off the DHCP request to the centralized server it should work as you desire.  When the request comes in from some subnet, it gets assigned an address out of the scope you define for that subnet.

 

by: mtstewdogPosted on 2005-04-26 at 08:49:55ID: 13868069

Okay, perhaps we can try this again...

Yes, I have five separate locations, specifically five Ace Hardware stores.  All five locations are connected by point-to-point T1 circuits.  There is a Cisco router at each location  Our main location has a pair of Citrix servers as well as a third server acting as a domain controller and DHCP server.

I have set up DHCP (Windows Server 2003 Standard Edition) with five separate scopes.  All five of these are pretty much set up identically, except that the third octet is different depending on the location as follows:

Store #1: 10.0.1.x
Store #2: 10.0.2.x
Store #3: 10.0.3.x
Store #4: 10.0.4.x
Store #5: 10.0.5.x

Allow me to further state exactly how DHCP is set up because perhaps that will provide a clue as to what may need to be done.

First, we have the address Pool.  For each location, it's 10.0.X.102 to 10.0.X.240 (addresses below 102 are used by some devices with static IP addresses)

Under Scope Options, again, they are all configured identically, with the exception that the router is specific to the scope.  In other words, for Scope number 1 (store number 1) the router is 10.0.1.254, for scope number two (store number 2), the router is 10.0.2.254, scope 3 - 10.0.3.254, scope 4 - 10.0.4.254 and scope 5 - 10.0.5.254.

All DHCP requests and leases are functioning properly, EXCEPT for that case when a laptop moves from one location to another.  In such a case, the laptop will be assigned it's original IP address.  For example, I plug my laptop into the LAN at store 1 and it's assigned 10.0.1.138.  Now I move to store 2 and plug in.  I will once again be assigned 10.0.1.138.  Of course, with that 3rd octet being a "1" while I'm at location 2 (10.0.2.xxx), it won't work!  Performing an ipconfig /release /renew will remedy the situation, but I want to avoid forcing my less techno-savvy users to do this sort of thing.

I have tried changing the lease time and it doesn't seem to make any difference.

Appreciate any ideas and would LOVE to find a solution and give up the points!

Thanks,

Stew

 

by: pseudocyberPosted on 2005-04-26 at 12:13:58ID: 13869862

I see said the blind man.

We have the same situation, except on floors instead of stores.  I think the best thing to do is to write a batch file which does a release & renew and make a short cut to it and put a cute icon on it and tell the users, "ok, when you go to a new store, remember to double click on the 'new store' icon."

Or make really short lease periods - so that the time it takes to drive from store 1 to store 2 the lease has expired so when they plug into store 2 they do a renewal.

Or, option three (which I think is overkill), would be to install a program like Netswitcher and configure different nets for different stores.  

 

by: mtstewdogPosted on 2005-04-26 at 17:38:42ID: 13872228

Dear pseudocyber,

You'd think that a very short lease (one that will obviously expire) would do the trick.  Alas, it does not.  It seems that the lease still appear, but is labeled as "expired".  Whatever, it is defnitely causing the newly located laptop to be assigned the original (and wrong for this location!) IP address.  Sure, I can go into DHCP and delete the lease, but again, that's the sort of thing that I wish to avoid.

My main point here is that I really thought (being the eternal optimist that I am) that DHCP in Windows Server 2003 SURELY could handle a simple challenge such as this.  SURELY!  After all, what I'm trying to accomplish certainly does not seem (at least not to me) to be such and uncommon scenario.  Quite the contrary, actually.

HOWEVER, I must admit, pseudocyber, that your suggestion to use ipconfig /release - ipconfig /renew, but by way of creating a desktop shortcut is simple and effective.  Funny how sometimes the simplest solutions are the most elusive.  I think that suggestions is the best I've heard so far.  While not what I was hoping for, it will get the job done.  Therefore, I feel it's proper for you to get the points.  WELL DONE!

Stew

 

by: pseudocyberPosted on 2005-04-27 at 06:02:46ID: 13875560

LOL. Thanks Stew.

>>DHCP in Windows Server 2003 SURELY could handle a simple challenge such as this

As a network engineer, Micorost Network Services, such as DHCP, DNS, etc. leave a lot to be desired, in my humble opinion.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...