cybercop23
IS-IT--Management
Hello all. I have several users that move from location to location. Each of the locations have their own private network. (10.01.xx.xx, 10.02.xx.xx.) My users do have laptops and I know the easiest way is to have a DHCP in each location or one centeral. But since I can't, and these users will have a hard time changing the IP manually, I was wondering if there is a way I can set the IP, mask and gateway via a batch file.
What I want to be able to do is pass the location nmber and a sequence number to the batch and have it set that system's IP, subnet and gateway.
Something like this:
logon2location.bat 001 5
-where 001 will be an area in the batch that sets the right IP, subnet and gateway - and 5 if the last sequence in the IP schema. This should result in:
IP: 10.1.23.5 / Subnet (always the same 255.255.255.0) and a gateway of 10.1.23.1.
Anyway, hope this is clear enought.
Thanks much,
Mike
What I want to be able to do is pass the location nmber and a sequence number to the batch and have it set that system's IP, subnet and gateway.
Something like this:
logon2location.bat 001 5
-where 001 will be an area in the batch that sets the right IP, subnet and gateway - and 5 if the last sequence in the IP schema. This should result in:
IP: 10.1.23.5 / Subnet (always the same 255.255.255.0) and a gateway of 10.1.23.1.
Anyway, hope this is clear enought.
Thanks much,
Mike