Wednesday, April 9, 2014

Assign IP while booting

Assign IP while Booting a PC/VM: Mostly useful for Windows Backup restore
netsh interface ipv4 show interfaces  //Will Show found Interfaces
netsh interface ipv4 set address name <ID from interface list> source=static address=<preferred IP address> gateway=<gateway address>  // General Command

For Windows 2008 r2
>wpeinit
>netsh interface ipv4 add address name="Local Area Connection" address=192.168.0.100 mask=255.255.255.0 gateway=192.168.1.200 1




Note: May not work in Windows Server 2008.

No comments: