If you want to set the IP address of your computer then it can be set from the command prompt by running the following commands at an administrative level.
“ netsh interface ip set address static 123.123.123.123 255.255.255.0 123.123.123.1 1”
123.123.123.123 means the IP address that you want to set.
255.255.255.0 means the subnet mask of your network.
123.123.123.1 declares the gateway of your connection.
1 is here for the gateway metric. You have to type this 1 almost all the cases.
But actually you have to modify the Local Area Connection adapter. Local Area Connection is normally called when it is used in the single NIC systems.
If you wish to enable the DHCP in your system then you have to type the following commands in the command prompt:
“ netsh interface ip set address dhcp”
You have to type two commands for DNS one is for primary and other is secondary DNS server.
For the primary DNS server you have to type and run the following:
“ netsh interface ip set dns static 208.67.222.222”
For the secondary DNS server you have to type and run the following command in your command prompt:
“ netsh interface ip add dns 208.67.220.220 index=2”
To configure your computer to use DNS form the DHCP run the following command in your command prompt:
“ netsh interface ip set dnsservers source=dhcp”
Well now your IP address to DNS changes has been finished successfully, so go the command prompt and type ipconfig /all and enjoy your changes, if any problem then you can type ipconfig –all.