
- WiFi & Networking
- How to Set a Static IP Ad... How to Set a Static IP Address for a Windows 10 PC

How to Set a Static IP Address for a Windows 10 PC
There are many reasons why you might want to set a static IP address for your Windows 10 PC. In most cases, your router will assign your computer a dynamic IP address, meaning it changes from time to time. This can make it hard to access your computer remotely, use certain programs, and let other users on your network send you files. Here’s how to set a static IP address on your Windows 10 PC.
- Click the magnifying glass icon in the bottom-left corner of your screen.

- Next, right-click on WiFi or Ethernet . This will depend on what kind of connection you are using. If your computer is hooked up to your router via an Ethernet cable, right-click that option. If your computer is connected via WiFi, right-click that option. You should be able to tell which adapter you are using by looking at the red Xs and green bars.

- Then click the radio button next to Use the following IP address .
- IP Address : Use the first 3 segments of your current IP address. So, if your computer’s IP address is currently 192.168.0.1, you can use any IP address that starts with 192.168.0.X, where X is any number between 1 and 254. Or, if your computer’s IP address is 10.0.0.1, you can use an IP address that starts with 10.0.0.X, where X is any number between 1 and 254. But make sure you don’t set your computer’s IP address to be the same as your router’s IP address.
- Subnet Mask : Usually, on a home network, the subnet mask is 255.255.255.0.
- Default Gateway : This is your router’s IP address, or the IP address of any other gateway, such as an access point

- Finally, click OK and then close the Properties window. Your changes will not go into effect until you close the WiFi/Ethernet Properties window.
Once you set your Windows 10 PC to a static IP address, check out our step-by-step guide on how to port forward , so you can remotely access your computer from anywhere in the world.

HelloTech editors choose the products and services we write about. When you buy through our links, we may earn a commission.
Was this article helpful?
Related articles.
- How to Set Up a Guest WiFi Network
- How to Find Your WiFi Password on an iPhone
- How to Find Your Router’s IP Address
- How to Change Your WiFi Name and Password
- How to Use Avatars in Zoom to Turn Yourself Into an Animal
- How to Find Your Compromised Passwords on Any Device
Need to chat with an expert?
Can't find the answer you're looking for? Don't worry, we're here to help.

Save $5 on any product or service!

Subscribe to our newsletter and receive a promo code to save $5 on your next product purchase or service.
Enter your email address below to receive your promo code and stay up to date on the latest tech news and updates.
- {X-HTML Replaced}
How to Set Up a Static IP Address
DHCP is fine, unless you're looking to perform advanced networking tasks. Here's how to set a Static IP address (or DHCP reservation) for any device on your network.

An IP address is a unique identifier for a specific device on your network. Your router assigns them to these devices using Dynamic Host Configuration Protocol (DHCP). As you connect new devices to the network, they will be assigned the next IP address in the pool, and if a device hasn't connected in a few days, its IP address will "expire" so it can be assigned to something else.
For everyday use, this is perfectly fine, and you will never even notice it happening in the background. But if you regularly SSH into your Raspberry Pi , turn your computer on from across the house with Wake-on-LAN , or perform other advanced networking tasks, DHCP can become an annoyance.
It's hard to remember which IP address is assigned to which device, and if they ever expire, you have to look it up all over again. This is where a static IP address comes in handy. Here's how to set them up.
What is a Static IP Address?
Instead of letting your router assign whatever IP address is free at any given time, you can assign specific IP addresses to the devices you access frequently. For example, I have my home server set to 192.168.1.10, my main desktop to 192.168.1.11, and so on—easy to remember, sequential, and unchanging.
You can assign these static IP addresses on the device itself—using, say, Windows' network settings on each computer—or you can do it at the router level. If you do it through the router, it will likely be called a DHCP reservation, though many people (and even some routers ) still refer to it as a "static IP address."
DHCP reservations allow you to easily set everything up in one place with all your computers left at their default settings. Your computer will ask for an IP address via DHCP, and your router will assign it the one you reserved, with your computer being none the wiser.
How to Set Up a DHCP Reservation
To set up a DHCP reservation, you need to know your IP address , which is easy enough to find out. You must then head to your router's configuration page —usually by typing its IP address in your browser's navigation bar—and log in. (For mesh Wi-Fi systems , you would use an app instead of a config page.)
The location is different for every config page, but you're looking for something called "DHCP reservations," "static IP addresses," or similar. On my Asus router, for instance, it's in the LAN settings category.
To assign a reservation, you need the MAC address of the device in question. This is a unique string of characters that identifies a particular network adapter, and you can usually find it in your router's list of connected devices . Make sure you're getting the MAC address for the correct network adapter—if you have both Ethernet and Wi-Fi on your computer, you have one MAC address for each.
On your router's config page, enter an easy-to-remember label for the device (like "Whitson's Desktop PC"), the MAC address, and your desired IP address. Save your changes, and repeat the process for any other IP addresses you want to reserve.
From then on, those devices should have your reserved IP addresses assigned to them, and you will never have to look them up again.
Like What You're Reading?
Sign up for Tips & Tricks newsletter for expert advice to get the most out of your technology.
This newsletter may contain advertising, deals, or affiliate links. Subscribing to a newsletter indicates your consent to our Terms of Use and Privacy Policy . You may unsubscribe from the newsletters at any time.
Your subscription has been confirmed. Keep an eye on your inbox!
Dig Deeper With Related Stories
Pcmag stories you’ll like, about whitson gordon, contributing writer.

Whitson Gordon is a writer, gamer, and tech nerd who has been building PCs for 10 years. He eats potato chips with chopsticks so he doesn't get grease on his mechanical keyboard.
Read Whitson's full bio
Read the latest from Whitson Gordon
- How to Switch Between Games With Quick Resume on Xbox Series X/S
- Don't Start Over: How to Transfer PS4 Games and Save Data to a PlayStation 5
- How to Turn on Your Computer From Across the House With Wake-on-LAN
- What Graphics Card Do I Have?
- Not Dead Yet: What to Do When Your Computer Won't Start
- More from Whitson Gordon
- Buying Guides
Complete Guides by How-To Geek
Our latest product roundups, reader favorites, more from how-to geek, latest geek news, latest reviews, across lifesavvy media.
Join 425,000 subscribers and get a daily digest of news, geek trivia, and our feature articles.
By submitting your email, you agree to the Terms of Use and Privacy Policy .
How to Set a Static IP Address in Ubuntu
Dave McKay first used computers when punched paper tape was in vogue, and he has been programming ever since. After over 30 years in the IT industry, he is now a full-time technology journalist. During his career, he has worked as a freelance programmer, manager of an international software development team, an IT services project manager, and, most recently, as a Data Protection Officer. His writing has been published by howtogeek.com, cloudsavvyit.com, itenterpriser.com, and opensource.com. Dave is a Linux evangelist and open source advocate. Read more...
Lowell is the founder and CEO of How-To Geek. He’s been running the show since creating the site back in 2006. Over the last decade, Lowell has personally written more than 1000 articles which have been viewed by over 250 million people. Prior to starting How-To Geek, Lowell spent 15 years working in IT doing consulting, cybersecurity, database management, and programming work. Read more...

Your home network relies on IP addresses to route data between devices, and sometimes on reconnecting to the network a device’s address can change. Here’s how to give an Ubuntu Linux computer a permanent IP address that survives reboots.
Dynamic and Static IP Addresses Setting a Static IP Address in Ubuntu Using the GNOME Desktop and Applications Connection Convenience
Dynamic and Static IP Addresses
Everything on your network home network, whether it’s using a wired connection or Wi-Fi, has an IP address . IP stands for Internet Protocol. An IP address is a sequence of four numbers separated by three dots. Each IP address that is unique within that network.
IP addresses act as numeric labels. Your router uses these labels to send data between the correct devices. Usually, your router assigns IP addresses. It knows which IP addresses are in use and which are free. When a new device connects to the network, it requests an IP address and the router allocates one of the unused IP addresses. This is called DHCP, or dynamic host configuration protocol .
When a device is restarted or powered off and on, it may receive its old IP address once more, or it might be allocated a new IP address. This is normal for DHCP and it doesn’t affect the normal running of your network. But if you have a server or some other computer that you need to be able to reach by its IP address, you’ll run into problems if its IP address doesn’t survive power downs or reboots.
Pinning a specific IP address to a computer is called allocating a static IP address . A static IP address, as its name suggests, isn’t dynamic and it doesn’t change even if the computer is power-cycled .
Setting a Static IP Address in Ubuntu
We’re demonstrating this technique on Ubuntu, but it ought to work on any Linux distribution. The nmcli network manager tool was released in 2004, so it should be present on just about any standard distribution.
Let’s take a look at the network connections that already exist on the computer. We’re using the connection command with the show argument.
This displays some information about each connection. We only have a single connection configured.
The output is wider than the terminal window. This is the information that we’re shown.
- Name : Our network connection is called “netplan-enp0s3.”
- UUID : The universally unique identifier Linux uses to reference this connection internally.
- Type : This is an ethernet connection.
- Device : This connection is using the “enp0s3” network interface. It’s the only network card in this computer.
We can use the ip command to discover the IP address this computer is using.
In the output we can see the “enp0s3” entry, and its current IP address, 192.168.86.117. The “/24” is a shorthand way of saying that this network uses a 255.255.255.0 subnet mask . Take a note of this number, we’ll need to use it later.
We need to choose the IP address we’re going to set as our static IP address. Obviously, you can’t use an IP address that is already in use by another device. One safe way to proceed is to use your current IP address. We know for certain that nothing else is using that IP address.
If we want to use a different IP address, try pinging it. We’re going to test whether IP address 192.168.86.128 is in use. If everything else on your network uses DHCP and you get no response to the ping command, it should be safe to use.
Even if another device had previously used that IP address, it’ll be given a new IP address when it next boots up. Nothing is responding to the ping requests. We’re clear to go ahead and configure 192.168.86.128 as our new static IP.
We also need to know the IP address of your default gateway , which will usually be your broadband router. We can find this using the ip command and the route option, which we can abbreviate to “r.”
The entry that starts with “default” is the route to the default gateway. Its IP address is 192.168.86.1. Now we can start to issue commands to set up our static IP address.
The first command is a long one.
Taken in small chunks, It’s not as bad as it looks. We’re using sudo . The nmcli arguments are:
- con : Short for “connection.”
- add : We’re going to add a connection.
- con-name “static-ip” : The name of our new connection will be “static-ip.”
- ifname enp0s3 : The connection will use network interface “enp0s3.”
- type ethernet : We’re creating an ethernet connection.
- ip4 192.168.86.128/24 : The IP address and subnet mask in classless inter-domain routing notation . This is where you need to use the number you took a note of earlier.
- gw4 192.168.86.1 : The IP address of the gateway we want this connection to use.
To make our connection a functioning connection, we need to provide a few more details. Our connection exists now, so we’re not adding anything, we’re modifying settings, so we use the mod argument. The setting we’re changing is the IPv4 DNS settings. 8.8.8.8 is the IP address of Google’s primary public DNS server , and 8.8.4.4 is Google’s fallback DNS server.
Note that there is a “v” in “ipv4.” In the previous command the syntax was “ip4” without a “v.” The “v” needs to be used when you’re modifying settings, but not when adding connections.
To make our IP address static, we need to change the method which the IP address obtains its value. The default is “auto” which is the setting for DHCP. We need to set it to “manual.”
And now we can start or “bring up” our new connection.
We didn’t get any error messages which is great. Lets use nmcli to look at our connections once more.
Here’s the output:
Our static-ip connection is active and using device “enp0s3.” The existing connection “netplan-enp0s3” is no longer associated with a physical network interface because we’ve pinched “enp0s3” from it.
Using the GNOME Desktop and Applications
Click the icons at the far-right end of the system bar to show the system menu, then click on the “Wired Connected” menu option. If you’re using a wireless connection, instead click the name of your Wi-Fi network.
The available connections are displayed. A dot indicates which is in use. Our new connection is the active connection. Click the “Wired Settings” or “Wi-Fi Settings” menu option.
The details of the active connection are displayed. We can see our new “static-ip” connection has the IP address, default gateway, and DNS servers that we set for it. You can swap between the available connections by clicking directly on their names.
Click the cog icon to enter the settings for the “static-ip” connection.
A dialog box opens. Click on the “IPv4” tab.
Because we set our new IP address to be static, the “Manual” radio button is selected. You could change this back to DHCP by selecting the “Automatic (DHCP)” radio button, and clicking the green “Apply” button.
To create a new connection using the “Settings” application, click the “ + ” icon on the “Networks” page, above the list of wired connections.
A dialog appears. We need to provide a name for this connection.
We’re calling our new connection “static-2.” Click the “IPv4” tab.
Select the “Manual” radio button, and complete the “Address”, “Netmask”, and “Gateway” fields. Also complete the DNS field, and then click the green “Apply” button. Note the comma between the DNS entries.
Our new connection is listed in the “Wired” connections pane.
RELATED: How to Assign a Static IP Address in Windows 10 or 11
Connection Convenience
Using the nmcli command or the GNOME desktop and apps, you can hop between network connections very easily and very quickly.
It’s more convenient to have a selection of connection profiles and move between them as you need to, rather than to have one that you keep editing. If something goes horribly wrong with the connection you’re editing or adding, you can always fall back on one of the existing connections.
RELATED: How to Use bmon to Monitor Network Bandwidth on Linux
- › How to Get Your Public IP in a Linux Bash Script
- › How to Assign a Static IP Address in Windows 10 or 11
- › How to Find Your IP Address on a Windows 10 PC
- › How to Change Your IP Address
- › How to Find Your IP Address on Windows 11
- › How to Update DirectX on Windows 11
- › How to Watch UFC 285 Jones vs. Gane Live Online
- › 10 Reasons DVD Movies Are Still Worth Collecting
How to configure a static IP on Windows 10 or 11
Do you need to switch from a dynamic to a static IP address configuration on Windows 11 or 10? Here's how.

