For When You Can't Have The Real Thing
[ start | index | login ]
start > Windows > netsh

netsh

Created by dave. Last edited by dave, 9 years and 232 days ago. Viewed 3,983 times. #5
[diff] [history] [edit] [rdf]
labels
attachments
(2014-06-17)

Some plausible, contradictory examples:

# netsh interface ip show config
# netsh interface ip set address "Local Area Connection" dhcp
# netsh interface ip set address "Local Area Connection" static 192.168.1.1 255.255.255.0 192.168.1.254 1
# netsh interface ip set dns "Local Area Connection" dhcp
# netsh dnsclient add dnsserver "Local Area Connection" 192.168.137.202 1
# netsh dnsclient add dnsserver "Local Area Connection" 192.168.137.200 2

Arp: for some reason you might get the error The ARP entry addition failed: Access is denied when trying to add a static arp with the arp -s command. In Windows 2K8 you can get around this with netsh instead:

netsh interface ip add neighbors "Local Area Connection" 192.168.1.10 00-25-84-f6-90-2e store=persistent

Netsh has a bunch of other commands (>>Ref) but you have to be really careful which version of netsh you have, it seems to get more powerful the newer it is.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt