|
It seems it doesn't after the latest Windows 10 update.
|
|
|
|
|
Is it possible to run netsh setting files?
I was (win xp and 7) using a bat as menu interaction and then changing the eth settings executing the netsh files
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
GREAT IDEA Nelek!
I'll try it.
Thank you!
|
|
|
|
|
If it works, tell me... I will write a tiny tip for it
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hi again Nelek,
it is not difficult to use that set of commands, in fact a simple
netsh -c interface ip dump >> c:\folder\file.cfg
makes a complete backup of the current configuration. While a
netsh -f c:\folder\file.cfg
Recovers that configuration automatically.
Great and easy.
The only problem I can see is that in windows 10 it doesn't store the DNS configuration in the backup process so it can't save it for later recovery.
Not that super thing given why I want to use it, but... does that work in your scripts? And, if it works... what have you done?
Thank you!
|
|
|
|
|
I made a bat to bring a menu, where to select which configuration I wanted.
d - DHCP
1 - Configuration 1
2 - Configuration 2
...
x - Exit
Selected entry called a configuration_X.netsh file where the specific data for each connection / customer were saved and my eth got the desired settings in a couple of seconds.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
My objective would be to store the data in a file via backup (storing the dns too), and afterwards being able to reload those files (recovering the dns too).
Are your bat's working with the DNS settings too?
Thanks!
|
|
|
|
|
Mine... nope.
Only IP, Gateway and Subnet-Mask
I think it could work, but never needed it because I was only in "offline" networks for production, so no DNS at all.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Then I won't spend more time on it, it's a super-solution:
I can store the right IP addresses into the folder of each project.
Super simple.
Thank you for pointing me to this.
|
|
|
|
|
You are welcome
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I have had a look... I already had it configured in my files... but never used it. I think it worked on Win XP and maybe not in Win 7 that's why I commented them out (can't be 100% sure right now because I didn't need it)
pushd interface ip
set address name="LAN-Verbindung" source=static addr=192.168.0.219 mask=255.255.255.0
set address name="LAN-Verbindung" gateway=192.168.0.1 gwmetric=0
#set dns name="LAN-Verbindung" source=static addr=192.168.1.100 register=PRIMARY
#add dns name="LAN-Verbindung" addr=192.168.2.129 index=2
#set wins name="LAN-Verbindung" source=static addr=none
popd
LAN-Verbindung is the standard name of the controler on german windows
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Don't they use DHCP?
I have a DHCP server set up on my router at home, and they use it at work as well.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
In the industrial sector it is not very common to have the DHCP activated in the machines that are being programmed.
And in some cases, you need to connect to specific IP addresses forced by the manufacturer of the device (i.e. robot...).
Alas... I can't use this approach.
Thank you anyway Daniel.
|
|
|
|
|
Whenever I have faced this problem (since Windows XP/Server 2000) I have successfully used "DCHP Reservations" (other terminology may be used) to always return the same IP address (based on MAC address) to a device following a DHCP request. This gives the advantages of central management for all such devices combined with the flexibility to be able to connect a device at different locations with different IP settings e.g. IP, gateway, DNS etc. without configuration changes.
Windows AD certainly has always supported this approach. I would guess that Linux etc would be able to do as well.
If you are not in a managed domain then there are open source DHCP servers available that could be used to give the same result
|
|
|
|
|
Office network is mostly separated from the production network.
I have programmed some machines that were in a extra separated segment in a local LAN with only one device connected with another lan card to the otuside to exchange data with server.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I do lots of work on different jobsites and am constantly changing IP/network settings. Try NetSetMan, I think this is what you are looking for, and has been great to use over the years.
Found Here: Windows IP Freeware NetSetMan: Network Settings Manager (LAN & WiFi)[^]
It's freeware and has lots of options. I think it is only windows though, so if you have Linux/Mac, you are out of luck.
-jason
|
|
|
|
|
The solution pointed by Nelek (using netsh) is super interesting given it is completely free, it can be stored in each project...
Yours is one of the best options, but it's not free
|
|
|
|
|
We're one week into round 2 of the Summer Fun with Arduino Challenge and 15 people have found the secret code. It's simple, fun and you could win a cool Raspberry Pi 3 B+ Starter Kit and/ or Touchscreen Display from CanaKit.
As one of our contest winners says: "Arduino projects provide valuable motivation for software developers to try their hand at embedded programming." So if you haven't already, sign up for the contest today!
|
|
|
|
|
Message Removed
modified 13-Jul-18 11:21am.
|
|
|
|
|
Message Removed
modified 13-Jul-18 11:21am.
|
|
|
|
|
Are corrupt cops just undercover criminals?
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
That is very good.
Keep your friends close. Keep Kill your enemies closer.
The End
|
|
|
|
|
Police cease and desist, or take arrest from these 'B-side' puns!
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
They should be PUNished.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
I have driven in a few countries and all of them had a system where the steering wheel is on the right and we drive on the left. If anyone here has switched from one way to another, how tough it will be for me to switch to driving on the right side? I suppose on the turns I will have most amount of issues. In general, how many hours one needs to put in to get used to it.
I drive in India and if you have been here, you would know that following rules and thinking of safety is absolutely optional here.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|