- Windows 11 static IP
- Windows 10 static IP
On Windows, the router's Dynamic Host Configuration Protocol (DHCP) server is (usually) responsible for assigning a dynamic Transmission Control Protocol/Internet Protocol (TCP/IP) configuration to every device in the network, including to your computer running Windows 11 or Windows 10.
Although a dynamic IP address is the recommended configuration for most situations, you may need to change to a static IP address if you're thinking about setting up a printer or file sharing, or you have to configure port forwarding on the router to your computer.
The reason is that a dynamic network configuration can change at any time after the lease from the DHCP expires and if the address changes, network resources you may have configured will stop working. Setting a static IP address will always stay the same on the computer, allowing a more reliable experience sharing resources in the network or forwarding ports.
Whatever the reason, on Windows 10 and 11, you have many ways to configure a static TCP/IP address, including using the Settings app and Command Prompt.
This guide will walk you through the different ways to configure a static network configuration on Windows 11 and 10.
How to set a static TCP/IP network configuration on Windows 11
On Windows 11, you can change your computer's dynamic IP configuration to static in at least two ways through the Settings app or commands.
Configure IP from Settings app
To assign a permanent TCP/IP configuration on Windows 11, use these steps:
- Open Settings .
- Click on Network & internet .
- (Optional) Click on Advanced network settings .
- Under the "More settings" section, click on Hardware and connection properties.
- Note the current IPv4 , Subnet mask , Default Gateway , and DNS server addresses to determine the new configuration, as it has to be in the same network scope.
- Click the Ethernet or Wi-Fi page on the right side from the "Network & internet." page.
- Quick note: If you select the Wi-Fi page, you need to click on the connection properties to access the network settings.
- Click on the Edit button for the "IP assignment" setting.
- Select the Manual option from the drop-down menu.
- Turn on the IPv4 toggle switch.
- Confirm the IP address for the computer – for example, 10.1.4.90.
- Confirm the subnet mask for the configuration – for example, 255.255.255.0.
- Confirm the default gateway address (usually your router's IP) – for example, 10.1.4.1.
- Confirm the preferred DNS address – for example, 10.1.4.1.
- Quick note: In a home network, you may also be able to use the router's IP address for the DNS configuration. You can also use third-party DNS services like Google Public DNS, Cloudflare, Cisco's OpenDNS, and others.
- (Optional) Select the "On (automatic template)" option for the "DNS over HTTPS" setting and leave the "Fallback to plaintext" option disabled unless you want to encrypted as well as unencrypted traffic or you're troubleshooting connectivity.
- Quick note: DNS over HTTPS (DoH) is a feature that encrypts the DNS queries over the HTTPS protocol to improve security and privacy on the internet. You only want to enable this feature if the DNS server supports this feature.
- Confirm the alternate DNS address (if applicable).
- (Optional) Select the "On (automatic template)" option for the "DNS over HTTPS" setting and leave the "Fallback to plaintext" option disabled.
- Click the Save button.
Once you complete the steps, the computer will start using the static network configuration. If everything has been configured correctly, you should be able to open the web browser to access the internet.
If you entered an address (such as the DNS address) and then changed it, you probably won't be able to save the settings. If this is the case, cancel the configuration, start over, enter the correct configuration, and then try to save the settings.
Configure IP from Command Prompt
To set a static TCP/IP configuration on Windows 11, use these steps:
- Open Start .
- Search for Command Prompt , right-click the top result, and select the Run as administrator option.
- Type the following command to see your current networking configuration and press Enter : ipconfig /all
- Confirm the name of the adapter and the networking configuration, including the IPv4 , Subnet mask , Default Gateway , and DNS Servers .
- Type the following command to configure a static TCP/IP address and press Enter : netsh interface ip set address name= "ADAPTER-NAME" static IP-ADDRESS SUBNET-ADDRESS DEFAULT-GATEWAY-ADDRESS
In the above command, replace ADAPTER-NAME with the name of your network adapter. Change IP-ADDRESS SUBNET-ADDRESS DEFAULT-GATEWAY-ADDRESS with the device IP address, subnet mask, and default gateway addresses you want. For example, this command sets the 10.1.4.90, 255.255.255.0, 10.1.4.1 configuration: netsh interface ip set address name="Ethernet 10Gb" static 10.1.4.90 255.255.255.0 10.1.4.1
- Type the following command to set a DNS server address and press Enter : netsh interface ip set dns name="ADAPTER-NAME" static DNS-ADDRESS
In the command, change ADAPTER-NAME with your adapter's name and DNS-ADDRESS with the DNS server address of the network. For example, this command sets the local router as the DNS server: netsh interface ip set dns name="Ethernet 10Gb" static 10.1.4.1
- Type the following command to set an alternate DNS server address and press Enter : netsh interface ip add dns name="ADAPTER-NAME" DNS-ADDRESS index=2
In the command, change ADAPTER-NAME with the adapter's name and DNS-ADDRESS with an alternate DNS server address. For example, netsh interface ip add dns name="Ethernet 10Gb" 1.1.1.1 index=2
After you complete the steps, the commands will set a static network configuration on Windows 11.
How to set a static TCP/IP network configuration on Windows 10
On Windows 10, you can also use the Settings app and Command Prompt to set up a static IP network configuration.
To assign a permanent TCP/IP configuration on Windows 10, use these steps:
- Click on Ethernet or Wi-Fi .
- Click on the active connection on the right side.
- Click the Edit button for the "IP assignment" setting.
- Select the Manual option.
- Confirm the subnet prefix length (subnet mask) for the configuration – for example, 24 to specify the 255.255.255.0 subnet mask.
- Quick tip: It's important to use the number that represents the network instead of the subnet mask. Otherwise, the configuration won't save. If you don't know the subnet prefix length for your subnet mask, you can use any online subnet calculator (opens in new tab) to find out.
Once you complete the steps, Windows 10 will start using the static IP configuration. If you lose network connectivity, restart the computer to regain access to the local network and internet.
To change from dynamic to static IP address with commands on Windows 10, use these steps:
In the command, change ADAPTER-NAME with your adapter's name and DNS-ADDRESS with the DNS server address of the network. For example, this command sets the local router as the DNS server: netsh interface ip set dns name=" Ethernet 10Gb" static 10.1.4.1
In the command, change ADAPTER-NAME with the adapter's name and DNS-ADDRESS with an alternate DNS server address. For example, netsh interface ip add dns name="Ethernet0" 1.1.1.1 index=2
After you complete the steps, the network configuration will switch from dynamic to static on Windows 10.
Windows Central Newsletter
Get the best of Windows Central in your inbox, every day!
Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.
Thank you for signing up to Windows Central. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.
- 2 Grab two of our favorite controllers in this 20% GameSir sale
- 3 Best Wo Long: Fallen Dynasty builds — Early game, for beginners, and more
- 4 The new Dell XPS 15 and XPS 17 are the best gaming laptops you never thought about
- 5 Microsoft Audio Dock review: An excellent all-in-one solution for workspaces
How to set static IP address on Windows 10
You can set a static IP address manually on Windows 10 in several ways, and in this guide, you'll learn using Command Prompt, PowerShell, Control Panel, and Settings.
- To set a static IP address on Windows 10, open Settings > Network & Internet > Wi-Fi .
- Then click the connection, click on “Edit,” select “Manual,” turn on “IPv4,” and set the static IP address.
- Alternatively, you can configure a static IP address from Command Prompt, PowerShell, and Control Panel.
On Windows 10, setting a static IP address to a computer is a configuration you may need to set up in many scenarios. For example, if you plan to share files , a printer on a local network , or configure port forwarding.
If you do not assign a static IP address, services or a port forwarding configuration may eventually stop working. The reason is that, by default, connected devices use dynamic IP addresses assigned by the Dynamic Host Configuration Protocol (DHCP) server (usually the router), which can change anytime, as soon as you restart the machine, or after the dynamically assigned configuration lease expires.
In this guide , you will learn the steps to set a static IP (version 4) address to a Windows 10 device when providing a service on the network or simply configuring port forwarding to your device on the router.
Set static IP address on Windows 10
Set static ip address on windows 10 from control panel.
- Set static IP address on Windows 10 from Command Prompt
- Set static IP address on Windows 10 from PowerShell
To assign a static IP address on Windows 10, use these steps:
Open Settings on Windows 10.
Click on Network & Internet .
Click on “Wi-Fi” or “Ethernet.”
Click on the current network connection.

Under the “IP settings” section, click the Edit button.

Using the drop-down menu, select the Manual option.
Turn on the “IPv4” toggle switch.

Set a static IP address to use by the Windows 10 computer.
Specify a “Subnet prefix length” (subnet mask). If the subnet mask is 255.255.255.0 , then the subnet prefix length in bits is 24 .
Specify a “Default Gateway” address.
Specify a “Preferred DNS” address.
Specify an “Alternate DNS address” (if applicable).
Click the Save button.

After you complete the steps, you can test your settings using your web browser to open a website.
To assign a static IP from Control Panel on Windows 10, use these steps:
Open Control Panel .
Click on Network and Internet .
Click on Network and Sharing Center .
Click the Change adapter settings option on the left navigation pane.

Right-click the network adapter and select the Properties option.
Select the “Internet Protocol Version 4 (TCP/IPv4)” option.
Click the Properties button.

Select the Use the following IP address option.
Assign the static IP address – for example, 10.1.2.220 .
Specify a Subnet mask . Typically, on a home network, the subnet mask is 255.255.255.0 .
Specify a Default gateway . (Usually, your router’s IP address. For example, 10.1.2.1 .)
Under the “Use the following DNS server addresses set Preferred DNS server” section, set the Preferred DNS server address , usually your router’s IP address or server IP address providing DNS resolutions (for example, 10.1.2.1 ).
(Optional) Specify an Alternative DNS server , which the computer will use if it cannot reach the preferred DNS server.
Click the OK button.

Click the Close button again.
Once you complete the steps, you can open your web browser and load a website to see if the configuration works.
Set static IP address on Windows 10 from Command Prompt
To set a static IP address on Windows 10 from Command Prompt, use these steps:
Open Start on Windows 10.
Search for Command Prompt , right-click the top result, and select the Run as administrator option.
Type the following command to see your current networking configuration and press Enter :
Under the network adapter, note the name of the adapter as well as the following information in these fields:
- Subnet mask
- Default Gateway
- DNS Servers

Type the following command to assign a static IP address on Windows 10 and press Enter :
In the above command, replace Ethernet0 with the name of your network adapter. Change 10.1.4.220 255.255.255.0 10.1.4.1 with the device IP address, subnet mask, and default gateway address corresponding to your network configuration.
Type the following command to set a DNS server address and press Enter :
In the command, make sure to change Ethernet0 with your adapter’s name and 10.1.4.1 with the DNS server address of the network.
Type the following command to set an alternate DNS server address and press Enter :
In the command, replace Ethernet0 with your adapter’s name and 8.8.8.8 with an alternate DNS server address.

After you complete the steps, you can test the new configuration using the ping command (for example ping google.com ) to see if the internet is working. Alternatively, you can open a website to see if the configuration works.
Microsoft is in the process of retiring netsh from Windows 10. As a result, you should start using the “NetTCPIP” networking module available in PowerShell instead.
Set static IP address on Windows 10 from PowerShell
Windows 10 also includes the PowerShell command line platform that allows you to use the “NetTCPIP” module to manage networking settings, including the ability to change the IP address settings of your computer.
To set a static IP address with PowerShell, use these steps:
Open Start .
Search for PowerShell , right-click the result, and select the Run as administrator option.
Type the following command to view your current network configuration and press Enter :
After running the command, note the following information:
- InterfaceIndex
- IPv4Address
- IPv4DefaultGateway

Type the following command to set a static IP address and press Enter :

In the command, replace the InterfaceIndex number (5) with the corresponding number of your adapter. Change IPAddress with the static IP address you want to assign to your device. Change PrefixLength (subnet mask) with the correct bit number if necessary. Typically on a home network, the setting is 24 . Also, change the DefaultGateway option with the default gateway address of the network.
Type the following command to assign a DNS server address and press Enter :

If you need to set a secondary DNS server address, use a comma to use the same command with another address. For example:
In the command, replace the InterfaceIndex number (5) with your network adapter’s corresponding number. Also, change ServerAddresses with the DNS IP address.
After you complete the steps, you can test the new configuration by opening your web browser and navigating a website.
Whatever method you use, assigning an IP address within the network range and outside of the DHCP server scope is recommended to allow proper connectivity and avoid address conflicts. If multiple devices share the same address, this will cause a networking conflict, preventing connection to the internet.
- How to view all user accounts on Windows 11
- How to set up VPN server on Windows 10
We hate spam as much as you! Unsubscribe any time Powered by follow.it ( Privacy ), our Privacy .
Learn Ubuntu

Set static IP in Ubuntu using Terminal
Table of Contents
Normally, the router's DHCP server handles assigning the IP address to every device on the network, including your computer.
The DHCP server may also give you a new IP address occasionally. This could cause a problem if you have a home lab or server setup that works on a fixed IP address.
You need to set a static IP address on your Ubuntu system to avoid problems.
Step 1: Identify the correct network interface
The first step is always to know the name of your network interface.
"But why?" you might ask. That is because since Ubuntu 20.04, the network interfaces are named using predictable network interface names . This means your one and only ethernet interface will not be named 'eth0'.
Ubuntu Server and Ubuntu Desktop use different renderers for 'netplan', they are 'systemd-networkd' and 'NetworkManager', respectively. So let's go over their differences.
Ubuntu Server
To see available network interfaces on Ubuntu Server, run the following command:
Doing so will show a similar result:
The output enumerates network interfaces with numbers.
From this, I can see that the ethernet interface is 'enp1s0'.
Ubuntu Desktop
The advantage (at least in my opinion) of having Ubuntu Desktop is having NetworkManager as the renderer for netplan .
It has a pretty CLI output :)
Run the following command to view the available network interfaces:
That will give you the device name, type, state and connection status.
Here is what it looks like on my computer:
This is more readable at first glance. I can make out that my ethernet interface is named 'enp1s0'.

