How to Change My Default Gateway: Step-by-Step Guide

If you are experiencing connectivity issues with your computer or network, changing your default gateway could be a potential solution. A default gateway is a network node that acts as an access point for other networks. In this guide, we will show you how to change your default gateway on Windows using the command prompt.

Step 1: Open Command Prompt as an Administrator

To open the command prompt, press the Windows key + R and type CMD in the Run dialog box. Then, right-click on the Command Prompt icon and select “Run as administrator” to open it.

Step 2: Check Your Current IP Settings

To view your current IP settings, type “ipconfig” or “ipconfig /all” in the command prompt. This will display details about all the network interfaces on your computer.

Step 3: Change Your IP and DNS Settings

To change your IP and DNS settings, type “net f h” and press Enter. Then, type “interface IP show config” to view the network interface details. Next, type “interface IP set address name equal” and enter the name of the network interface you want to set up.

After that, enter the new IP address, network mask, and gateway. If you want to manually set the DNS server, type “interface IP set DNS.” Finally, type “interface IP show config” to check if the IP address has been changed successfully.

Step 4: Set Dynamic IP Address

If you want to set a dynamic IP address, type “interface IP set address name equal DHCP” and press Enter. To set the DNS server, type “interface IP set DNS name equal DHCP” and press Enter.

In conclusion, changing your default gateway can help solve network issues. By following these simple steps, you can easily change your IP and DNS settings using the command prompt on Windows.