You know that command line interface is better thn graphical user interface.... so, configuring IP address n DNS through command line is much easier n faster thn configuring through GUI
The IP address of your computer can be set from the command promptby running the following commands at an administrative level prompt:
PC Tips by Anu is the name of the adapteryou want to modify.netsh interface ip set address name="PC Tips by Anu" static 123.123.123.123 255.255.255.0 123.123.123.1 1
In single NIC systems it is normally called LocalArea Connection.
123.123.123.123 is the IP address you want to set.
255.255.255.0 is the subnet mask.
123.123.123.1 is the gateway.
1 is the gateway metric. You can leave this as 1 for almost all cases.
If you want to enable DHCP you can run:
There are two commands for DNS since administrators typically configure a primary and secondary DNS server.netsh interface ip set address name="PC Tips by Anu" dhcp
For the primary DNS run:
For the secondary run:netsh interface ip set dns name="PC Tips by Anu" static 208.67.222.222
If you want to configure the computer to use DNS from DHCP run:netsh interface ip add dns name="PC Tips by Anu" 208.67.220.220 index=2
When you are finished with all of your IP and DNS changes run ipconfig -all to review the new settings.netsh interface ip set dnsservers name="PC Tips by Anu" source=dhcp
Thanks...
0 comments:
Post a Comment