Step 2: See current IP address
Now that you know which interface needs to be addressed, let us edit a file .
Before I change my IP address/set a static one, let us first see what my current IP address is .
Nice! But let's change it to '192.168.122.128' for demonstration purposes.
Step 3: See the gateway
A gateway is a device that connects different networks (basically what your all-in-one router is). To know the address of your gateway, run the following command:
The gateway address will be on the line that begins with "default via".
Below is the output of running the ip command on my computer:
On the line that starts with "default via", I can see that my gateway address '192.168.122.1'
Make a note of your gateway address.
Step 4: Set static IP address
Now that you have detail like interface name and gateway address, it is time to edit a config file.
Step 4-A: Disable cloud-init if present
The easiest way to know if cloud-init is present or not is to check if there is a package with that name.
Run the following command to check:
If you get an outupt, you have 'cloud-init' installed.
Now, to disable could-init, create a new file inside the /etc/cloud/cloud.cfg.d directory. The name does not matter, so I will call it '99-disable-cloud-init.cfg'.
Add the following line to it:
Please reboot your Ubuntu system now so that cloud-init does not interfere when we set our static IP address in the next step. :)
Back to Step 4
Once the 'cloud-init' related configuration is complete, we must now edit the netplan configuration to add our static IP address.
Go to the /etc/netplan directory. It is better if there is one file (easier to know which one to edit), but in some cases, there might also be more than one file with the extension '.yml' or '.yaml'.
When in doubt, grep for the name of your network interface. Use the following command if you are not comfortable with grep:
Since the name of network interface for my ethernet is 'enp1s0', I will run the following command:
running this command shows that the file I am looking for is '00-installer-config.yaml'. So let us take a look at it.
You might have noticed a line that says 'ethernet' and our network interface name under that. Under this is where we configure our 'enp1s0' network interface.
Since we do not want DHCP assigned IP address, let us change that field from true to no .
Add a field called addresses . Write the IP address you wish to assign your computer along with the network prefix. So I will write 192.168.122.128/24 in the addresses field.
Finally, we also need to specify DNS nameservers. For that, create a new field called nameservers and under that, create a field called addresses which contains the IP address for your DNS servers . I used Cloudflare's DNS servers but you can use whatever you want.
This is what my '00-installer-config.yaml' file looks like after editing it to my liking.
To apply the settings, run the following command:
This will take only a few seconds, and the IP address will be updated once it is done.
You can check the IP address using the hostname -I command.
Perfect! The IP address has now changed successfully.
I know that it feels complicated but this is the proper procedure when you are trying to assign static IP via the command line in Ubuntu.
Let me know if you are stuck at some point or encounter any technical issues.
You might also like

List Groups in Ubuntu Command Line

Absolute Basics of Using iptables on Ubuntu

