Home > Tech in general > Windows tcp/ip thru CMD!

Windows tcp/ip thru CMD!

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

Categories: Tech in general Tags:
  1. Tamilamuthan V
    July 25th, 2006 at 17:16 | #1

    How to set ip address thru command mode

  2. Rajesh T Sivanandan
    July 25th, 2006 at 18:35 | #2

    That is exactly what is statement above :-)

    Go to command prompt. Start Menu->Run->CMD

    and then type the entry you want to make. If you want to set the ip address;

    netsh int ip set address local static 10.0.0.9 255.0.0.0 10.0.0.1 1

    Alternatively you can create a batch file and put this line in there. On double click, it will get executed.

    Cheers,
    Rajesh

  1. No trackbacks yet.