4 ways to change the Subnet Mask in Windows 10

Subnet masks are used to split IP addresses into two different parts: one of them tells you the computer or device's address, while the other tells you the network which it belongs to. In other words, subnet masks are used to divide networks into subnetworks, so that any data transmitted over a network can reach its destination correctly. Are you wondering how to change the subnet mask on your Windows 10 PCs? Do you want to learn how to change the subnet mask for all the computers and devices in your local home network? Read on and find out:

Contents

  1. Read this first before changing the Subnet Mask in Windows 10
  2. 1. How to change the Subnet Mask in Windows 10, from the Settings app
  3. 2. How to change the Subnet Mask in Windows 10, from the Control Panel
  4. 3. How to change the Subnet Mask in Windows 10, using PowerShell
  5. 4. How to change the Subnet Mask from the router's interface, on a home network with DHCP
  6. Why did you want to change the subnet mask on your Windows 10 PC?

Read this first before changing the Subnet Mask in Windows 10

Before changing your Windows 10 PC's subnet mask, you should be familiar with what IP addresses and subnet masks are, and how to find what your Windows 10 computer IP address is.

On your Windows 10 computer or device, you can change the subnet mask only if you're using a static IP address. If that's the case for you, or if you want also to change your IP address and set a static one, read the instructions from the first three methods in this guide.

If you're using a dynamic IP address that's automatically generated by the DHCP service on your router, you can only change the subnet mask from your router's web interface. Read the last section of this guide for instructions on how to do that on a home router.

You should also note that to be able to change your subnet mask (and/or IP address) in Windows 10, you must log in using an administrator account.

1. How to change the Subnet Mask in Windows 10, from the Settings app

One of the easiest ways to change the subnet mask in Windows 10 is offered by the Settings app. Launch it and go to the Network & Internet category.

4 ways to change the Subnet Mask in Windows 10

The Network & Internet settings in Windows 10

In Network & Internet, select Wi-Fi or Ethernet on the left sidebar, depending on the type of the network adapter for which you want to change the subnet mask. Then, on the right side of the window, click or tap on the corresponding network connection.

4 ways to change the Subnet Mask in Windows 10

Opening the settings page of a network connection

On the network connection page, scroll down until you reach the IP settings section. Then, push the Edit button.

4 ways to change the Subnet Mask in Windows 10

Editing the IP settings of a network connection

This opens a dialog called "Edit IP settings" where you can change the IP address, subnet mask, gateway, and the DNS servers used by the selected network connection, both for the Internet Protocol Version 4 (TCP/IPv4) and the Internet Protocol Version 6 (TCP/IPv6). Scroll to the IPv4 or IPv6 section, depending on which of them you want to configure a new subnet mask.

The setting that determines the subnet mask is the Subnet prefix length, which controls the size of the subnet. For example, in the screenshot below, you can see that, for our network connection IPv4 protocol, we're using a "Subnet prefix length" of 24 (the number of 1 bits in the netmask), which means that the subnet mask is 255.255.255.0.

4 ways to change the Subnet Mask in Windows 10

The Subnet prefix length setting of a network connection

To change your subnet mask, you must change the value of the "Subnet prefix length" field. For example, because we wanted to have a subnet mask of 255.255.240.0, we had to set the prefix length to 20. If you need help on calculating the prefix length for a subnet mask, check this online IP Subnet Calculator.

4 ways to change the Subnet Mask in Windows 10

Saving the new subnet mask

Click or tap Save, and your subnet mask is immediately changed.

2. How to change the Subnet Mask in Windows 10, from the Control Panel

Windows 10 still includes the old Control Panel, which also lets you change your network adapter's subnet mask. If you prefer using the Control Panel for this task, open it and click or tap on the "View network status and task" link from under Network and Internet.

4 ways to change the Subnet Mask in Windows 10

View network status and tasks in Control Panel

In the Network and Sharing Center, click or tap on the network connection for which you want to change the subnet mask.

4 ways to change the Subnet Mask in Windows 10

Opening the details of a network connection

