Jump to content

Setting ip address from within a range in WINPE (no dhcp)


Recommended Posts

Hi friends,

First of all lemme explain what the problem is!

We have multiple DHCP servers in our network and they should run no matter what! So that becomes a problem because when wpeinit happens it looks for a DHCP server for an IP address and sometimes it listens to the wrong DHCP server and the Windows installation wouldnt start. Now is it possible to set an IP address within 172.16.x.x - 172.16.x.x all the time winpe boots and I also dont want WINPE to obtain IP information froma DHCP server from here on. I know we can set an ip address manually using netsh but doing that will cause IP address conflicts coz we are including this in our startnet.cmd script.

Please help!

Link to comment
Share on other sites


If just checking which dhcp answered and acting accordingly (release ip then renew if wrong dhcp) is enough you might create a script to do it. But in most cases it's the same dhcp which answer faster so you'll be stuck at the same point.

As you need to run multiple copies at the same time, using a random ip might work but might cause problems with your dhcp.

The right way to do it would be:

- first exclude from dhcp a specific range of ip addresses reserved for winpe.

- create a script to use it (first winpe will use first ip then other will try the first ip and see it's already in use and use the next one).

Link to comment
Share on other sites

Topics Merged

Hi friends, Can someone help me out with a Batch script which will help set an ip address randomly from the following:

IP Range: 172.16.x.x - 172.16.x.x

Subnet mask: 255.255.0.0

Please help!

Edited by Yzöwl
See red text.
Link to comment
Share on other sites

Are you sure that you are not wanting something in the range of 172.16.0.x with a Subnet Mask of 255.240.0.0? It was my understanding that the IP range 172.16.0.0 - 172.31.255.255 uses the default mask of 255.240.0.0.

Also as seems to be common around here lately, this is not a script request forum, please make an attempt at the script and provide full information in order to get help, advice or information.

Link to comment
Share on other sites

Well, my File server is 172.16.255.254/16. So I would want all the systems to be in the range 172.16.0.1 - 172.16.255.253 so that they are in the same subnet. And i dont understand onething, How is the default subnet mask 255.240.0.0? Can you please explain?!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...