Install Wireshark on Ubuntu
The Accidental Developer
What if Gregor Samsa awoke a computer programmer?
Setting a static IP, default gateway, and nameservers via PowerShell
I needed to set up a number of Windows server VMs (Windows 2012R2) as a test bed for a vulnerability scanning suite. This would have been fast & easy using AWS EC2 instances (or Azure!), but I decided to use my internal VMWare infrastructure instead.
For CentOS VMs I would typically use one of three things to configure the static IP, gateway, and default nameservers:
- nmtui (a text user interface to the network manager)
- the interactive installer
- a custom kickstart file
How to accomplish the same thing on Windows 2012R2? In particular, I was looking for Powershell commands, since I would be connecting over a web-based console.
The first command I found was Set-NetIPAddress . I combined that with a blog post on Microsoft’s TechNet site with a promising title: One-liner PowerShell to set IP Address, DNS Servers, and Default Gateway :
Counter-intuitive, but you can’t use Set-NetIPAddress for setting an IP address. As the Set-NetIPAddress command documentation states:
The Set-NetIPAddress cmdlet modifies IP address configuration properties of an existing IP address. To create an IPv4 address or IPv6 address, use the New-NetIPAddress cmdlet.
Unfortunately, that led me to believe that DefaultGateway was a bad parameter in general. That’s not the case, and it works just fine with the New-NetIPAddress cmdlet as demonstrated in the TechNet article (and below):
The Microsoft documentation for the New-NetIPAddress cmdlet further describes the -DefaultGateway option and other options.
Of course, I hadn’t figured that out at the time, and so I had to find a different way to set the default gateway. Change Default Gateway with Powershell was a helpful article, although overly convoluted for my needs. I didn’t need a function to wrap around a couple cmdlets. Here’s what I ended up doing:
All of the pings succeeded. It worked!
As I learned later, I could have accomplished the same with just the following 2 commands:
You might wonder why I used InterfaceIndex 12 in the prior example. I used Powershell’s tab completion and for some reason it used -InterfaceIndex instead of -InterfaceAlias . Honestly, I’m not sure why and I’m not sure if InterfaceIndex 12 always corresponds to InterfaceAlias Ethernet0 or not. InterfaceAlias Ethernet0 is certainly more human-readable and is what I used when updating the IP address on subsequent cloned VMs:
- Add new IP address on same interface
- Remove old IP address on same interface
- (Reconnect to RDP [Remote Desktop Protocol] on the new address)
- Default gateway/routes unchanged, since both IP addresses were in the same subnet
Speaking of RDP, one additional task remained: Could I remote into the host? No, at least, not yet. The error message on Microsoft Remote Desktop (on Mac OSX):
Another online tutorial to the rescue: Enable Remote Desktop on Windows Server 2012 R2 via PowerShell . I was glad to find it, since the registry key step below was very foreign to my Linux mindset:
One last thing I had to do in my Microsoft Remote Desktop client: specify the port:
(Even though 3389 is the default RDP port, for some reason it needed that.)
3 thoughts on “Setting a static IP, default gateway, and nameservers via PowerShell”
Thanks for the article. I’m wrestling with this problem. Seems that no matter what I try, if either the IP address or default gateway is “remembered” then Powershell is not happy. My laptop is used on different networks and just wanted to be able to quickly set parameters when I move my laptop between each network. Can you run your commands twice?
Remote-NetRoute -InterfaceIndex 12
I think it should be
Remove-NetRoute -InterfaceIndex 12
Get-DnsClientServerAddress -Interface 12 Set-DnsClientServerAddress -Interface 12 -ServerAddresses @(“8.8.8.8″,”8.8.4.4”)
Should be -InterfaceIndex 12
With those it works great, thanks for an excellent HowTo 🙂
Leave a Reply
Your email address will not be published. Required fields are marked *
How Do I Set a Static IP Address on Raspberry Pi?
If you're using your Raspberry Pi as a media or game server, setting a static IP address will make things far easier.
If you’re using your Raspberry Pi as a home server or often need to access it remotely from another device, setting a static IP address for it is a very good idea. This means you’ll be able to find it at the same Raspberry Pi fixed IP address every time, rather than a new address being set dynamically whenever it is rebooted. This is also useful to avoid confusion when you have multiple Raspberry Pi devices connected to your network.
Fortunately, once you know how, it's a fairly simple and quick process to set a Raspberry Pi static IP address. We’ll show you how to change the IP address in Raspberry Pi OS to make it permanent.
What Is an IP Address?
An Internet Protocol (IP) address is used to uniquely identify each device on a computer network, or the network itself on the internet – more on that later. The IP address is normally written in ‘dot-decimal’ notation: four decimal numbers, each ranging from 0 to 255, separated by dots. An example is 192.168.1.107 .
By default in Raspberry Pi OS, which is a Linux-based operating system, your Raspberry Pi’s IP address is reconfigured automatically each time you reboot it, so it may well change. Naturally, this is not ideal when you need a reliable address at which to connect to the Raspberry Pi from another device, such as when using it as a server. So it’s better to set a static IP address on Raspberry Pi.
Private vs. Public IP
A public IP address is used to identify your local network on the wider internet. This typically changes every time your router connects to the internet, although you may be able to make it static depending on your internet service provider.
You can find the public IP address on a Linux system such as Raspberry Pi OS by entering a special Terminal command, or simply by doing a web search for ‘What's my IP?’. It is only required if you intend to connect to a device from outside your network, which we won’t cover here.
Instead, we are looking at the private IP addresses used to identify each device on your own local network. While it may be possible to reserve a certain address for your Raspberry Pi in your wireless router’s settings for the same purpose, here we’ll be showing you how to set a static IP from the Raspberry Pi itself.
1. DHCP Configuration
Raspberry Pi OS (formerly know as Raspbian) uses DHCP (Dynamic Host Configuration Protocol) to assign an IP address to the Raspberry Pi automatically whenever it is rebooted. You can find out more in our guide to DHCP .
To change Raspberry Pi OS's behavior so that it uses the same static IP address each time, you will need to modify the configuration file for the DHCP client daemon, dhcpcd.conf .
Before that, you will need some information on your current network setup so you can add the required details to the configuration file. You will require the following info:
• The type of network connection. This is either wlan0 if your Raspberry Pi is connected to the router wirelessly, or eth0 if it’s connected using an Ethernet cable.
• The Raspberry Pi’s currently assigned IP address – it’s safest to reuse this for its static IP so that you can be sure the latter hasn’t already been to another device on the network. If not, make sure another device isn't already using it.
To find the Raspberry Pi’s current IP address, enter the following command in a Terminal window:
• Your router’s gateway IP address – the one used to contact it from the local network, not its public IP. It varies depending on the router model, but typically starts with 192.168.
To find it, enter the following command and note the first IP address given:
• Your router’s DNS (Domain Name System) IP address. This is typically the same as its gateway address, but may be set to another value to use an alternative DNS – such as 8.8.8.8 for Google, or 1.1.1.1 for Cloudflare.
To find the current DNS IP address, enter the command:
Note the IP address after nameserver – that's the DNS address – and then press Ctrl + X to close the file.
2. Add Static IP Settings
Now you have found all your network connection information, it’s time to edit the dhcpcd.conf configuration file to add the settings you need to set up a static IP address for your Raspberry Pi:
If you haven’t edited the file previously, it will mainly contain various comment lines preceded by a hash (#) symbol. At the bottom, add the following lines, replacing the emboldened names with your own network details:
Replace the emboldened names as follows:
• NETWORK – your network connection type: eth0 (Ethernet) or wlan0 (wireless).
• STATIC_IP – the static IP address you want to set for the Raspberry Pi.
• ROUTER_IP – the gateway IP address for your router on the local network.
• DNS_IP – the DNS IP address (typically the same as your router’s gateway address).
Here is an example configuration to set the static IP to 192.168.1.120 with a wireless connection to a router at 192.168.1.254:
Once you have entered the settings, press Ctrl + X and then Y and ENTER to close and save the modified configuration file.
3. Reboot the Raspberry Pi
With the dhcpcd.conf configuration file modified, restart your Raspberry Pi to effect the changes and set the static IP address for it:
Rather than using an address assigned automatically by DHCP, the Raspberry Pi will now attempt to connect to the router using the new static IP address that you set in the dhcpcd.conf file.
To check that it is working correctly, enter the following command:
You should now see the static IP address that you set in the dhcpcd.conf configuration file.
Set a Static IP Address: Success
Congratulations: you have set up a static IP address on your Raspberry Pi, and it should now retain that address automatically whenever it boots up. Now you can go ahead and use your Pi system as a NAS, media or game server, and connect to it reliably at the same Raspberry Pi fixed IP address every time.
- 100+ Years of Women In Tech
- The Top 5 Women in Tech
How to Find Your Default Gateway IP Address
Find your default gateway ip address on any device.
Tim Fisher has more than 30 years' of professional technology experience. He's been writing about tech for more than two decades and serves as the SVP and General Manager of Lifewire.
:max_bytes(150000):strip_icc():format(webp)/tim-fisher-5820c8345f9b581c0b5a63cf.jpg)
- Emporia State University
In This Article
Jump to a Section
- Find Default Gateway in Windows
- Default Gateway Via IPCONFIG
- Default Gateway on Mac or Linux
- Default Gateway on iPhone or Android
- Use Default Address Assigned by Router Maker
- Frequently Asked Questions
Knowing the IP address of the default gateway (usually a router ) on a home or business network is important information to successfully troubleshoot a network problem or gain access to the router's web-based management. In most cases, the default gateway IP address is the private IP address assigned to the router. This is the address that the router uses to communicate with a local home network.
Instructions in this article apply to all versions of Windows, including Windows 10 through Windows XP. There are also directions for macOS, Linux, Android, and iOS.
How to Find Your Default Gateway IP Address in Windows
The default gateway IP address is stored in the Windows network settings, and it shouldn't take more than a few minutes to locate it.
These instructions find the default gateway IP address on wired and wireless home and small business networks. Larger networks, with more than a single router and simple network hubs , may have more than one gateway and more complicated routing.
Open Control Panel , accessible from the Start menu in most versions of Windows.
To shorten this process on Windows 10 or Windows 8.1, select WIN+X to open the Power User menu , and select Network Connections . Then, skip to Step 4 (Windows 10) or Step 5 (Windows 8).
Select Network and Internet . In Windows XP, select Network and Internet Connections .
If the Control Panel view is set to Large icons, Small icons, or Classic View, select Network and Sharing Center , then go to Step 4. In Windows XP, select Network Connections and skip to Step 5.
In the Network and Internet window, select Network and Sharing Center . In Windows XP, select Network Connections and skip to Step 5.
Select Change adapter options . In Windows 8 and 7, choose Change adapter settings . In Windows Vista, select Manage network connections .
Locate the network connection for the default gateway IP. On most Windows computers, a wired network connection is labeled as Ethernet or Local Area Connection, a wireless network connection is labeled as Wi-Fi or Wireless Network Connection.
Windows can connect to multiple networks at the same time, so there may be several connections. If the network connection is working, exclude any connection that is not connected or disabled. To determine which connection to use, go to Details view and note the information in the Connectivity column.
Double-click the network connection to open a status dialog box.
If Properties, Devices and Printers, another window, or a notification appears, the network connection does not have a status, meaning it's not connected to a network or the internet. Go to Step 5 and look for a different connection.
Select Details . In Windows XP, go to the Support tab, then select Details .
In the Property column, locate IPv4 Default Gateway , IPv6 Default Gateway , or Default Gateway , depending on the network type.
The default gateway IP address being used by Windows appears in the Value column.
If no IP address is listed, the connection you chose in Step 5 may not be the one Windows is using to connect to the internet. Go back to Step 5 and choose another connection.
Make a note of the IP address. You can now use it to troubleshoot a connection problem, to access the router, or perform other tasks.
How to Find Your Default Gateway IP Address Via IPCONFIG
The ipconfig command is a quick way to find the default gateway IP address. Use this method if you're experienced working with commands in Windows.
Open Command Prompt .
Enter ipconfig and select Enter .
Go to the Default Gateway entry to find the IP address.
Here's an example result where the default gateway for the Ethernet connection is listed as 192.168.202.2 .
If this is too much information, enter
ipcon fig | findstr "Default Gateway"
. This trims down the data that's returned in the
Command Prompt
window. However, this method is only helpful if you have one active connection since multiple connections would show the default gateways with no more context on what connection they apply to.
How to Find Your Default Gateway on a Mac or Linux PC
On macOS, there are two ways to find the default gateway: through a graphical program and using the command line.
The easiest way is through System Preferences. Select Network, choose the network connection you're using, then choose Advanced . Select the TCP/IP tab and locate the IP address next to Router .
Another way is to use the netstat command . Open a terminal, type this, and then select Enter :
To display the default gateway IP on most Linux-based computers, enter this in a terminal window:
How to Locate the Default Gateway on iPhone or Android
The easiest way to locate the default gateway on an iOS or Android phone or tablet, is to use the What's My Router IP? website . It probes the network for the default gateway from a web browser, so it works on desktop computers, too. Go to the website and look for your router's local (private) IP.
This isn't the best way to find the default gateway but it works quickly and usually returns the correct IP address. However, if the IP address it shows is incorrect, the "right" method is to use the networking settings built-in to the device.
On an iPhone or iPad, go to Settings > Wi-Fi and tap the small (i) next to the network you're connected to. Next to Router is the default gateway.
Directions for Android depends on the version. See TuneComp's website for specific details, or try these general steps: swipe down from the top of the screen and press-and-hold the Wi-Fi icon, tap the settings icon next to the network, go to Advanced , and then read the address next to Gateway .
Use Default IP Address Assigned by Router Maker
Unless you've changed the router's IP address, or your computer connects directly to a modem to access the internet, the default gateway IP address used by your computer and other devices will never change.
If you can't locate the default gateway, use the default IP address assigned by your router maker, which probably hasn't changed. Check out our updated Linksys default password list , D-Link default password list , Cisco default password list , and NETGEAR default password list to find the default password for your router.
To change your IP address in Windows, go to Control Panel > Network and Sharing Center > Change adapter options > Wi-Fi > Properties > Internet Protocol Version 4 (TCP/IPv4) . On a Mac, go to System Preferences > Network , choose a network, and select Advanced . Then, go to the TCP/IP tab and select Manually .
To hide your IP address from websites, use a virtual private network (VPN) . A VPN allows you to choose an IP address in another country. That way, you can access content blocked in certain regions, and no one can trace your internet history.
If you want to find a website's IP address , you can use the Ping command , or use a website like WHO.IS or WhatsMyIPAddress.com.
Get the Latest Tech News Delivered Every Day
- NETGEAR Default Password List
- Cisco Default Password List
- D-Link Default Password List
- NETGEAR WGR614 Default Password
- Cisco Valet M10 and Valet Plus M20 Default Password
- Linksys Default Password List
- Linksys EA4500 (N900) Default Password
- D-Link DIR-615 Default Password
- Linksys E2500 Default Password
- How to Resolve Limited or No Connectivity Errors in Windows
- How to Find the IP Address on a Mac
- D-Link DI-524 Default Password
- What Is an IP Address?
- Linksys E900 (N300) Default Password
- How to Find Your IP Address
- How to Set Up and Use Wake-on-LAN
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.
- Skip to content
- Skip to search
- Skip to footer
Best Practices for Setting Static IP Addresses on Cisco Business Hardware
Available languages, download options.
- PDF (448.0 KB) View with Adobe Reader on a variety of devices
- ePub (515.2 KB) View in various apps on iPhone, iPad, Android, Sony Reader, or Windows Phone
- Mobi (Kindle) (744.5 KB) View on Kindle device or Kindle app on multiple devices
Bias-Free Language
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
Introduction
A Local Area Network (LAN) might be as big as several buildings or as small as a home. Everyone connected to the LAN is in the same physical location.
In a LAN, the router assigns each device its own unique internal IP address. They follow a pattern as follows:
- 10.0.0.0 /8 (10.x.x.x)
- 172.16.0.0 /12 (172.16.x.x - 172.31.x.x)
- 192.168.0.0 /16 (192.168.x.x)
These addresses are only visible inside a network, between devices, and are considered private from outside networks. There are potentially millions of locations that might have the same pool of internal IP addresses as your business. It doesn't negatively affect your addressing scheme, as they are only used within their own private network, and hence, there is no conflict.
There are special configurations that can be done, but there are some standard things to keep in mind. In order for the devices in the network to communicate with each other, they should all follow the same pattern as the other devices. They should also be on the same subnet, which is the organizational method within the IP addressing scheme. Each IP address must also be unique. You should never see any of these addresses in this pattern as a public IP address, as they are reserved for private LAN addresses only.
All of these devices send data through a default gateway (a router) to move data out to the Internet. When the default gateway receives the information, it needs to do Network Address Translation (NAT), which encapsulates the IP address to be publicly facing. Since anything going out across the Internet needs a public IP address, this encapsulation ensures the data can find its way back to the requestor.
Manually assigning IP addresses can be a secure method of IP addressing, being a manual process, there are network scaling issues that can occur. To solve manual assignment, Dynamic Host Configuration Protocol (DHCP) is a protocol that automatically assigns IP addresses to devices in a network. Devices that use DHCP are automatically given a dynamic IP address in the proper subnet mask. This pool of available IP address can change over time as addresses are assigned or abandoned.
You can configure the internal IP address to stay the same by configuring static DHCP on the router or assign a static IP address on the device itself. From that point forward, that device will keep the same IP address unless manually changed or if the router is reset to factory default.
Note: Public IP addresses are not guaranteed to stay the same either, unless you pay to have a static public IP address through your Internet Service Provider (ISP). Many companies pay for this service so their employees and customers have a more reliable connection to their servers (web, mail, VPN, etc.) but it can be expensive.
Some small businesses can leave all their IP addresses dynamic. With DHCP, devices can be added or removed without any issues. DHCP assigns each device a local IP address that is unique from all others and in the same subnet so there are no conflicts and they can all communicate with each other.
This article gives the reader general information about static IP addresses and some recommended best practices when using Cisco Business hardware.
When Should a Device have a Static IP Address?
If you need constant access to a device, or server, in the network it would be beneficial for that address not to change. Here are some examples:
- Your router. In order to access the network while you are away from the LAN, whether connecting a computer to work from home, or accessing a surveillance camera connected to the network.
- You share a printer within the network.
- You have two or more routers in the network.
- You host a file server such as a web server or File Transfer Protocol (FTP) server.
A DHCP server – a DHCP server is likely to automatically have a static address.
- Your network doesn’t support DHCP.
What Devices Don’t Typically Need a Static IP Address?
If you do not need constant access to a device in the network it would be beneficial and much less complicated to use DHCP. In a network, there may be hundreds of these devices and it would be very difficult to keep track of which addresses have been used. These devices may often be moved between networks and in order to connect, the IP address needs to change. With DHCP, this is done automatically. Here are some examples:
- Mobile phones
- VoIP phones
What are the Challenges when Using Static IP addresses?
- The administrator has to keep track of all devices and the static IP addresses they have been assigned.
- If the same static IP addresses are assigned to two different devices they will both be unable to communicate on the network. This can be prevented if the administrator has kept good notes on the topology of the network.
- If DHCP assigns an IP address that is already assigned as a static IP address, those devices can’t communicate. The solution for this problem is to assign blocks of IP addresses for DHCP and different blocks for static addressing.
Cisco Business Recommendations
- Keep good notes including each static IP and Media Access Control (MAC) address.
- Only assign a static IP address if necessary.
- Reserve a block of addresses for DHCP and a separate block for static addressing.
- Only use addresses from the 10.0.0.0 /8 (10.x.x.x), 172.16.0.0 /12 (172.16.x.x - 172.31.x.x), or 192.168.0.0 /16 (192.168.x.x) pattern.
- Do not use an address that ends in .0 as those are typically reserved for networks.
- Do not use an address that ends in .1 or .254, as those are often the default IP addresses of devices. The first or last usable IP address of a network is so common that a hacker would most likely use it to try to access the network.
- Do not use the last IP address of the IP Network pool, ending in .255, as they are reserved for the broadcast address.
- In general, it is recommended to use different LAN IP subnets (or different subnet masks) at both ends while configuring VPN between different sites. For example, if the site you connect to uses a 192.168.x.x addressing scheme, you would want to use a 10.x.x.x or 172.16.x.x - 172.31.x.x subnet. When you change your router IP address, the devices on DHCP would automatically pick up an IP address in that subnet.
How to View or Change the Pool of IP Addresses for DHCP
On your router, you can view or change the range of IP addresses that are reserved for DHCP. If you would like some help logging in, click here .
Instructions for the RV160, RV260 or RV34x Series Routers
Step 1. Navigate to LAN > VLAN Settings .

