Setting a Static IP Address in WinPE 2.0
search cancel

Setting a Static IP Address in WinPE 2.0

book

Article ID: 151761

calendar_today

Updated On:

Products

Ghost Solution Suite

Issue/Introduction

How can a static IP address be set in WinPE 2.0?

Resolution

Use the NETSH command from a command prompt. The syntax for this would be:

netsh int ip set address local static (ip_address) (subnet_address) (default_gateway)

For example:

netsh int ip set address local static 192.168.2.2 255.255.255.0 192.168.2.1

(IP address of 192.168.2.2 with a Subnet Mask of 255.255.255.0 and a Default Gateway of 192.168.2.1 would be set on the "Local Area Connection").

If there is more than one NIC then you can specify which connection you want by changing the local to Name="Local Area Connection2" which would work for the second connection. This can be confirmed by doing an IPCONFIG /ALL.


DNS can be set in a similar way:

netsh int ip dns local static (dns_entry) primary

For example:

net int ip set dns local static 192.168.2.2 primary




References
http://technet.microsoft.com/en-us/library/cc785383.aspx