The previous action opens the Status window of that network connection. In it, push the Properties button.

4 ways to change the Subnet Mask in Windows 10

The Status window of a network connection

In the network connection's Properties window, select the select Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6), depending on the subnet mask that you want to change. If you want to change both, repeat the next steps for each of them.

4 ways to change the Subnet Mask in Windows 10

Opening the Properties window for IPv4

If you want to change the subnet mask used for the Internet Protocol Version 4 (TCP/IPv4), in its Properties window, enter the new subnet mask in the field bearing the same name.

For example, we wanted to change our subnet mask to 255.255.240.0, as you can see in the next screenshot.

4 ways to change the Subnet Mask in Windows 10

Changing the subnet mask of a network connection

Once you're done making all the changes, click or tap on OK and then close all the open windows. The new subnet mask that you've set is now up and running.

3. How to change the Subnet Mask in Windows 10, using PowerShell

If you prefer using a command-line environment, you can also change your subnet mask in Windows 10 using PowerShell. Open PowerShell as an admin and run the following command: Get-NetAdapter -physical. This command shows you all the network adapters installed on your Windows 10 computer. Identify the one for which you want to change the subnet mask and note its ifIndex value. That's the interface index number that you can use to select the network adapter in the next PowerShell command.

4 ways to change the Subnet Mask in Windows 10

Get-NetAdapter -physical

To change the subnet mask, now run this command: Set-NetIPAddress -InterfaceIndex [ifIndex value] -PrefixLength [subnet prefix length]. Replace [ifIndex value] with the interface index value that you've identified on the previous command, and replace [subnet prefix length] with the value of the new subnet prefix length that you want.

For example, we wanted to set a subnet mask of 255.255.255.0, so we ran this command: Set-NetIPAddress -InterfaceIndex 7 -PrefixLength 24.

4 ways to change the Subnet Mask in Windows 10

Set-NetIPAddress -InterfaceIndex [ifIndex value] -PrefixLength [subnet prefix length]

The new subnet mask is instantly applied, so you can now close PowerShell.

4. How to change the Subnet Mask from the router's interface, on a home network with DHCP

If you're using DHCP to automatically assign IP addresses to the computers and devices in your home, you can change the subnet mask for all of them from your router's administration interface. Use a web browser on your PC to access the router's web interface. To do that, you must go to the router's address and sign in with your user account and password. On most routers out there, that's 192.168.0.1 or 192.168.1.1, but it can differ. If you don't know the IP address of your router, check this guide: 5 ways to find the local IP address of your wireless router.

4 ways to change the Subnet Mask in Windows 10

Opening the web interface of a router

On the router's web admin interface, look for an advanced settings category called LAN. In it, go to the LAN IP settings section or tab, and change the value of the Subnet Mask with the one you want. Click or tap on Apply, Save, or OK. Once you do that, the new subnet mask is applied to all the computers and devices from your network that use automatic IP addresses. Note that your router might need to reboot to apply this change.

4 ways to change the Subnet Mask in Windows 10

Changing the subnet mask on a router

That was it!

Why did you want to change the subnet mask on your Windows 10 PC?

Now you know how to change the subnet mask on your Windows 10 PC or even on your entire home network. We're curious: why did you need that information? Was it for work or for your home? Also, if you have anything to add to this guide, do not hesitate to comment in the dedicated section below.

Sign up and earn $1000 a day ⋙

How to pin comments on TikTok

How to pin comments on TikTok

How to pin comments on TikTok, TikTok allows users to pin comments easily. Here's how to pin comments on TikTok videos.

Instructions for Organizing a Q&A session on Facebook

Instructions for Organizing a Q&A session on Facebook

Instructions for Organizing a Q&A session on Facebook, Recently, Facebook has launched the feature to create a Q&A session, when you post a question for everyone to answer.

Instructions for installing and recording videos with Likee

Instructions for installing and recording videos with Likee

Instructions for installing and recording videos with Likee, Likee is an application that supports extremely beautiful and impressive video recording, and is loved by many young people today. The following,

