vishyc88 Posted April 26, 2011 Share Posted April 26, 2011 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 More sharing options...
allen2 Posted April 26, 2011 Share Posted April 26, 2011 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 More sharing options...
vishyc88 Posted April 26, 2011 Author Share Posted April 26, 2011 (edited) That seems like a good point but Im not the administrator of the other DHCP servers. Allen Edited April 26, 2011 by vishyc88 Link to comment Share on other sites More sharing options...
vishyc88 Posted April 26, 2011 Author Share Posted April 26, 2011 (edited) Topics MergedHi 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.xSubnet mask: 255.255.0.0Please help! Edited April 26, 2011 by Yzöwl See red text. Link to comment Share on other sites More sharing options...
Yzöwl Posted April 26, 2011 Share Posted April 26, 2011 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 More sharing options...
vishyc88 Posted April 26, 2011 Author Share Posted April 26, 2011 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 More sharing options...
allen2 Posted April 26, 2011 Share Posted April 26, 2011 The subnet explanation: http://en.wikipedia.org/wiki/Private_network. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now