Note: If you are using a RV160, RV260, or RV34x router and are not seeing the Graphical User Interface (GUI) shown in the previous section, it is highly recommended that you upgrade to the latest firmware. This should update your router to the new GUI. Check to see the latest firmware by clicking here .
If you would like instructions on how to upgrade firmware on an RV34x router, click here .
If you would like instructions on how to upgrade firmware on an RV160 or RV260 router, click here .
Step 2. Click the checkbox for the VLAN ID , the default is VLAN 1. Cisco Business routers automatically reserve 50 IP addresses for DHCP. You can change the range here to whatever you prefer, but this is usually sufficient for smaller networks. Be sure to take note of this so that you do not assign any static IP addresses in this range.


Instructions for All Other Routers
Step 1. Navigate to DHCP >DHCP Setup .

Step 2. Select the VLAN ID , the default is VLAN 1. Cisco Business routers automatically reserve 50 IP addresses for DHCP. You can change the range here to whatever you prefer, but this is usually sufficient for smaller networks. Be sure to take note of this so that you do not assign any static IP addresses in this range.

How to Assign Static IP Addresses
There are a few options for assigning a static IP address to a device. The first option is to configure all static IP addresses on the main router. This is an easy way to have all of the static IP addresses in one location. However, if you reset the router to factory settings, all configured static IP addresses will be deleted.
The second option is to configure it directly on each device. If a static IP address is configured directly on a device, and it gets reset, it will likely revert to DHCP and pick up a different IP address.
Configuring Static DHCP on a Router
To configure static DHCP on the router, you will need to know the MAC address for each device. This is the unique identifier for each device that consists of letters and numbers. The MAC address does not change. It can be found on the body of the Cisco device. It is labeled MAC and is typically shown with a white background.
Step 1. Log into the router. Navigate to LAN > Static DHCP .

Step 2. Complete the following steps to assign a static IP.
- Click the plus icon .
- Create a Name that will help you associate the device that is listed, such as SG550 Switch .
- Enter the MAC address of the device.
- Enter the Static IPv4 Address . Make sure you use an address that is not in the DHCP pool.
- Make sure the Enabled box is checked.
- Click Apply .

You will need to repeat this process for each device you would like to assign a static IP address.
Configuring Static IP Address on a Switch
Step 1. Log in to the switch. Navigate to IP Configuration > IPv4 Interface .

Step 2. Click Add .

Step 3. Select the Static IP Address radio button. Enter the desired Static IP address and Subnet Mask . Click Apply .

Configuring Static IP Address on a Wireless Access Point (WAP)
Step 1. Log into the WAP. Navigate to LAN > VLAN and IPv4 Address .

Step 2. Select the Static IP radio button. Enter the desired Static IP address and Subnet Mask . You also need to specify Default Gateway and Domain Name Servers (DNS) server address. Click Save .
Note: Usually both the default gateway and the DNS server are the LAN IP address of the router; however the DNS server for Google, 8.8.8.8, is sometimes utilized here.

Configuring Static IP Address on a Printer
In this example, you would select Network > IPv4 . You would then select the Manual IP radio button, fill in the Manual IP Address , Manual Subnet Mask , and Manual Default Gateway . You would also assign a DNS server . Click Apply .
Note: This printer is not a Cisco product and is not supported by Cisco. These instructions are only provided for general illustration purposes.

There you have it! Now you have a starting off point for IP addressing in your network.
Click on the hyperlinks for more information on the following topics:
- Configure Static Internet Protocol (IP) Address Settings on a Cisco IP Phone 6800, 7800, or 8800 Series Multiplatform Phone
- Setting a Static IPv4 Address on a Switch using the Graphical User Interface (GUI)
- Setting Static IPv4 Addesses on a Switch via Command Line Interface (CLI)
- Creating a Text File to Adjust IP Settings on a Switch
Revision History
Was this document helpful.

Contact Cisco

- (Requires a Cisco Service Contract )
This Document Applies to These Products
- 250 Series Smart Switches
- 350 Series Managed Switches
- 350X Series Stackable Managed Switches
- 550X Series Stackable Managed Switches
- Small Business 100 Series Wireless Access Points
- Small Business 200 Series Smart Switches
- Small Business 300 Series Managed Switches
- Small Business 300 Series Wireless Access Points
- Small Business 500 Series Stackable Managed Switches
- Small Business 500 Series Wireless Access Points
How to set a Static IP Address in Windows 11/10
Assign a static ip address in windows 11/10, 1] setting a static ip address via control panel, 2] assign static ip address via settings, 3] assigning static ip address via powershell, 4] assign a static ip address using command prompt, what is static ip connection, what is static ip used for.
A static IP address offers convenient remote access which makes it easier to work remotely using a Virtual Private Network (VPN) or other remote access programs. Besides, it enables more reliable communication [use Voice over Internet Protocol (VoIP) for teleconferencing or other voice and video communications].
[email protected]
Change TCP/IP settings
TCP/IP defines how your PC communicates with other PCs.
To make it easier to manage TCP/IP settings, we recommend using automated Dynamic Host Configuration Protocol (DHCP). DHCP automatically assigns Internet Protocol (IP) addresses to the computers on your network if your network supports it. If you use DHCP, then you don't have to change your TCP/IP settings if you move your PC to another location, and DHCP doesn't require you to manually configure TCP/IP settings, such as Domain Name System (DNS) and Windows Internet Name Service (WINS).
To enable DHCP or change other TCP/IP settings
Select Start , then type settings . Select Settings > Network & internet .
Do one of the following:
For a Wi-Fi network, select Wi-Fi > Manage known networks . Choose the network for which you want to change the settings.
For an Ethernet network, select Ethernet , then select the Ethernet network you’re connected to.
Next to IP assignment , select Edit .
Under Edit network IP settings or Edit IP settings , select Automatic (DHCP) or Manual .
To specify IPv4 settings manually
Under Edit network IP settings or Edit IP settings , choose Manual , then turn on IPv4 .
To specify an IP address, in the IP address, Subnet mask , and Gateway boxes, type the IP address settings.
To specify a DNS server address, in the Preferred DNS and Alternate DNS boxes, type the addresses of the primary and secondary DNS servers.
To specify if you want to use an encrypted (DNS over HTTPS) or unencrypted connection to the DNS server or servers you specify, for DNS over HTTPS , choose the setting you want:
Off : All DNS queries will be sent to the DNS server unencrypted in plaintext over HTTP.
On (automatic template) : DNS queries will be encrypted and sent to the DNS server over HTTPS. DNS queries will use the default settings for the automatic template or try to discover them automatically.
On (manual template) : DNS queries will be encrypted and sent to the DNS server over HTTPS. They’ll use the settings you enter in the DNS over HTTPS template box.
If you use DNS over HTTPS (automatic or manual template), turn Fallback to plaintext on or off:
When it’s turned on, a DNS query will be sent unencrypted if it can’t be sent over HTTPS.
When it’s turned off, a DNS query won’t be sent if it can’t be sent over HTTPS.
To specify IPv6 settings manually
Under Edit network IP settings or Edit IP settings , choose Manual , then turn on IPv6 .
To specify an IP address, in the IP address , Subnet prefix length , and Gateway boxes, type the IP address settings.
When you select Automatic (DHCP) , the IP address settings and DNS server address setting are set automatically by your router or other access point (recommended).
When you select Manual , you can manually set your IP address settings and DNS server address.
When you’re done, select Save .
Note: To install IPv4, run Command Prompt as an administrator, type netsh interface ipv4 install , and then press Enter .
Select Start , then select Settings > Network & Internet .
For a Wi-Fi network, select Wi-Fi > Manage known networks . Choose the network you want to change the settings for, then select Properties.
For an Ethernet network, select Ethernet , then select the Ethernet network you’re connected to.
Under IP assignment , select Edit .
Under Edit IP settings , select Automatic (DHCP) or Manual .
Under Edit IP settings , choose Manual , then turn on IPv4 .
To specify an IP address, in the IP address, Subnet prefix length , and Gateway boxes, type the IP address settings.
To specify a DNS server address, in the Preferred DNS and Alternate DNS boxes, type the addresses of the primary and secondary DNS servers.
Under Edit IP settings , choose Manual , then turn on IPv6 .
When you select Automatic (DHCP) , the IP address settings and DNS server address setting are set automatically by your router or other access point (recommended).
When you select Manual , you can manually set your IP address settings and DNS server address.
When you’re done, select Save .
In Windows 8.1, select the Start button, start typing View network connections , and then select View network connections in the list.
In Windows 7, open Network Connections by selecting the Start button, and then selecting Control Panel . In the search box, type adapter , and then, under Network and Sharing Center , select View network connections .
Right-click the connection that you want to change, and then select Properties . If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
Select the Networking tab. Under This connection uses the following items , select either Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6) , and then select Properties .
To specify IPv4 IP address settings, do one of the following:
To get IP settings automatically using DHCP, select Obtain an IP address automatically , and then select OK .
To specify an IP address, select Use the following IP address , and then, in the IP address, Subnet mask , and Default gateway boxes, type the IP address settings.
To specify IPv6 IP address settings, do one of the following:
To get IP settings automatically using DHCP, select Obtain an IPv6 address automatically , and then select OK .
To specify an IP address, select Use the following IPv6 address , and then, in the IPv6 address, Subnet prefix length , and Default gateway boxes, type the IP address settings.
To specify DNS server address settings, do one of the following:
To get a DNS server address automatically using DHCP, select Obtain DNS server address automatically , and then select OK .
To specify a DNS server address, select Use the following DNS server addresses , and then, in the Preferred DNS server and Alternate DNS server boxes, type the addresses of the primary and secondary DNS servers.
To change advanced DNS, WINS, and IP settings, select Advanced .

Need more help?
Want more options.
Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Microsoft 365 subscription benefits

Microsoft 365 training

Microsoft security

Accessibility center
Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Ask the Microsoft Community

Microsoft Tech Community

Windows Insiders
Microsoft 365 Insiders
Find solutions to common problems or get help from a support agent.

Online support
Was this information helpful?
Thank you for your feedback.

SUSE Support
Here when you need us, sle 15 - configure a static network address while in the rescue system.
This document (7023891) is provided subject to the disclaimer at the end of this document.
Environment
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID: 7023891
- Creation Date: 22-May-2019
- Modified Date: 11-Aug-2022
- SUSE Linux Enterprise Server
< Back to Support Search
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com
SUSE Support Forums
Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.
Support Resources
Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.
Open an Incident
Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.
IT Modernization
SAP Solutions
AI and Analytics
Hybrid Cloud Solutions
Exit Federal Government
Business-Critical Linux
Run your business-critical apps in any environment
#1 operating system to run SAP workloads
Infrastructure Management
Enterprise Container Management
Kubernetes Management
Hyperconverged Infrastructure
Zero Trust Container Security
Lightweight Kubernetes built for Edge use cases
Ultra-reliable, immutable Linux operating system
Reduce system latencies & boost response times
Run & secure cloud and on-prem workloads
Deliver mission-critical SAP solutions
Orchestrate cloud-native apps
Deploy intelligent devices to the edge
Accelerate innovation across your clouds
Secure your digital enterprise
- Banking and Financial Services --> Banking and Financial Services
- Manufacturing
- Technology & Software
Dedicated support services from a premium team
Stay on your existing product version
Support for common Linux platforms
Community packages for SUSE Linux Enterprise Server
Partner Program
Find a Partner
Become a Partner
Login to the SUSE Partner Portal
Communities
Open Source Projects
openSUSE.org
SUSE Česká republika
SUSE Israel
SUSE Magyarország
SUSE Polska
Success Stories
Investor Relations
Social Impact
SUSE Logo and Brand
Events & Webinars
Merchandise Store
Communications Preferences
Give Us Feedback
Got some feedback about the website? Let us know so we can fix it.
For support information, please visit Support .
Connect with us
Feedback Form
We adapt, you succeed.

Your Home Network
User_92d590.

Wednesday, March 23rd, 2022 8:00 PM
Static IP on Xfinity residential gateway
Looking for guidance on how to set up a static IP for one of my connected devices on my residential gateway
9 months ago
XfinityJodie
Official Employee
835 Messages
11 months ago
@user_92d590 Thanks for the post! Sadly, residential accounts are unable to have static IPs. We only provide them to Business customers.
98K Messages
@XfinityJodie
FWIW. You are talking about the public / WAN IP address that the Comcast DHCP server assigns to the routers and the combo gateway devices. They are talking about the private / LAN IP addresses that the routers and the gateway device's built-in DHCP servers assign to the individual home network clients..

Hemingray42
Contributor
66 Messages
Best way to do is by setting up a reserved IP on the gateway itself, otherwise just configure the device manually using an IP within the LAN's range.
I've always had my own routers and cable modems. This is my 1st rental from comcast. So where is the WAN control where I can reserve IP addresses? I want to setup my Wired HP printer with a static IP address. Also, one of my wireless devices keeps getting knocked off (approx once per day) and I have to sign in to wireless network again. Where can I go and authorize that device or all deveice for unlimited access, without timed renewals?
XfinityCassandra
391 Messages
Thank you for joining us on the Xfinity Forums @macman218! We don't currently offer the option for a Static IP through residential. However, it would be available through Comcast Business services! They can be reached by calling 1-800-391-3000. For the device that's disconnecting, that definitely shouldn't happen! Our team can help right here with checking into this further for you. What type of device is this happening with? Have you tried any troubleshooting steps so far to check into this connection issue?

@XfinityCassandra
Did you happen to see my post three post's back ?;
https://forums.xfinity.com/conversations/your-home-network/static-ip-on-xfinity-residential-gateway/623b7c78f507ee0c60141184?commentId=623e286eb776c838c9d04144&replyId=623e3338f6cc380e64018f3d
They want LAN / private static IP's, not WAN / public...
Cool_Hand_Luke
"We don't currently offer the option for a Static IP through residential" That's just awful!
@Cool_Hand_Luke
Please create a new topic of your own here on this board detailing your issue. Thanks. The original poster has not returned. 2-month-old dead thread is now being closed.

