Look into the "netsh" command. Specifically, the "netsh interface ip set" subcommands. Run netsh in dos. it brings up a interactive prompt. type "interface" now youre in the interface sublevel. then "ip" now your in the "interface ip" level. You now can use the "show" and "set" commands. and of course your new best friend, the "help" command.
Assume your network interface is called wired. The following can be used to configure various settings. They are for the most part self-explanatory:
netsh interface ip set address name="Wired" gateway=10.10.1.2 gwmetric=1
netsh interface ip set address wired static 10.10.1.127 255.255.0.0
netsh interface ip set dns wired static 10.10.1.87
netsh interface ip add dns wired 10.10.1.86
netsh interface ip set wins wired static 10.10.1.87
netsh interface ip add wins wired 10.10.1.6
Maybe it's a school question and maybe not.
I've been in this business for 20+ years, and I never knew that Windows had a command line addressing prompt. Linux/Unix, yes, but didn't know Windows had added one.
So I certainly learned something useful from this question.
Bob
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 4  Replies