Home  >  Article  >  2 Super Easy Ways to Change the Default Gateway on Windows 11

2 Super Easy Ways to Change the Default Gateway on Windows 11

WBOY
WBOYforward
2023-05-04 12:16:156962browse

Windows 11 has been out for a while, and Microsoft has introduced many changes since its launch. Many settings have now been moved from Control Panel to the Settings app, which can make it difficult to find general settings. If you wish to change the default gateway IP address on Windows 11, you can start here.

How to change the default gateway on Windows 11

You can change the default gateway in Windows 11 using the Settings app or using CMD. Follow any of the following sections to help you through the process, depending on your current needs and requirements. let's start.

Method 1: Using Settings

Press the Windows i keyboard to open the "Settings" app. Click on Network and Internet.

2 种超级简单的方法更改 Windows 11 上的默认网关

Click and select your current network type, Wi-Fi or Ethernet. We will choose Wi-Fi for this tutorial.

2 种超级简单的方法更改 Windows 11 上的默认网关

Click Hardware Properties.

2 种超级简单的方法更改 Windows 11 上的默认网关

Now click Edit next to IP assignment.

2 种超级简单的方法更改 Windows 11 上的默认网关

Click the drop-down menu at the top and select Manual.

2 种超级简单的方法更改 Windows 11 上的默认网关

Turn on the IPv4 switch.

2 种超级简单的方法更改 Windows 11 上的默认网关

Enter the following details as per your preference.

  • IP Address
  • Subnet Mask
  • Gateway

2 种超级简单的方法更改 Windows 11 上的默认网关

You can also set up custom DNS according to your preferences. If needed, scroll down and set the default IPv6 gateway similarly.

2 种超级简单的方法更改 Windows 11 上的默认网关

When finished, click Save.

2 种超级简单的方法更改 Windows 11 上的默认网关

That's it! You will now configure the default gateway on Windows 11.

Method 2: Using Command Prompt (CMD)

Press Windows R to start Run.

2 种超级简单的方法更改 Windows 11 上的默认网关

Type the following and press Ctrl Shift Enter.

cmd

2 种超级简单的方法更改 Windows 11 上的默认网关

Type the following command and press Enter. Replace IP, MASK, and DEFAULTGATEWAY with your preferred values.

netsh int ip set address "Local Area Connection" address=IP<strong> mask=</strong>MASK<strong> gateway=</strong>DEFAULTGATEWAY<strong></strong>

2 种超级简单的方法更改 Windows 11 上的默认网关

Your default gateway will now be configured in Windows 11. Use the following command to close CMD.

exit

2 种超级简单的方法更改 Windows 11 上的默认网关

This is how you can configure the default gateway using CMD.

The above is the detailed content of 2 Super Easy Ways to Change the Default Gateway on Windows 11. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete