Laptop IP address info needed

stu

Member
Join Date
Aug 2005
Location
England
Posts
773
Hi guys
I have a company laptop which we use a IP address to connect to a servers say 172.16.23.###
And I use a lot of different IP address on the plcs in the advanced setting in network lan 192.168.1.254,192.168.2.245, 192.168.3.245, 192.168.4.245, 172.16.23.245
I have an issue where I need to switch between the network how can I get around this is ? I have heard about bat files? But will that company into the advanced settings.
Any help will be appreciated thanks stu
 
I use these two:
fixed.bat:
Code:
@echo off
set /p name= IP address?
netsh interface ipv4 set address name="Local Area Connection" static %name% 255.255.255.0 0.0.0.0 1
pause
and
dynamic.bat
Code:
@echo off
netsh interface ipv4 set address "Local Area Connection" dhcp
pause
To add an additional IP you need this syntax
Code:
add address [name=]InterfaceName [addr=]IPAddress [mask=]SubnetMask [[gateway=] DefaultGateway [gwmetric=]GatewayMetric]
So maybe
Code:
@echo off
netsh interface ipv4 add address name="Local Area Connection" 172.16.23.245 255.255.0.0 0.0.0.0 2
pause

Change "Local Area Connection" to whatever your interface name is, or change your interface name to match the bat file

You need to run these .bat files as administrator.
 
I use NetSetMan http://www.netsetman.com/en/freeware
You get a certain number of tabs for free (6). If you pay for the Pro version you get unlimited tabs. No adds or anything like that for even the free version. It is a good tool for people that have to take their laptops to different locations with different IP's.
 
I use NetSetMan http://www.netsetman.com/en/freeware
You get a certain number of tabs for free (6). If you pay for the Pro version you get unlimited tabs. No adds or anything like that for even the free version. It is a good tool for people that have to take their laptops to different locations with different IP's.
+1.
I've been using it for the last 4 years or so.
Not a single issue.
 

Similar Topics

Does anyone use any software to easily change the IP address of your computer depending on what machines you are working. For example, you can go...
Replies
11
Views
4,494
IT has adoped a hardline policy - I cannot change the IP address on my laptop and they have locked it down - its set to get a dynamic IP address...
Replies
25
Views
8,840
Hi; I have Laptop Lenovo Thinkpad (W10) which don't have built-in Bluetooth. I have a PLC having Bluetooth communication device. I wanted to...
Replies
1
Views
83
Hi everyone, I have a task at work that I'm hoping someone will be able to help me find a solution for. Here is the background info: I have a...
Replies
10
Views
381
I have wasted a week trying to figure out how to connect an SLC5/03 with my laptop. I do not have and can not Buy the 1747 UIC and PC3 cables. I...
Replies
14
Views
2,480
Back
Top Bottom