New to the Community?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
About VPN Gateway configuration settings
- 16 minutes to read
- 6 contributors
A VPN gateway is a type of virtual network gateway that sends encrypted traffic between your virtual network and your on-premises location across a public connection. You can also use a VPN gateway to send traffic between virtual networks across the Azure backbone.
A VPN gateway connection relies on the configuration of multiple resources, each of which contains configurable settings. The sections in this article discuss the resources and settings that relate to a VPN gateway for a virtual network created in Resource Manager deployment model . You can find descriptions and topology diagrams for each connection solution in the About VPN Gateway article.
The values in this article apply VPN gateways (virtual network gateways that use the -GatewayType Vpn). This article doesn't cover all gateway types or zone-redundant gateways.
For values that apply to -GatewayType 'ExpressRoute', see Virtual Network Gateways for ExpressRoute .
For zone-redundant gateways, see About zone-redundant gateways .
For active-active gateways, see About highly available connectivity .
For Virtual WAN, see About Virtual WAN .
Gateway types
Each virtual network can only have one virtual network gateway of each type. When you're creating a virtual network gateway, you must make sure that the gateway type is correct for your configuration.
The available values for -GatewayType are:
- ExpressRoute
A VPN gateway requires the -GatewayType Vpn .
Gateway SKUs
When you create a virtual network gateway, you need to specify the gateway SKU that you want to use. Select the SKU that satisfies your requirements based on the types of workloads, throughput, features, and SLAs. For virtual network gateway SKUs in Azure Availability Zones, see Azure Availability Zones gateway SKUs .
Gateway SKUs by tunnel, connection, and throughput
(*) Use Virtual WAN if you need more than 100 S2S VPN tunnels.
The resizing of VpnGw SKUs is allowed within the same generation, except resizing of the Basic SKU. The Basic SKU is a legacy SKU and has feature limitations. In order to move from Basic to another SKU, you must delete the Basic SKU VPN gateway and create a new gateway with the desired Generation and SKU size combination. (see Working with Legacy SKUs ).
These connection limits are separate. For example, you can have 128 SSTP connections and also 250 IKEv2 connections on a VpnGw1 SKU.
Pricing information can be found on the Pricing page.
SLA (Service Level Agreement) information can be found on the SLA page.
If you have a lot of P2S connections, it can negatively impact your S2S connections. The Aggregate Throughput Benchmarks were tested by maximizing a combination of S2S and P2S connections. A single P2S or S2S connection can have a much lower throughput.
Note that all benchmarks aren't guaranteed due to Internet traffic conditions and your application behaviors
To help our customers understand the relative performance of SKUs using different algorithms, we used publicly available iPerf and CTSTraffic tools to measure performances for site-to-site connections. The table below lists the results of performance tests for VpnGw SKUs. As you can see, the best performance is obtained when we used GCMAES256 algorithm for both IPsec Encryption and Integrity. We got average performance when using AES256 for IPsec Encryption and SHA256 for Integrity. When we used DES3 for IPsec Encryption and SHA256 for Integrity we got lowest performance.
A VPN tunnel connects to a VPN gateway instance. Each instance throughput is mentioned in the above throughput table and is available aggregated across all tunnels connecting to that instance.
The table below shows the observed bandwidth and packets per second throughput per tunnel for the different gateway SKUs. All testing was performed between gateways (endpoints) within Azure across different regions with 100 connections and under standard load conditions.
VpnGw SKUs (VpnGw1, VpnGw1AZ, VpnGw2, VpnGw2AZ, VpnGw3, VpnGw3AZ, VpnGw4, VpnGw4AZ, VpnGw5, and VpnGw5AZ) are supported for the Resource Manager deployment model only. Classic virtual networks should continue to use the old (legacy) SKUs.
- For information about working with the legacy gateway SKUs (Basic, Standard, and HighPerformance), see Working with VPN gateway SKUs (legacy SKUs) .
- For ExpressRoute gateway SKUs, see Virtual Network Gateways for ExpressRoute .
Gateway SKUs by feature set
The new VPN gateway SKUs streamline the feature sets offered on the gateways:
(*) You can configure "PolicyBasedTrafficSelectors" to connect a route-based VPN gateway to multiple on-premises policy-based firewall devices. Refer to Connect VPN gateways to multiple on-premises policy-based VPN devices using PowerShell for details.
(**) The Basic SKU is considered a legacy SKU. The Basic SKU has certain feature limitations. You can't resize a gateway that uses a Basic SKU to another SKU, you must instead change to a new SKU, which involves deleting and recreating your VPN gateway. You can't deploy a Basic SKU to a VNet that uses IPv6 address space.
Gateway SKUs - Production vs. Dev-Test Workloads
Due to the differences in SLAs and feature sets, we recommend the following SKUs for production vs. dev-test:
(**) The Basic SKU is considered a legacy SKU and has feature limitations. Verify that the feature that you need is supported before you use the Basic SKU.
If you are using the old SKUs (legacy), the production SKU recommendations are Standard and HighPerformance. For information and instructions for old SKUs, see Gateway SKUs (legacy) .
Configure a gateway SKU
Azure portal
If you use the Azure portal to create a Resource Manager virtual network gateway, you can select the gateway SKU by using the dropdown. The options you're presented with correspond to the Gateway type and VPN type that you select.
The following PowerShell example specifies the -GatewaySku as VpnGw1. When using PowerShell to create a gateway, you have to first create the IP configuration, then use a variable to refer to it. In this example, the configuration variable is $gwipconfig.
Resizing or changing a SKU
If you have a VPN gateway and you want to use a different gateway SKU, your options are to either resize your gateway SKU, or to change to another SKU. When you change to another gateway SKU, you delete the existing gateway entirely and build a new one. Creating a gateway can often take 45 minutes or more, depending on the selected gateway SKU. In comparison, when you resize a gateway SKU, there isn't much downtime because you don't have to delete and rebuild the gateway. If you have the option to resize your gateway SKU, rather than change it, you'll want to do that. However, there are rules regarding resizing:
- Except for the Basic SKU, you can resize a VPN gateway SKU to another VPN gateway SKU within the same generation (Generation1 or Generation2). For example, VpnGw1 of Generation1 can be resized to VpnGw2 of Generation1 but not to VpnGw2 of Generation2.
- When working with the old gateway SKUs, you can resize between Standard and HighPerformance SKUs.
- You cannot resize from Basic/Standard/HighPerformance SKUs to VpnGw SKUs. You must instead, change to the new SKUs.
To resize a gateway
Go to the Configuration page for your virtual network gateway.
On the right side of the page, click the dropdown arrow to show the available gateway SKUs.

Select the SKU from the dropdown.
You can use the Resize-AzVirtualNetworkGateway PowerShell cmdlet to upgrade or downgrade a Generation1 or Generation2 SKU (all VpnGw SKUs can be resized except Basic SKUs). If you are using the Basic gateway SKU, use these instructions instead to resize your gateway.
The following PowerShell example shows a gateway SKU being resized to VpnGw2.
To change from an old (legacy) SKU to a new SKU
If you are working with the Resource Manager deployment model, you can change to the new gateway SKUs. When you change from a legacy gateway SKU to a new SKU, you delete the existing VPN gateway and create a new VPN gateway.
- Remove any connections to the virtual network gateway.
- Delete the old VPN gateway.
- Create the new VPN gateway.
- Update your on-premises VPN devices with the new VPN gateway IP address (for Site-to-Site connections).
- Update the gateway IP address value for any VNet-to-VNet local network gateways that will connect to this gateway.
- Download new client VPN configuration packages for P2S clients connecting to the virtual network through this VPN gateway.
- Recreate the connections to the virtual network gateway.
Considerations:
- To move to the new SKUs, your VPN gateway must be in the Resource Manager deployment model.
- If you have a classic VPN gateway, you must continue using the older legacy SKUs for that gateway, however, you can resize between the legacy SKUs. You cannot change to the new SKUs.
- You will have connectivity downtime when you change from a legacy SKU to a new SKU.
- When changing to a new gateway SKU, the public IP address for your VPN gateway will change. This happens even if you specify the same public IP address object that you used previously.
Connection types
In the Resource Manager deployment model , each configuration requires a specific virtual network gateway connection type. The available Resource Manager PowerShell values for -ConnectionType are:
In the following PowerShell example, we create a S2S connection that requires the connection type IPsec .
When you create the virtual network gateway for a VPN gateway configuration, you must specify a VPN type. The VPN type that you choose depends on the connection topology that you want to create. For example, a P2S connection requires a RouteBased VPN type. A VPN type can also depend on the hardware that you're using. S2S configurations require a VPN device. Some VPN devices only support a certain VPN type.
The VPN type you select must satisfy all the connection requirements for the solution you want to create. For example, if you want to create a S2S VPN gateway connection and a P2S VPN gateway connection for the same virtual network, you would use VPN type RouteBased because P2S requires a RouteBased VPN type. You would also need to verify that your VPN device supported a RouteBased VPN connection.
Once a virtual network gateway has been created, you can't change the VPN type. You have to delete the virtual network gateway and create a new one. There are two VPN types:
PolicyBased: PolicyBased VPNs were previously called static routing gateways in the classic deployment model. Policy-based VPNs encrypt and direct packets through IPsec tunnels based on the IPsec policies configured with the combinations of address prefixes between your on-premises network and the Azure VNet. The policy (or traffic selector) is usually defined as an access list in the VPN device configuration. The value for a PolicyBased VPN type is PolicyBased . When using a PolicyBased VPN, keep in mind the following limitations:
- PolicyBased VPNs can only be used on the Basic gateway SKU. This VPN type is not compatible with other gateway SKUs.
- You can have only 1 tunnel when using a PolicyBased VPN.
- You can only use PolicyBased VPNs for S2S connections, and only for certain configurations. Most VPN Gateway configurations require a RouteBased VPN.
RouteBased : RouteBased VPNs were previously called dynamic routing gateways in the classic deployment model. RouteBased VPNs use "routes" in the IP forwarding or routing table to direct packets into their corresponding tunnel interfaces. The tunnel interfaces then encrypt or decrypt the packets in and out of the tunnels. The policy (or traffic selector) for RouteBased VPNs are configured as any-to-any (or wild cards). The value for a RouteBased VPN type is RouteBased .
The following PowerShell example specifies the -VpnType as RouteBased . When you're creating a gateway, you must make sure that the -VpnType is correct for your configuration.
Gateway subnet
Before you create a VPN gateway, you must create a gateway subnet. The gateway subnet contains the IP addresses that the virtual network gateway VMs and services use. When you create your virtual network gateway, gateway VMs are deployed to the gateway subnet and configured with the required VPN gateway settings. Never deploy anything else (for example, additional VMs) to the gateway subnet. The gateway subnet must be named 'GatewaySubnet' to work properly. Naming the gateway subnet 'GatewaySubnet' lets Azure know that this is the subnet to deploy the virtual network gateway VMs and services to.
User-defined routes with a 0.0.0.0/0 destination and NSGs on the GatewaySubnet are not supported . Gateways created with this configuration will be blocked from creation. Gateways require access to the management controllers in order to function properly. BGP Route Propagation should be set to "Enabled" on the GatewaySubnet to ensure availability of the gateway. If this is set to disabled, the gateway will not function.
When you create the gateway subnet, you specify the number of IP addresses that the subnet contains. The IP addresses in the gateway subnet are allocated to the gateway VMs and gateway services. Some configurations require more IP addresses than others.
When you're planning your gateway subnet size, refer to the documentation for the configuration that you're planning to create. For example, the ExpressRoute/VPN Gateway coexist configuration requires a larger gateway subnet than most other configurations. Additionally, you may want to make sure your gateway subnet contains enough IP addresses to accommodate possible future additional configurations. While you can create a gateway subnet as small as /29 (applicable to Basic SKU only), we recommend that you create a gateway subnet of /27 or larger (/27, /26 etc.). This will accommodate most configurations.
The following Resource Manager PowerShell example shows a gateway subnet named GatewaySubnet. You can see the CIDR notation specifies a /27, which allows for enough IP addresses for most configurations that currently exist.
When working with gateway subnets, avoid associating a network security group (NSG) to the gateway subnet. Associating a network security group to this subnet may cause your virtual network gateway (VPN and Express Route gateways) to stop functioning as expected. For more information about network security groups, see What is a network security group? .
Local network gateways
A local network gateway is different than a virtual network gateway. When creating a VPN gateway configuration, the local network gateway usually represents your on-premises network and the corresponding VPN device. In the classic deployment model, the local network gateway was referred to as a Local Site.
You give the local network gateway a name, the public IP address or the fully qualified domain name (FQDN) of the on-premises VPN device, and specify the address prefixes that are located on the on-premises location. Azure looks at the destination address prefixes for network traffic, consults the configuration that you've specified for your local network gateway, and routes packets accordingly. If you use Border Gateway Protocol (BGP) on your VPN device, you'll provide the BGP peer IP address of your VPN device and the autonomous system number (ASN) of your on-premises network. You also specify local network gateways for VNet-to-VNet configurations that use a VPN gateway connection.
The following PowerShell example creates a new local network gateway:
Sometimes you need to modify the local network gateway settings. For example, when you add or modify the address range, or if the IP address of the VPN device changes. See Modify local network gateway settings using PowerShell .
REST APIs, PowerShell cmdlets, and CLI
For additional technical resources and specific syntax requirements when using REST APIs, PowerShell cmdlets, or Azure CLI for VPN Gateway configurations, see the following pages:
For more information about available connection configurations, see About VPN Gateway .
Submit and view feedback for
Additional resources
Thank you for taking the time to respond. The NETGEAR documentation team uses your feedback to improve our knowledge base content.
Rating Submitted
Do you have a suggestion for improving this article?
Characters Left : 500

