Ever wondered if you could set all the networking parameters through command prompt ? Well there is a way;

netsh int ip  set address name=”Local Area Connection” source=dhcp

Above for Dynamic ip address assignment;

netsh int ip set address local static 10.0.0.9 255.0.0.0 10.0.0.1 1

Above for static ip and gateway

netsh int ip set dns “Local Area Connection” 10.0.0.1

Above for DNS

netsh int ip  add dns “Local Area Connection” 10.0.0.3 index=2

Above for secondary dns