How to export the list of meeting participants in Zoom

How to export the list of meeting participants in Zoom

How to export the list of meeting participants in Zoom, How to take attendance on Zoom is not difficult, it even allows you to export the list of students participating in the class.

How to change font on Xiaomi

How to change font on Xiaomi

How to change font on Xiaomi, Want to create a new image for Xiaomi device? Just follow the instructions below to change the font style and size above

Instructions for creating a mirror image effect on Picsart

Instructions for creating a mirror image effect on Picsart

Instructions for creating a mirror image effect on Picsart, Picsart is an application where users only need to perform a few simple steps to transform the photo.

How to add new fonts to Microsoft Word

How to add new fonts to Microsoft Word

How to add new fonts to Microsoft Word, Can't find the font you want to use for documents in Microsoft Word? Don't worry, you can install new fonts for Word according to these steps

How to turn off the computer screen and still keep the computer running

How to turn off the computer screen and still keep the computer running

How to turn off the computer screen and still have the computer running, How to turn off the PC screen and still have the computer running on Win 10/11? Very simple. Here's how to turn off the computer screen

How to fix facebook error logging in 3/2024

How to fix facebook error logging in 3/2024

To fix the “An unexpected error occurred” issue when logging in to Facebook, you can try the following steps

Cant access Facebook, Messenger and Instagram, how to fix it immediately

Cant access Facebook, Messenger and Instagram, how to fix it immediately

Users reported that their Facebook, Messenger and Instagram accounts were suddenly logged out and could not be accessed again, both on the app and web version.

Instructions on how to take photos on Tiktok are extremely simple

Instructions on how to take photos on Tiktok are extremely simple

Instructions on how to take photos on Tiktok are extremely simple. Tiktok is a famous application for recording and creating short videos on social networks. However, this application also

How to find and get Instagram links

How to find and get Instagram links

How to find and get Instagram links, Instagram is one of the most popular and easy-to-use social networking platforms today. However, because it is designed specifically for mobile,

Instructions for locking the mouse cursor when playing games on BlueStacks

Instructions for locking the mouse cursor when playing games on BlueStacks

Instructions for locking the mouse cursor when playing games on BlueStacks, Instructions for turning on/off the mouse cursor lock feature when playing games in the BlueStacks App Player emulator.

Instructions for installing and using Faceapp using an emulator on PC

Instructions for installing and using Faceapp using an emulator on PC

Instructions for installing and using Faceapp using an emulator on PC, Simple and easy instructions on how to install and use the Faceapp face editing app using an emulator on PC

Instructions for creating a cover photo group on Facebook

Instructions for creating a cover photo group on Facebook

Instructions for creating a cover photo group on Facebook, Creating a cover photo group is a feature that helps users set Facebook cover photos with many different images (maximum of 6 photos).

Mastering Technical Analysis with the Stochastic Indicator on Bubinga

Mastering Technical Analysis with the Stochastic Indicator on Bubinga

Learn how to effectively use the Stochastic Indicator for technical analysis on Bubinga. Explore advanced techniques to enhance your trading strategies

Instructions for adding angel wings to photos using PicsArt

Instructions for adding angel wings to photos using PicsArt

Instructions for adding angel wings to photos using PicsArt, PicsArt is a photo editing application used by many people today. Today WebTech360 will introduce the article

How to turn off the Just accessed notification on Zalo

How to turn off the Just accessed notification on Zalo

How to turn off the Just accessed notification on Zalo. This article WebTech360 will guide you to turn off the Just accessed notification under your Zalo chat name.

Instructions for blocking and unblocking accounts on TikTok

Instructions for blocking and unblocking accounts on TikTok

Instructions for blocking and unblocking accounts on TikTok. Similar to other social networking applications, TikTok also allows users to block someone's account

How to write a long status with a colorful background on Facebook

How to write a long status with a colorful background on Facebook

How to write a long status with a colorful background on Facebook, Today, WebTech360 will introduce some steps to post a long status with a colorful background on Facebook,