2.21.2013

Helpful Windows 7 NetSh Commands

Helpful Windows 7 NetSh Commands



Display all of the netsh interface names
netsh interface ipv4 show interface 

To rename the interface name Local Area Connection 5 to a new name of LAN1

netsh interface set interface name = "Local Area Connection 5" newname = "LAN1"
How to set a static IP address with the command line

netsh interface ipv4 set address "local area connection" static 0.0.0.0 mask=255.255.0.0 0.0.0.0
netsh interface ipv4 set dnsservers "local area connection" static 0.0.0.0

How to set the interface Local Area Connection to obtain via DHCP

netsh interface ipv4 set address name="local area connection" source=dhcp
netsh interface ipv4 set dnsservers name="local area connection" source=dhcp

How to show the interface routes
netsh interface ipv4 show route


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.