MyNETGEAR® Account
Welcome back
Access your NETGEAR

NETGEAR Support
How do I set a static IP address in Windows?
Was this article helpful? Yes No | 5 people found this helpful in last 30 days
Most users do not need to set a static IP address. However, advanced users and businesses might benefit from a static IP address.
A static IP address is useful for hosting servers or websites and for sharing large files. For more information about static and dynamic IP addresses, see What is an IP address?
To set a static IP address in Windows 7, 8, and 10:
- Click Start Menu > Control Panel > Network and Sharing Center or Network and Internet > Network and Sharing Center.
- Click Change adapter settings .
- Right-click on Wi-Fi or Local Area Connection.
- Click Properties .
- Select Internet Protocol Version 4 (TCP/IPv4) .
- Click Properties .
- Select Use the following IP address .
- Enter the IP address , Subnet mask , Default gateway , and DNS server .
- Click OK . Your computer displays a static IP address.
To set a static IP address on a Macintosh OS X computer, see Configuring TCP/IP and Proxy Settings on Mac OSX .
Last Updated:03/01/2023 | Article ID: 27476
Was this article helpful?
This article applies to:.
- EX7000-1AZNAS
- R6300-2CHNAS
- XR1000-1RNNAS (ENTOUCH)
- XR1000-1RNNAS (GRANDE)
- XR1000-1RNNAS (RCN)
- XR1000-1RNNAS (WAVE)
- DGN1000SP-1RGUKS
- DGN1000SS-1VGUKS
- DGN2200-4DDAUS
- DGN2200M-2TKSAS
- DGN2200T-3BEGES
- DGND3300Bv2
- DGND3700Bv2
- DM111PSP-2GTLAS
- ProLine 6100
- Versalink 7500
- EVG1500-1EMRUS
- EVG1500-2EMRUS
- EVG2000-1STAUS
- DG834NU-2BEGES
- WN2000RPTv1
- WN2000RPTv2
- WN2000RPTv3
- CENTRIA (WNDR4700/4720)
- JWNR2000-4EMRUS
- JWNR2000Tv3
- WNDR3400-1CANAS
- WNR1000-2VCNAS
- WNR2000-3XFNAS
- WNR2000UPPE
- WNR3500CEIF
- WNR612-2EMRUS
- WGR614-7VCNAS
- WGR614-8CONAS
- WGR614-9UMGRS
Looking for more about your product?
Get information, documentation, videos and more for your specific product.
Can’t find what you’re looking for?
Quick and easy solutions are available for you in the NETGEAR community.
Need to Contact NETGEAR Support?
With NETGEAR’s round-the-clock premium support, help is just a phone call away.
Complimentary Support
NETGEAR provides complimentary technical support for NETGEAR products for 90 days from the original date of purchase.
NETGEAR Premium Support
Gearhead support for home users.
GearHead Support is a technical support service for NETGEAR devices and all other connected devices in your home. Advanced remote support tools are used to fix issues on any of your devices. The service includes support for the following:
- Desktop and Notebook PCs, Wired and Wireless Routers, Modems, Printers, Scanners, Fax Machines, USB devices and Sound Cards
- Windows Operating Systems (2000, XP or Vista), MS Word, Excel, PowerPoint, Outlook and Adobe Acrobat
- Anti-virus and Anti-Spyware: McAfee, Norton, AVG, eTrust and BitDefender
ProSUPPORT Services for Business Users
NETGEAR ProSUPPORT services are available to supplement your technical support and warranty entitlements. NETGEAR offers a variety of ProSUPPORT services that allow you to access NETGEAR's expertise in a way that best meets your needs:
- Product Installation
- Professional Wireless Site Survey
- Defective Drive Retention (DDR) Service
Where to Find Your Model Number
To find the model/version number, check the bottom or back panel of your NETGEAR device.
Select a product or category below for specific instructions.

Nighthawk Routers

Powerline and Wall Plug Extenders

Cable and DSL Modem Routers

ReadyNAS Network Storage

Wireless Access Points

Other Business Products

Mobile Broadband
Amazon FSx File Gateway documentation has been moved to What is Amazon FSx File Gateway?
Volume Gateway documentation has been moved to What is Volume Gateway?
Tape Gateway documentation has been moved to What is Tape Gateway?
Configuring an IP address for the gateway
Before you activated your hardware appliance, you assigned an IP address to its physical network interface. Now that you have activated the appliance and launched your Storage Gateway on it, you need to assign another IP address to the Storage Gateway virtual machine that runs on the hardware appliance. To assign a static IP address to a gateway installed on your hardware appliance, configure the IP address from the local console for that gateway. Your applications (such as your NFS or SMB client) connect to this IP address. You can access the gateway local console from the hardware appliance console.
To configure an IP address on your appliance to work with applications
On the hardware console, choose Open Service Console to open a login screen for the gateway local console.
Enter the localhost login password, and then press Enter .
The default account is admin and the default password is password .
Change the default password. Choose Actions then Set Local Password and enter your new credentials in the Set Local Password dialog box.
(Optional) Configure your proxy settings. See Rack-mounting your hardware appliance and connecting it to power for instructions.
Navigate to the Network Settings page of the gateway local console as shown following.

Type 2 to go to the Network Configuration page shown following.

Configure a static or DHCP IP address for the network port on your hardware appliance to present a file, volume, and Tape Gateway for applications. This IP address must be on the same subnet as the IP address used during hardware appliance activation.
To exit the gateway local console
Press the Crtl+] (close bracket) keystroke. The hardware console appears.
The keystroke preceding is the only way to exit the gateway local console.
Configuring your gateway

To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.

IMAGES
VIDEO
COMMENTS
Here's how to set a static IP address on your Windows 10 PC. Click the magnifying glass icon in the bottom-left corner of your screen. Then type IP Address into the search bar and click Open. You can also hit Enter on your keyboard if you see Ethernet settings. Then click Change adapter options. You will see this under Related settings.
To set a static IP address in Windows 10 or 11, open Settings -> Network & Internet and click Properties for your active network. Choose the "Edit" button next to IP assignment and change the type to Manual. Flip the IPv4 switch to "On", fill out your static IP details, and click Save.
To set up a DHCP reservation, you need to know your IP address, which is easy enough to find out. You must then head to your router's configuration page —usually by typing its IP address in...
After gathering your connection name, subnet mask, and default gateway, you can set a static IP address in the terminal using the nmcli command. Or, in the GNOME desktop, open your connection settings and click the + icon, then enter the info for your static IP address there.
To set a static TCP/IP configuration on Windows 11, use these steps: Open Start. Search for Command Prompt, right-click the top result, and select the Run as administrator option. Type the...
To set a static IP address on Windows 10, open Settings > Network & Internet > Wi-Fi. Then click the connection, click on "Edit," select "Manual," turn on "IPv4," and set the static IP address. Alternatively, you can configure a static IP address from Command Prompt, PowerShell, and Control Panel.
Below is the output of running the ip command on my computer: $ ip route default via 192.168.122.1 dev enp1s0 proto static 192.168.122./24 dev enp1s0 proto kernel scope link src 192.168.122.69. On the line that starts with "default via", I can see that my gateway address '192.168.122.1' Make a note of your gateway address. Step 4: Set static ...
Counter-intuitive, but you can't use Set-NetIPAddress for setting an IP address. As the Set-NetIPAddress command documentation states: The Set-NetIPAddress cmdlet modifies IP address configuration properties of an existing IP address. To create an IPv4 address or IPv6 address, use the New-NetIPAddress cmdlet.
• ROUTER_IP - the gateway IP address for your router on the local network. • DNS_IP - the DNS IP address (typically the same as your router's gateway address). Here is an example configuration to set the static IP to 192.168.1.120 with a wireless connection to a router at 192.168.1.254: interface wlan0 static ip_address=192.168.1.120 ...
Select the TCP/IP tab and locate the IP address next to Router . Another way is to use the netstat command. Open a terminal, type this, and then select Enter : netstat -nr | grep default To display the default gateway IP on most Linux-based computers, enter this in a terminal window: ip route | grep default
Step 3. Select the Static IP Address radio button. Enter the desired Static IP address and Subnet Mask. Click Apply. Configuring Static IP Address on a Wireless Access Point (WAP) Step 1. Log into the WAP. Navigate to LAN > VLAN and IPv4 Address. Step 2. Select the Static IP radio button. Enter the desired Static IP address and Subnet Mask.
Right-click the network connection you need to set a static IP-address for and select 'Properties' option. After that, select Internet Protocol Version 4 (TCP/IPv4) seen under ' Networking ...
To enable DHCP or change other TCP/IP settings. Select Start, then type settings. Select Settings > Network & internet. Do one of the following: For a Wi-Fi network, select Wi-Fi > Manage known networks. Choose the network for which you want to change the settings. For an Ethernet network, select Ethernet, then select the Ethernet network you ...
Assign a Static Address. ip a add {ip_addr/mask} dev {interface} ... Example to set 192.168.1.254 as the gateway for subnet 192.168.1.. ip route add 192.168.1./24 via 192.168.1.254 Bring Up The Network Interface. ip link set dev {device} {up|down} Example to bring up eth0 interface.
To instead set a static IP address, use the addresses key, which takes a list of (IPv4 or IPv6), addresses along with the subnet prefix length (e.g. /24). DNS information can be provided as well, and the gateway can be defined via a default route: ... Reaching a directly connected gateway. This allows setting up a default route, or any route ...
The Set-NetIPAddress cmdlet modifies IP address configuration properties of an existing IP address. To create an IPv4 address or IPv6 address, use the New-NetIPAddress cmdlet. Examples Example 1: Modify an IP address PowerShell
Thank you for joining us on the Xfinity Forums @macman218! We don't currently offer the option for a Static IP through residential. However, it would be available through Comcast Business services! They can be reached by calling 1-800-391-3000. For the device that's disconnecting, that definitely shouldn't happen!
Update your on-premises VPN devices with the new VPN gateway IP address (for Site-to-Site connections). Update the gateway IP address value for any VNet-to-VNet local network gateways that will connect to this gateway. Download new client VPN configuration packages for P2S clients connecting to the virtual network through this VPN gateway.
Right-click on Wi-Fi or Local Area Connection. Click Properties. Select Internet Protocol Version 4 (TCP/IPv4). Click Properties . Select Use the following IP address. Enter the IP address, Subnet mask, Default gateway, and DNS server. Click OK. Your computer displays a static IP address. To set a static IP address on a Macintosh OS X computer ...
We use Cookies to optimize and analyze your experience on our Services, and serve ads relevant to your interests. By selecting Accept all, you consent to our use of Cookies.
Navigate to the Network Settings page of the gateway local console as shown following. Type 2 to go to the Network Configuration page shown following. Configure a static or DHCP IP address for the network port on your hardware appliance to present a file, volume, and Tape Gateway for applications.