Pop Mood Daily
news /

How to set up static dhcp so your computer’s ip address doesn’t change

DHCP makes it simple to configure network access for your home network, and port forwarding makes it easy to those computers from anywhere. By configuring static DHCP on your router, you can combine the best of both worlds.

The Problem with DHCP and Port Forwarding

DHCP is great. You configure your router to automatically assign IP addresses and the computers on your network just plain work. Port forwarding is useful because you can access your router from outside of your network and be redirected to the computer you need inside of your network. The problem is that these two wonderful things rely on one premise: your internal IP addresses don’t change. If your router changes the IP that is assigned to a machine by DHCP, then you have to reconfigure Port Forwarding. Many programs try to get around this fact by offering Universal Plug and Play (UPnP) port forwarding features, but not everything does.

How to set up static dhcp so your computer’s ip address doesn’t change

Newer routers often have the ability to remember which IP address was assigned to which computer, so if they disconnect and reconnect their IP doesn’t change. Often, though, a router reset will wipe this cache and start assigning IPs on a first-come, first-served basis. Tons of older routers don’t even have this ability, and immediately assign new IP addresses. With IP addresses changing, you have to reconfigure your port forwarding settings often, otherwise you may lose the ability to connect to your home computers.

You can do this on plenty of modern routers, but we’re going to use DD-WRT for this guide. We’ve touted DD-WRT’s ability many times before, and it’s not for nothing. This amazing custom router firmware has a solution to this mess: static DHCP, also known as DHCP reservation. While configuring your router for DHCP, you have the ability to enter the MAC addresses of your computers’ network cards and enter which IP address to assign them. DD-WRT will automatically take care of the rest! If you have a different router, you can try following along using your router’s own admin page–the instructions should be somewhat similar.

Finding Your MAC Address

The only real work you’ll have to do is find the MAC address of each computer’s attached networking card. If you’re using wireless then you should find the MAC of your wireless card, and if you’re wired then use the Ethernet card.

Just go down to the icon in your system tray for your connection and click it. Mine is wireless.

How to set up static dhcp so your computer’s ip address doesn’t change

Right-click on your current active connection and click on Status.

How to set up static dhcp so your computer’s ip address doesn’t change

Click on the “Details…” button.

How to set up static dhcp so your computer’s ip address doesn’t change

Your MAC address for this device is listed as “Physical Address.”

OS X users can check under their System Settings and click on Network. If you click on the various tabs for your connection, you should find a “Physical ID,” “Ethernet ID,” or “MAC Address.” Ubuntu users can type “ifconfig” in Terminal. You’ll see various network adapters, each displaying its own hardware address. Do this for all of the computers in your network that you need port forwarding for. The others will just get their IPs assigned automatically by DHCP.

DD-WRT and Static DHCP

Now that you have a list of MAC addresses for each of your computers, open up a browser tab and head over to your router’s DD-WRT interface. Click on Setup, and under Basic Setup, make sure DHCP is turned on.

How to set up static dhcp so your computer’s ip address doesn’t change

Scroll down to “Network Address Server Settings (DHCP)” and make a note of the starting IP address and the maximum number of users. The addresses you configure should fall within this range. Here, my range of IPs would be 192.168.1.100 – 192.168.1.114.

How to set up static dhcp so your computer’s ip address doesn’t change

Now, click on the Services tab up top.

How to set up static dhcp so your computer’s ip address doesn’t change

Under the DHCP Server section, you can see that there’s a list of “Static Leases” click on the Add button to add a new one.

How to set up static dhcp so your computer’s ip address doesn’t change

Enter the MAC address of each computer, give each one a name so you know which is which, and then assign them an IP address. You won’t be able to add the same IP address to two different MAC address, so make sure each MAC has a unique IP. If your version of DD-WRT also has a space to enter the “Client Lease Time,” a safe setting would 24 hours, or 1440 minutes.

That’s it! Be sure to click on both the Save button and the Apply Settings button, and wait for the changes to take effect. The settings should automatically change when each computer’s lease expires, though you can reconnect from each computer if you want the changes to take effect immediately.

Now, whether your computer loses its connect, the router gets power cycled, or the DHCP lease expires, each computer you entered into the list will stick to its assigned IP. Furthermore, you won’t have to manually configure static IPs on each machine! Port forwarding won’t have to be a pain ever again.

Does your router support DHCP reservations? Do you have a more clever use for this system? Share your thoughts in the comments!

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.

When you have a lot of devices on your network—computers, network attached storage, and Raspberry Pis—it can be annoying to constantly look up their IP addresses when you need to access them remotely. Make your life easier with a set of unchanging, static IP addresses for those machines.

DHCP vs. Static IP Address

Your router assigns IP addresses to devices on your network using DHCP, or Dynamic Host Configuration Protocol. As you connect new devices to the network, they’ll 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’ll never even notice it happening in the background. But if you regularly SSH into your Raspberry Pi, use Wake-on-LAN to turn your computer on from across the house, 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. That’s where a static IP address comes in handy.

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. Doing it at the router level is called assigning 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’ve reserved, with your computer being none the wiser.

How to Set Up a DHCP Reservation

To set up a DHCP reservation, head to your router’s configuration page—usually by typing its IP address in your browser’s navigation bar—and log in. (If you’re using a mesh Wi-Fi system with an app instead of a config page, you’ll find these settings in the app.)

The location is different for every config page, but you’re looking for something called “DHCP reservations,” “static IP addresses,” or something similar—on my Asus router, it’s in the LAN settings category.

To assign a reservation, you’ll 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’ll 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’ll 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!

I want to assign a fixed private IP address to a server so that local computers can always access it.

Currently, the DHCP address of the server is something like 192.168.1.66 .

Should I simply assign the server this same IP as fixed and configure the router so that it will exclude this IP from the ones available for DHCP?
Or are there some ranges of IP that are traditionally reserved for static addresses?

My beginner’s question doesn’t relate to commands but to general principles and good practices.

Practical case (Edit 1 of 2)

Thank you for the many good answers, especially the very detailed one from Liam.

I could access the router’s configuration.

When booting any computer, it obtains its IPv4 address in DHCP.

The IP and the MAC addresses that I can see with the ipconfig all command in Windows match those in the list of connected devices that the router displays, so that I can confirm who is who.

The list of connected devices is something like

Things that I don’t understand:

  • Although all IP addresses are all obtained in DCHP, they are displayed as by the router as if they are static addresses.
  • The router’s setting “Enable DHCP on LAN” is set on “Off” but the IP addresses are obtained in DHCP.
  • IP addresses attributed to the computers are outside of the very narrow DHCP range of 192.168.1.33 to 192.68.1.35

On any Windows computer connected in DCHP, ipconfig /all shows something like:

I’m missing something, but what?

Practical case (Edit 2 of 2)

For details, see my answer to Michal’s comment at the bottom of this message.

I must admit that the way the router display things keeps some parts a mystery. The router seems to be using DHCP by default, but remembers the devices that were connected to it (probably using their mac address). It could be the reason why it lists the IPs as static although they’re dynamic. There was also Cisco router at 192.168.1.4 which appeared for some business communications service, but I had no credentials to access it.

7 Answers 7

Determine the IP address that is assigned to your server and then go onto the DHCP and set a DHCP reservation for that server.

DHCP services differ across many possible implementations, and there are no ranges of IP that are traditionally reserved for static addresses; it depends what is configured in your environment. I’ll assume we’re looking at a typical home / SOHO setup since you mention your router is providing the DHCP service.

Should I simply assign the server this same IP as fixed and configure the router so that it will exclude this IP from the ones available for DHCP?

I would say that is not best practice. Many consumer routers will not have the ability to exclude a single address from within the DHCP range of addresses for lease (known as a ‘pool’). In addition, because DHCP is not aware that you have “fixed” the IP address at the server you run the risk of a conflict. You would normally either:

  • set a reservation in DHCP configuration so that the server device is always allocated the same address by the DHCP service, or
  • set the server device with a static address that is outside the pool of addresses allocated by the DHCP service.

To expand on these options:

Reservation in DHCP

If your router allows reservations, then the first, DHCP reservation option effectively achieves what you have planned. Note the significant difference: address assignment is still managed by the DHCP service, not “fixed” on the server. The server still requests a DHCP address, it just gets the same one every time.

Static IP address

If you prefer to set a static address, you should check your router’s (default) configuration to determine the block of addresses used for DHCP leases. You will normally be able to see the configuration as a first address and last address, or first address and a maximum number of clients. Once you know this, you can pick a static address for your server.

An example would be: the router is set to allow a maximum of 128 DHCP clients with a first DHCP IP address of 192.168.1.32. Therefore a device could be assigned any address from 192.168.1.32 up to and including 192.168.1.159. Your router will use a static address outside this range (generally the first or last address .1 or .254) and you can now pick any other available address for your server.

It depends on the configuration of your DHCP service. Check the settings available to you for DHCP then either reserve an address in DHCP or pick a static address that is not used by DHCP – don’t cross the streams.

How to set up static dhcp so your computer’s ip address doesn’t change

Moris

Nowadays, most networking devices such as routers or network switches use IP protocol as the standard to communicate over the network. In the IP protocol, each device on a network has a unique identifier that is called IP address. The easiest method of achieving this was configuring a fixed IP address or static IP address. Since there are limitations to static IP, some administrators seek to use dynamic IP instead. DHCP (Dynamic Host Configuration Protocol) is a protocol for assigning dynamic IP addresses to devices that are connected to the network. So DHCP vs static IP, what’s the difference?

What Is a Static IP Address?

A static IP address is an address that is permanently assigned to your network devices by your ISP, and does not change even if your device reboots. Static IP addresses typically have two versions: IPv4 and IPv6. A static IP address is usually assigned to a server hosting websites and provides email, VPN and FTP services. In static IP addressing, each device on the network has its own address with no overlap and you’ll have to configure the static IP addresses manually. When new devices are connected to a network, you would have to select the “manual” configuration option and input the IP address, the subnet mask, the default gateway and the DNS server.

A typical example of using static IP address is web server. From the Window on your computer, go to START -> RUN -> type “cmd” -> OK. Then type “ping on the Command Window, the interface will pop up as you can see below. The four-byte number 74.125.127.147 is the current IP for If it is a static IP, you would be able to connect Google at any time by using this static IP address in the web browser if you want to visit Google.

How to set up static dhcp so your computer’s ip address doesn’t change

What Is DHCP?

What is in contrast with the static IP address is the dynamic IP address. Static vs dynamic IP topic is hotly debated among many IT technicians. Dynamic IP address is an address that keeps on changing. To create dynamic IP addresses, the network must have a DHCP server configured and operating. The DHCP server assigns a vacant IP address to all devices connected to the network. DHCP is a way of dynamically and automatically assigning IP addresses to network devices on a physical network. It provides an automated way to distribute and update IP addresses and other configuration information over a network. To know how DHCP works, read this article: DHCP and DNS: What Are They, What’s Their Difference?

DHCP vs Static IP: Which One Is Better?

Proper IP addressing is essential for establishing communications among devices on a network. Then DHCP vs static IP, which one is better? This part will discuss it.

Static IP addresses allow network devices to retain the same IP address all the time, A network administrator must keep track of each statically assigned device to avoid using that IP address again. Since static IP address requires manual configurations, it can create network issues if you use it without a good understanding of TCP/IP.

While DHCP is a protocol for automating the task of assigning IP addresses. DHCP is advantageous for network administrators because it removes the repetitive task of assigning multiple IP addresses to each device on the network. It might only take a minute but when you are configuring hundreds of network devices, it really gets annoying. Wireless access points also utilize DHCP so that administrators would not need to configure their devices by themselves. For wireless access points, PoE network switches, which support dynamic binding by users’ definition, are commonly used to allocate IP addresses for each device that is connected together. Besides, what makes DHCP appealing is that it is cheaper than static IP addresses with less maintenance required. You can easily find their advantages and disadvantages from the following table.

IP addressAdvantagesDisadvantages
DHCPDHCP does not need any manual configuration to connect to local devices or gain access to the Web.Since DHCP is a “hands-off” technology, there is a danger that someone may implant an unauthorized DHCP server, making it possible to invade the network for illegal purposes or result in random access to the network without explicit permission.
Static IPThe address does not change over time unless it is changed manually – good for web servers, and email servers.It’s more expensive than a dynamic IP address because ISP often charges an additional fee for static IP addresses. Also, it requires additional security and manual configuration, which adds complexity when large numbers of devices are connected.

Conclusion

After comparing DHCP vs static IP, it is undoubtedly that DHCP is the more popular option for most users as they are easier and cheaper to deploy. Having a static IP and guessing which IP address is available is really bothersome and time-consuming, especially for those who are not familiar with the process. However, static IP is still in demand and useful if you host a website from home, have a file server in your network, use networked printers, or if you use a remote access program. Because a static IP address never changes so that other devices can always know exactly how to contact a device that utilizes a static IP.

Are static IP addresses better than dynamic addresses?

How to set up static dhcp so your computer’s ip address doesn’t change

  • Tweet
  • Share
  • Email

A static IP address, or fixed IP address, is an IP address that never changes. Not everyone needs a static IP address, but knowing how they differ from dynamic IP addresses can help you understand whether you should use a static IP address.

Static IP Address Uses

Here are some example situations for when you might need a static IP address:

  • Setting up a home file server.
  • Adding a second router to a network.
  • Enabling access to a computer when away from home or work.
  • Forwarding ports to certain devices.
  • Sharing a printer over a network.
  • Connecting to an IP camera when away from home.

Static & Dynamic: What They Mean

The terms static and dynamic are simple to understand. At the core, the only real change you’ll notice between static versus dynamic IP addresses is that the former never changes, while the latter does.

Most people don’t care if their IP address changes. If you never know what your IP address is and never have a reason to keep it the same, then dynamic addresses are fine for you.

How to set up static dhcp so your computer’s ip address doesn’t change

However, if your network or computer is set up in a specific way where some devices would work easier and set up would be smoother for you as the admin if an IP address always stayed the same, then static addressing is what you want.

Static IP addresses are assigned manually by an administrator. In other words, the device receiving the static IP is given a specific address (such as 192.168.1.2), and from then on, the address never changes.

Dynamic IP addresses are not assigned manually. They are assigned automatically by DHCP (Dynamic Host Configuration Protocol).

When Static IP Addresses Are Used

Static IP addresses are necessary for devices that need constant access.

For example, a static IP address is necessary if your computer is configured as a server, such as an FTP server or web server. If you want to ensure that people can always access your computer to download files, force the computer to use a static, never-changing IP address.

If the server was assigned a dynamic IP address, it would change occasionally, preventing your router from knowing which computer on the network is the server.

If you want to access your home computer while you’re on a trip or your work computer when you’re at home, setting up the computer to use a static IP address lets you reach that computer at any time without fearing that the address will change and block your access to it.

A shared printer is another example of when to use a static IP address. If you have a printer that everyone in your house or office needs to share, give it an IP address that won’t change no matter what. That way, when every computer is set up to connect to that printer, those connections remain indefinitely because the address never changes.

Here are some other reasons to use static IPs:

  • They provide slightly better protection against network security problems than DHCP address assignment provides.
  • Some network devices don’t support DHCP.
  • They help avoid potential IP address conflicts where DHCP might supply an address already assigned elsewhere.
  • They provide geolocation that’s more accurate than a dynamic IP address.

When Not to Use a Static IP Address

Because a static IP address is assigned manually, it’s less efficient for a network admin to give it out, especially in mobile situations. Someone must visit the device in person to give it an IP address instead of letting DHCP assign the address automatically.

For example, you wouldn’t set a static IP address on a smartphone because the moment it reaches another Wi-Fi network, the address might not be supported on that network, meaning that it won’t be able to access the internet.

Dynamic addressing is more convenient in this situation because it’s easy for administrators to set up. DHCP works automatically with minimal intervention needed, allowing mobile devices to move between different networks seamlessly.

Static IP Address Assignment on Home Networks

Businesses are more likely to use static IP addresses than home networks. Implementing static IP addresses isn’t easy and frequently requires a knowledgeable technician.

However, you can have a static IP address for your home network. When making static IP assignments for local devices on home and other private networks, the address numbers should be chosen from the private IP address ranges defined by the Internet Protocol standard:

  • 10.0.0.0–10.255.255.255
  • 172.16.0.0–172.31.255.255
  • 192.168.0.0–192.168.255.255

These ranges support thousands of IP addresses. It’s common for people to assume they can choose any number in the range and that the specific choice doesn’t matter much. This is untrue.

To choose and set specific static IP addresses suitable for your network, follow these guidelines:

  • Do not choose any addresses that end with .0 or .255. These addresses are usually reserved for use by network protocols.
  • Do not choose the addresses at the beginning of a private range. Addresses like 10.0.0.1, 192.168.0.1, and 192.168.0.100 are commonly used by network routers and other consumer devices. These are the first addresses hackers attack when trying to break into a private computer network.
  • Don’t choose an IP address that falls outside the range of your local network. For example, to support all addresses in the 10.x.x.x private range, the subnet mask on all devices must be set to 255.0.0.0. If they aren’t, some static IP addresses in this range don’t work.

How to Get a Static Public IP Address

Internet service providers (ISP) traditionally assign all their IP addresses to customers dynamically, due to historical shortages of available IP numbers.

Contact your service provider if you prefer a static IP address. You can’t get a static public IP address without requesting it from your ISP. Customers can sometimes obtain a static IP by subscribing to a special service plan and paying extra fees.

How to set up static dhcp so your computer’s ip address doesn’t change

  • More and more computer users are looking for ways to enhance their computer privacy. Using dynamic IP addresses and private DNS servers are a great way to do that.
  • If you can’t change your static IP address and DNS servers on Windows 10, you can try forcing it from the Command Prompt or PowerShell. Discover more solutions.
  • Visit our VPN Hub to find out how to amplify your digital security and online privacy.
  • Return to our Network Troubleshooting Hub for more useful guides.

How to set up static dhcp so your computer’s ip address doesn’t change

Your IP address represents your ID when you go online. It’s assigned by your ISP and can be used to trace your approximate location.

Meanwhile, your DNS servers are responsible for translating the domains you search online into IP addresses so that machines can understand where you want to go. They are also assigned by your ISP.

However, many privacy-concerned users understand why it’s critical to change their IP address and DNS servers on Windows 10 and other operating systems. It’s problematic when that’s not possible.

If this sounds familiar to you, keep reading to learn how to fix it:

I can’t change my ip address. When I right click local area connection -> properties, the properties for Internet Protocol Version 4 is greyed out. could anyone help me fix this? thanks a lot.

In other cases, Windows 10 pops up the following error:

However, you can fix the unexpected condition error on Ethernet or Wi-Fi so that you can change your static IP address and DNS servers.

How can I change my static IP address and DNS servers on Windows 10?

Set a static IP address using PowerShell

You can use the New-NetIPAddress cmdlet to set up a new IP address and customize settings.

We suggest reading Microsoft’s complete documentation on New-NetIPAddress to understand the role of each parameter.

Reset your IP address using CMD

You can use the ipconfig/release command to release the current IP address of your computer. Keep in mind that you will have no Internet access at this point.

However, you’ll get back online in no time after using the ipconfig/renew command. Your computer will request a new IP address from a DHCP server, such as your router.

Change your DNS server using PowerShell

You can use the Set-DnsClientServerAddress cmdlet to specify at least one IP address for the DNS servers associated with your network adapter.

It statically adds the DNS server addresses, which will override any DHCP configuration for that network adapter.

Flush your DNS and reset Winsock

Reboot your computer to finalize changes.

If you can’t change your static IP address and DNS server on Windows 10, use the commands above to flush your DNS servers and reset Winsock, which is responsible for your TCP/IP configuration.

Set DHCP IP assignment

If you use automatic DHCP settings, it will be easier to configure TCP/IP settings on your Windows 10 PC.

Use a VPN service

If you wish to regularly change your IP address and protect your DNS queries, we suggest opting for a premium VPN service.

You just have to connect to a VPN IP address. It will not only hide your true IP and location, but also encrypt all data traffic to secure your network from hackers.

We think that Private Internet Access is the best VPN for the job. It’s incredibly intuitive, supports more than 3,300 VPN servers across 48 countries, and can be used to access blocked content, including Netflix US from anywhere.

PIA supports static and dynamic IP addresses, native port forwarding, and exclusive DNS servers. It also comes with a kill switch and a malware blocker for browsers.

More about PIA:

  • WireGuard and OpenVPN with up to 256-bit military-grade encryption
  • No IP, DNS or WebRTC leaks
  • 24/7 live chat support
  • 30-day money-back guarantee (no free trial)

Conclusion

To summarize, if you can’t change your static IP address and DNS server on Windows 10, you can try resetting them from the PowerShell or CMD.

It’s also a good idea to refresh network settings by flushing DNS and resetting Winsock. Plus, you can specify automatic DHCP IP assignment.

However, we also recommend using a reliable VPN service like Private Internet Access (buy here). It makes it possible to regularly change your IP address and connect from any part of the world.

Did you manage to modify your IP address and DNS servers using these solutions? What other fixes worked for your computer? Let us know in the comment section below.

The answer to “What is DHCP?” is that it’s the standard mechanism to dynamically assign IP addresses within a network. It stands for Dynamic Host Configuration Protocol.

IP, or Internet Protocol, addressing is a logical means of assigning addresses to devices on a network. Each device connected to a network requires a unique IP address.

At home, dynamic host configuration protocol (DHCP) assigns IP addresses to your smartphones, laptops, tablets, and devices like doorbell cameras. When you use wifi on your home network, typically your router is a DHCP server.

In a large enterprise setting, a DHCP server is usually a dedicated computer. By simplifying IP address management, it saves money, is more secure, and doesn’t eat up valuable admin time.

In this glossary entry, we’ll explore the fundamentals of how DHCP works. Then, we’ll take a deeper look at two aspects: dynamic addressing and the communications protocol.

How does DHCP work?

DHCP is a network management protocol. A client device (or DHCP client), such as a laptop, joins a network and requests an IP address. The request is made to a DHCP server.

These servers are often configured with redundancy—often called DHCP failover—or clustering among other network servers. Servers can run on both IPv4 and IPv6 networks.

The server will quickly and automatically assign an IP address and some related network configuration parameters. Once the device has accepted the assignment, it can communicate with both the internal network and the public internet.

Relevant parameters

In addition to assigning IP addresses, these servers also provide relevant parameters, known as DHCP options. The Internet Assigned Numbers Authority (IANA), the global coordinator of IP addresses, defines available DHCP parameters.

Options number in the hundreds. Key among them is how long the IP address can be used—known as the lease time. They also include the default gateway, its subnet mask, and its DNS server.

Some additional definitions

To clarify, let’s quickly define some of these terms we just mentioned:

  • A default gateway transfers data back and forth between the local network and the internet, or between local subnets.
  • IP networking uses a subnet mask to separate the host address and the network address portions of an IP address.
  • A DNS server resolves names to IP addresses, translating domain names that we easily remember, like bluecatnetworks.com, into IP addresses like 104.239.197.100.

Dynamic IP addressing with DHCP

The assignment of IP addresses happens dynamically within a given address range. As a result, a device connected to the network doesn’t have a forever address. The IP address can periodically change as its lease time expires unless the lease is successfully renewed.

For services that always need to be on, a static IP address is often a better option. Corporate enterprises commonly use static IP addresses for hardware like mail servers. Certainly, a DHCP server should have a static IP address.

However, there are drawbacks to dedicating a specific IP address to a device or service. A network administrator must manually assign, configure, and track the IP address. It’s a time-consuming task. Oftentimes, it requires the admin to physically be with the device.

Meanwhile, dynamic IP addresses are usually the preferred choice because they:

  • Cost less to manage than static IP addresses;
  • May offer more privacy and security with a constantly changing IP address; and
  • Don’t require manual administration when a device roams from one subnet to another.

DHCP communications protocol

Communications to fulfill a DHCP request involves both the server and client. Furthermore, a relay agent or IP helper often facilitates communication between the two. Relay agents receive broadcast DHCP messages from clients and then re-send those messages with configuration information to servers.

Communication happens via small units of data, called packets, that are routed through a network. Networking protocols like IP govern all its rules.

Most of the time, communication occurs in four steps. Briefly, they are:

  1. A discover packet is sent from the client to the server.
  2. The server replies to the client with a DHCP offer packet containing an IP address.
  3. The client receives and validates the offer, then sends a request packet back to the server to accept the address.
  4. The server sends an acknowledgement packet back to the client to confirm the chosen IP address.

With this in mind, one final point: DHCP alongside DNS and IP address management (IPAM) are together known as DDI. Want to know how to define DDI or how it works to form a complete management solution? The BlueCat platform is the place to start.

IP addresses are an essential part of computer networking. They play an important role in sending and receiving information on the internet. Every device that connects to an internet network has an IP address, which means there are billions of IP addresses that exist. Today, we’re going to discuss IP addresses, how they work, static IP vs dynamic IP, and more.

We’ll cover:

Get hands-on with computer networking for free

Learn the fundamentals of computer networking with Educative’s 1-week free trial

What is an IP address?

An Internet Protocol address, or IP address, is a unique identifier assigned to every device on a TCP/IP network. The Internet Protocol is the set of rules that outlines how data should be transported across the internet or local networks. IP addresses help identify devices and allow them to communicate with each other.

Internally, IP addresses are stored as numbers. The Domain Name System (DNS) allows us to use words to identify different servers on the internet, such as an application, server, or website. When we type a URL into our search bar, DNS looks up that domain’s IP address and returns it to our network device. There are two main versions of IP addresses: IPv4 and IPv6.

IP addresses are strings of four numbers separated by characters. For example, an IP address could look like this: 152.132.4.23 . They’re produced by a division of the Internet Corporation for Assigned Names and Numbers to help make the internet more secure and accessible.

We can think of IP addresses as physical home addresses. We can exchange addresses with friends and family. Those addresses give us a destination that allows us to communicate with friends and family through different communication methods like birthday cards, letters, and more.

How does an IP address work?

All devices communicate with one another using the Internet Protocol (IP). Here’s how it works:

Before our devices connect to the internet, they connect to a network that’s connected to the internet. This network gives us access to the internet. For example, the network that we use at home will most likely be our Internet Service Provider (ISP). After this, our ISP will assign an IP address to our device. Our internet activity will go through the ISP and then be routed back to us using our assigned IP address.

If we leave our home and take our personal device with us, our IP address from our home network doesn’t come with us. Let’s say we go to a hotel. When we want to use the internet at the hotel, we’d probably connect to their Wi-Fi network. Since we’re using a new network, we’re temporarily assigned a new IP address. This temporary IP address is assigned to us by the hotel’s ISP.

Can our IP addresses change? Yes, they can! If we turn our modem or router off, our IP address may change. We can also contact our ISP to change our IP address. This is one of the reasons why DNS is so important. Instead of directly informing others when our IP address changes, we can directly inform our DNS server. This means that any other device that contacts the DNS server will get the updated information for the new IP address.

Static IP addresses

A static IP address is an IP address that doesn’t change. Our static IP addresses usually stay the same unless our network architecture changes or our devices are out of commission. Static IP addresses are typically used for servers or other important networking equipment. They’re popular within business settings because they ensure that the devices connected to them keep a consistent address. They also work well for remote access solutions.

A static IP address is assigned to a device by an ISP. Typically, static IP addresses add to the cost of your internet service.

Dynamic IP addresses

A dynamic IP address is an IP address that can regularly change. An ISP will buy a large number of dynamic IP addresses and assign them to their customer’s devices. Dynamic IP addresses are often reassigned. Reassigning IP addresses helps internet providers save money and ensure a higher level of security. It also means that they don’t need to take the time to reestablish any network connections if we go on a vacation or move to a new location.

Dynamic IP addresses are more common for consumer equipment and personal use. A dynamic IP address is assigned to a device by our ISP’s Dynamic Host Configuration Protocol (DHCP) servers. The DHCP server typically uses network routers to assign addresses to devices.

How to set up static dhcp so your computer’s ip address doesn’t change

IP address configuration is one of the most critical, if simple, settings on your network devices. Workstations, servers, routers, and other components must have properly assigned IP address settings to participate on the network.

This two-part article series covers static and dynamic IP address settings and the configuration of a DHCP server. This article (part one) defines network identities, contrasts static and dynamic configurations, and covers the commands needed to manage the settings. Part two covers the deployment of a DHCP server, DHCP scope configuration, and client-side management of dynamic IP addresses.

Three identities

Network nodes have three identities: Hostname, logical address, and physical address. These three addresses provide different types of connectivity and are used in various ways during network communication.

More Linux resources

  • Basic Linux commands cheat sheet
  • Advanced Linux commands cheat sheet
  • Linux system administration skills assessment
  • Free course: RHEL technical overview

The three identities are:

  • Hostname – descriptive, easy to remember names for the benefit of humans
  • IP address – logical address to uniquely identify a network node, primarily used by routers
  • MAC address – physical address encoded on the network interface card (NIC), used mainly by switches

Hostnames are configured when the OS is installed, and MAC addresses are hard-coded on NICs. Sysadmins typically configure IP address information on servers, workstations, portable systems, and network devices.

I’ll cover the two primary ways that IP address information is provided to the nodes: Static and dynamic configurations.

Static and dynamic configurations:

  • Static – manually configured by sysadmins
  • Dynamic – automatically leased by clients from a Dynamic Host Configuration Protocol (DHCP) server

The standard settings are IP addresses, subnet masks, default gateways, and nameservers.

Static configuration

NetworkManager primarily handles network configuration. NetworkManager can be used in a GUI, TUI, or CLI environment.

The nmcli process to set a static IP configuration is to create a connection profile and then set the values desired. Red Hat has documentation here.

Here is an example of creating a network connection named home-network with an IP address of 192.168.2.200/24, a default gateway of 192.168.2.1, and a name server of 8.8.8.8:

The GUI configuration can be accomplished by selecting the Manual button and then filling in the blanks with the appropriate information.

How to set up static dhcp so your computer’s ip address doesn’t change

Recall that you can make no typographical errors when configuring IP addresses, and duplicate addresses will cause network connection problems.

Why static configurations?

Static IP addresses do not change unless the administrator actively reconfigures them. This is an important fact when it comes to servers because most client computers need to be able to find servers consistently.

For example, an NFS file server hosting department directories needs to keep the same IP address over time as configuration files such as a client computer’s /etc/fstab file may use the IP address for connectivity.

Other network nodes also may need an unchanging network identity. Appliance devices such as firewalls or proxies, print servers, name resolution servers, web servers, and virtually all other infrastructure devices need a consistent identity. Sysadmins will almost always configure these systems with static IP address information.

Tracking IPs

It is essential to track your statically assigned IP addresses. Depending on the size of your environment, this might be so simple as a text document or a spreadsheet, all the way up to specialized software that integrates with directory services and DHCP. I find it’s best to at least track IP address (and subnet mask), MAC address (not essential), hostname, role on the network (justifies why the devices have a static IP), and any additional notes.

How to set up static dhcp so your computer’s ip address doesn’t change

Dynamic configurations

The devices that require a static IP configuration are a relatively small percentage of your network. Most network devices are end-user systems such as workstations, laptops, phones, tablets, and other transient devices. In addition, these systems do not usually host network services that need to be discoverable by other computers.

IP address configurations are unforgiving when it comes to duplicates and typos. In addition, static IP address settings are fairly time-consuming. Finally, IP address settings tend to be temporary, especially with the advent of portable devices like laptops, phones, and tablets. To save time and reduce the chances of a mistake, dynamic IP address allocation is preferable for these kinds of nodes.

Linux systems are configured as DHCP clients by using NetworkManager.

Here is an example of adding a network connection profile configured to lease an IP address from DHCP:

By not specifying an address NetworkManager assumes the DHCP client role.

Here is a screenshot of a dynamic IP address configuration from the GUI:

How to set up static dhcp so your computer’s ip address doesn’t change

In the cloud

  • Understanding cloud computing
  • What is hybrid cloud?
  • Free course: Red Hat OpenStack technical overview
  • Hybrid cloud strategy for dummies eBook
  • O’Reilly: Accelerating cloud adoption

The dhclient command

The dhclient command is also used to manage dynamic IP address configurations. However, in RHEL 8, network configurations, including DHCP, are handled by NetworkManager. Older RHEL versions rely on dhclient , as do some other distributions.

The ip route command displays lease information.

The second article in this series goes over the dhclient command in more detail.

Wrap up

IP address settings are crucial to network communications. Values such as the IP address, subnet mask, default gateway, and nameservers can be manually managed, but sysadmins must be very careful not to make any mistakes. Static settings don’t change unless the administrator reconfigures them, so they are essential for servers whose services are made available across the network.

Dynamic IP configurations are far more convenient for systems that don’t host network services, such as end-user devices. Furthermore, many of these devices enter and leave the network regularly, and it would be very time-consuming to set IP values each time manually. Instead, a DHCP server is used to host a pool of available addresses that client systems can lease.

Understanding the difference between static and dynamic IP addresses is straightforward but essential for administrators. As a general rule, servers and network devices utilize static, unchanging IPs, while client devices rely on dynamically allocated IP configurations.

Some users would like to have the same IP address assigned to their Airtame every time it is connected to a specific network. Airtame doesn’t yet have this setting built in so for now you will need to make the IP reservation in your DHCP server.

Are you deploying multiple Airtame devices? Check The time-saving tips for deploying multiple devices.

What you’ll need

Access to the Network’s configuration panel. Usually accessed through the IP 192.168.0.1 or find your router here.

The MAC address of the specific Airtame 1 AP (2.4GHz of 5GHz) used to connect to the network’s access point. (Airtame 2 has a unified MAC address)

The desired, available, IP address.

The steps

Connect to your network

Open your network preferences panel by typing your router’s IP. Find yours here – the same link as the above.

Look for an option with keywords like “Assign” “IP” & “DHCP”

Write an IP of your choice and Airtame’s MAC address you found earlier

Save all settings

Learn more

Do you have any questions?

You can write to us using the blue chat box in the lower right corner or send an email to [email protected] and we will be here to assist you.

If you are facing technical issues, remember to include Airtame device logs in your message.

for product updates to stay posted on future features.

There are some cases when running JADConfig requires that the local network be bypassed entirely and to connect the laptop directly into port 1 of the Just Add Power switch in order to fully succeed.

When this happens, it is also necessary to assign a Static IP address to your laptop, as a DHCP Server will not be reachable to properly assign your computer an IP address.

The Static IP address you assign must be in the same IP subnet as the local network and control system processor, and must be different than the local network router IP address, and the IP address you plan on assigning to the Just Add Power switch. Additionally, you must set your Default Gateway as the router’s IP.

Step 1) Open your “Network and Sharing Center”

Right-click on your Network icon located in your Windows System Tray (lower-right corner of your display), then select “Open Network and Sharing Center”

How to set up static dhcp so your computer’s ip address doesn’t change How to set up static dhcp so your computer’s ip address doesn’t change

Step 2) Click on “Change adapter settings”

How to set up static dhcp so your computer’s ip address doesn’t change

Step 3) Right-click on the Wired adapter connected directly into port 1 of the Just Add Power switch, then choose “Properties”

How to set up static dhcp so your computer’s ip address doesn’t change

Step 4) In the Ethernet Properties window scroll down to select “Internet Protocol Version 4 (TCP/IPv4)”, then click “Properties”

How to set up static dhcp so your computer’s ip address doesn’t change

Step 5) In the IPv4 Properties window, select the option for “Use the following IP address”, enter the appropriate IP address, Subnet mask, and Default gateway based on your system, then click “OK”

Note: You must enter all three fields. The IP address you choose must be in the same subnet as your local network, and must not be the IP address you plan to assign to the Just Add Power switch (refer to the Examples at the top of this Knowledge Base article if needed)

How to set up static dhcp so your computer’s ip address doesn’t change

Step 6) In the Ethernet Properties window, click “Close” to apply the changes

How to set up static dhcp so your computer’s ip address doesn’t change

Step 7) Confirm the changes have been properly applied

Open a Windows Command Prompt, then type “ipconfig”
Confirm that the IP address, Subnet mask, and Default gateway match the settings you applied, and that there are no other IP address settings present.

How to set up static dhcp so your computer’s ip address doesn’t change

Step 8) If you have not already done so, you may need to Disable All Network Adapters other than the Wired connection directly into port 1 of the Just Add Power switch.

I have a Windows 8 machine that has only a single Ethernet port. It needs to use DHCP and also needs a static IP. Each IP is in a different subnet, and each serves a different, incompatible purpose.

This machine must use DHCP because the site network admin says this is the only supported way to get a 192.168.x.y address. Either his network scheme doesn’t have a static IP block within that subnet, or he won’t assign one of them to this machine.

I can’t risk using a DHCP-assigned IP statically, betting it won’t be reassigned after the lease expires. That would let me use Windows’ ability to assign multiple static IPs to the interface, but this is a production server, not something I can risk getting bounced off the network hours or days later.

I realize that some DHCP servers let you set up static MAC to IP assignments, so that my machine’s DHCP IP is never reassigned, but since I know of no DHCP server that will issue two different IP addresses, each in a different subnet, that’s no help here. (And if there is such a DHCP server, my client probably doesn’t use it and wouldn’t change over to it if I asked.)

Since I can’t do this entirely with DHCP, I need a static IP because this machine also acts as a server to a 10.x.y.z subnet. The local network admins have given me a static IP in that scheme, but it’s insufficient because I also need to talk to the 192.168.x.y side of the network.

I’m aware of a similar question here. I’m asking again because:

That other question was posed when Windows 7 was current. Perhaps Microsoft used those 2+ years to fix this weakness in the Windows 8 network stack implementation?

(Yes, weakness: Linux allows a network interface with both a DHCP and a static IP. There’s nothing about TCP/IP that prevents Microsoft from allowing this. They just have to write the code to allow it.)

It seems the network configuration GUI in Windows 8 has the same limitation as Windows 7’s, but perhaps there is some low-level hack that will let us assign a static IP alias to the DHCP interface?

How to set up static dhcp so your computer’s ip address doesn’t change

Dynamic Host Configuration Protocol (DHCP) is a network management protocol used to automate the process of configuring devices on IP networks, thus allowing them to use network services such as DNS, NTP, and any communication protocol based on UDP or TCP. A DHCP server dynamically assigns an IP address and other network configuration parameters to each device on a network so they can communicate with other IP networks. DHCP is an enhancement of an older protocol called BOOTP. DHCP is an important part of the DDI solution (DNS-DHCP-IPAM).

Watch & Learn from Suzanne: DHCP fundamentals in 20 minutes

This video is an abstract of our DHCP demystified training available in our DDI introduction cursus composed of DHCP, DNS and IPAM. By watching it, you will learn the role of DHCP, the principles of the DHCP protocol and the message flows between a client and a server.

Configuration Data Sent by DHCP Server and Key Values

The basic flow is that a DHCP server hands out configuration data, based on the administrator’s policy, to a requesting client. Common network parameters (sometimes referred to as “DHCP Options“) requested include subnet mask, router, domain name server, hostname and domain name.

As the requesting client has no IP address when joining the network, it broadcasts the request. The protocol is thus used in a very early stage of IP communication. If such dynamic protocol is not used to get an IP address, the client has to use a predefined IP address generally called “static IP address”, which is manually configured on the client network interface in configuration files or with a specific command.

The DHCP service brings three key values: 1) Operation tasks are reduced: the network administrator no longer needs to manually configure each client before it can use the network 2) The IP addressing plan is optimized: addresses no longer being used are freed up and made available to new clients connecting 3) User mobility is easily managed: the administrator doesn’t need to manually reconfigure a client when its network access point changes.

How to set up static dhcp so your computer’s ip address doesn’t change

DHCP Lease Time Management

The IP address information assigned by DHCP is only valid for a limited period of time, and is known as a DHCP lease. The period of validity is called the DHCP lease time. When the lease expires, the client can no longer use the IP address and has to stop all communication with the IP network unless he requests to extend the lease “rent” via the DHCP lease renewal cycle. To avoid impacts of the DHCP server not being available at the end of the lease time, clients generally start renewing their lease halfway through the lease period. This renewal process ensures robust IP address allocation to devices. Any device asking for a new IP version 4 address at arrival on the network and not receiving an answer will use automatic private internet protocol addressing (APIPA) to select an address. These addresses are in the network range 169.254.0.0/16.

Usage Scenarios

There are four key DHCP usage scenarios: 1. Initial Client Connection: the client requests from the DHCP server an IP address and other parameter values for accessing network services 2. IP Usage Extension: the client contacts the DHCP server to extend usage of its current IP address 3. Client Connection After Reboot: the client contacts the DHCP server for confirmation that it can use the same IP address being used before reboot 4. Client Disconnection: the client requests the DHCP server to release its IP address.

How to set up static dhcp so your computer’s ip address doesn’t change

DHCP Options

DHCP options can be used to automatically provide clients with information on the network services it can use. This is a very efficient way to push the IP address of the time server, the mail server, the DNS server and the printer server. This can also be used to provide a file name and a file server that will be used by the client to start a specific boot process – mainly used for IP phones and Wi-Fi access points, but can also be used for auto-installing clients and servers with PXE (Preboot eXecution Environment).

Implementation of DHCP Service

The original and most comprehensive implementation of the DHCP service is offered by the Internet Systems Consortium (ISC). Supporting both IPv4 and IPv6, ISC DHCP offers a complete open source solution for implementing DHCP servers, relay agents, and clients. Other DHCP Server products include the Microsoft DHCP server.

The DHCP service can be enhanced by DHCP failover to bring high availability and load balancing of traffic. The ISC DHCP Failover relies on having a pair of collaborating servers – a primary (master) server and a secondary (backup) server. A TCP-based communication channel, called a failover channel, then has to be set up between the two servers.

Learn more

Smart DDI Solution

Network complexity increases administrator tasks and causes configuration errors. With an integrated DDI solution you can simplify, automate and secure your network.

Blog post

DHCP is a simple but vital service for management of large networks. It ensures devices can connect to networks for accessing critical business services.

Whether your trade show setup requires big screens with cool videos or just a couple laptops, you’re going to need internet access.

At Hyper Networks, we get asked all the time: do I need static or DHCP IP? The short answer is that DHCP is usually the best way to go for trade show internet needs. Here’s why, how IP addressing works, and when you might need static.

What’s the difference between static and DHCP IP?

An IP (internet protocol) address is a number that identifies each device on a network. With a static IP address, this unique number stays the same. With a DHCP (dynamic host configuration protocol) address, this number is automatically assigned to each device from a pool of available numbers on the network. Just like it sounds: static is permanent; dynamic is temporary.

There’s a reason it’s called an address.

The internet works a lot like a postal system. Just like street addresses identify where mail should be delivered, IP addresses identify where data should be delivered.

For example, let’s say you want to mail a letter. You’d write something like, “17 Cherry Tree Lane, Las Vegas, NV, 89123.” The address tells the post office that the letter’s destination is in the U.S.; the zip code identifies which city and state it’s in. (Fun fact: the post office largely ignores what you write as the city and state, only the humans looking at it really care. You could put “Disneyland, NV,” and as long as you have the right street address and zip, your letter would still arrive at its proper destination).

The letter then goes to the sorting center for that zip code. The sorting center narrows down the location by street address. It gets handed to your mail carrier and, voilà,“You’ve Got Mail!”

How to set up static dhcp so your computer’s ip address doesn’t changeYou’ve Got Mail/Warner Bros. Photos

This whole scenario corresponds similarly to the way the internet looks up addresses. That single house on Cherry Tree Lane would have a single (static) IP Address. For example, click on or type 35.238.194.115 or 54.244.12.90 into a browser. Those are static addresses or IP addresses that don’t change. They resolve to hypernetworks.com and Disney.com respectively.

When do you need a static IP?

If you want an IP address that doesn’t change for people in the outside world to get to your equipment, you need a static IP address. That makes static necessary for equipment that needs to be managed remotely, like servers and VPN hardware . Companies generally use static IP at their data centers and core infrastructure. Take a look at the chart below to get an idea of what needs static IP.

How to set up static dhcp so your computer’s ip address doesn’t change

DHCP is the most common way to access the internet.

DHCP basically works like this: every time a new device connects to a given network, the server assigns an address from available locations. When that device goes offline, the address becomes available again, but when it reconnects, the device may not be assigned the same IP address it had before. This process keeps things humming along quickly and efficiently, which is why it’s the way most of us access the internet.

Going back to our postal system metaphor, imagine 17 Cherry Tree Lane is actually an apartment building or a big commercial building. The mail goes to the mailroom (DHCP server). A very smart mail clerk (the router) then delivers each piece of mail to the correct party—wherever they are in the building. This way nobody’s office sits there empty and unused.

DHCP makes the most sense for trade shows and expos.

Expos and trade shows are, obviously, temporary setups. So it’s no surprise that temporary IP addressing, or dynamic, is the most efficient way for trade shows and expos to deliver the internet to attendees and exhibitors.

So, do you need a static IP or a DHCP IP address? The answer is simple. If no one on your tech team specifically told you that they require a static IP address, you probably don’t need one. In other words, if you just need to plug your computer, printer, smart device, etc., into the switch, you need DHCP.

But don’t worry, it’s no problem if you order DHCP, and you later discover you do need a static IP address (or 24 static IP addresses). Usually those can easily be provisioned. And if you’ve chosen Hyper Networks for your trade show internet needs, we can get it switched over faster than you can say “supercalifragilisticexpialidocious.”

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 you specify, for Preferred DNS encryption and Alternate DNS encryption, choose the setting you want.

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.

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 you specify, for Preferred DNS encryption and Alternate DNS encryption, choose the setting you want.

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.

To enable DHCP or change other TCP/IP settings

Select Start , then select Settings > Network & Internet .

Do one of the following:

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.

To specify IPv4 settings manually

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.

To specify IPv6 settings manually

Under 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.

To specify a DNS server address, in the Preferred DNS and Alternate DNS boxes, type the addresses of the primary and secondary DNS servers.

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.

To enable DHCP or change other TCP/IP settings

Do one of the following:

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.

Note: To install IPv4, run Command Prompt as an administrator, type netsh interface ipv4 install, and then press Enter.

Network Administrators need to manage and assign the static IP address to their server, especially when constant access to the server is required or the server is configured as the FTP server. The router assigns the new IP address when the lease time gets expired. This is due to its limited amount of range of IP addresses from 0 to 255.

So, in this post, you will learn to change from DHCP to Static IP address on:

  • Ubuntu 20.04 LTS
  • Ubuntu 20.04 Server or Terminal

Let’s start with the graphical way first.

Using GUI

First of all, you need to open up the settings of your Ubuntu system.

How to set up static dhcp so your computer’s ip address doesn’t change

If your system is connected to a wired connection, go to the Network tab.

How to set up static dhcp so your computer’s ip address doesn’t change

Otherwise, go to the Wireless tab.

And click on the gear icon in the wired or wireless section concerning the connection type you are connected to.

How to set up static dhcp so your computer’s ip address doesn’t change

After clicking on the gear icon, a pop-up settings box will appear on your screen like this.

How to set up static dhcp so your computer’s ip address doesn’t change

You can see the currently assigned IP address to my system, Default Route, and DNS in the details tab.

How to set up static dhcp so your computer’s ip address doesn’t change

To change the IP address to your desired static IP address, go to the “ipv4” tab from the top bar in the settings pop-up.

How to set up static dhcp so your computer’s ip address doesn’t change

Select the “Manual” radio button from the ipv4 method section.

How to set up static dhcp so your computer’s ip address doesn’t change

Enter the IP address (which will be the static IP address of your choice), Netmask, and Gateway.

How to set up static dhcp so your computer’s ip address doesn’t change

DNS is set to Automatic, but if you want to provide manual DNS, turn it off using the toggle button and provide the DNS. You can provide the multiple Domain Name Servers by separating them with commas.

How to set up static dhcp so your computer’s ip address doesn’t change

After filling in all these fields, click on the apply button at the top right corner of the pop-up box to save the settings.

How to set up static dhcp so your computer’s ip address doesn’t change

Turn Off the connection once using the toggle button, and turn it on again to apply the changes and have results.

How to set up static dhcp so your computer’s ip address doesn’t change

After turning it ON, click on the gear icon again to open the settings pop-up window. You can see in the details tab that the IP address, Netmask, Gateway, and DNS are changed successfully.

How to set up static dhcp so your computer’s ip address doesn’t change

This is the simplest and easy way to change from DHCP to Static IP Adress graphically.

Using Terminal

We can configure or change the DHCP to Static IP address in the terminal using the Netplan utility. Ubuntu or Ubuntu server, by default, uses Netplan to configure the network configurations.

How to set up static dhcp so your computer’s ip address doesn’t change

Since Netplan uses the YAML file for the configuration of the network, then we need to edit the YAML file in the /etc/netplan directory. Head to the /etc/netplan directory by using the cd command in the terminal.

If we list the files in the /etc/netplan directory using the ls command,

we can have the name of the YAML file for network configuration.

Open it in a nano editor.

How to set up static dhcp so your computer’s ip address doesn’t change

Provide the static IP address of your choice with the netmask, gateway, and the addresses of the nameservers using the following given syntax or paste the following lines in that YAML file.

How to set up static dhcp so your computer’s ip address doesn’t change

Once you’re done, save the file and get back to the terminal.

Now, run the following command in the Ubuntu server or terminal to apply changes.

And reboot your system for the changes to take effect.

After rebooting your system, Run the “ip a” command to verify the changes.

How to set up static dhcp so your computer’s ip address doesn’t change

It can be seen in the screenshot above that the IP address is changed to the desired static IP address successfully.

Wrap up

These were the two different ways to change the DHCP to Static IP address in Ubuntu 20.04 LTS and Ubuntu 20.04 Server or Terminal.

A static IP address, as opposed to a dynamic IP address, doesn’t change. The single-board computer Raspberry Pi always needs a static IP address if you want to access it with other devices over a long period of time. This refers to the private IP address of the Raspberry IP that is located by a computer within the local network as well as the public IP address of the network via which the Raspberry Pi is accessible on the internet (for example, if it’s being used as a server). But how do you provide Raspberry Pi with an IP address that always remains the same? This guide explains which options you have for linking a static IP address to your Raspberry Pi.

  1. Addressing Raspberry Pi via a static IP address
    1. Addressing Raspberry Pi in the LAN via a private IP address
    2. Addressing the Raspberry Pi on the internet via a public IP address or DDNS
  2. Assign a static private IP address to Raspberry Pi with a router
  3. Assign a static private IP address to Raspberry Pi with DHCPCD
  4. Static IP addresses for Raspberry Pi are sometimes vital

Register great TLDs for less than $1 for the first year.

Why wait? Grab your favorite domain name today!

Addressing Raspberry Pi via a static IP address

For many projects with the small computer, it’s either useful or necessary to provide Raspberry Pi with a static IP address. But before we talk more specifically about the use of such a static IP address with Raspberry Pi, we’ll first outline the differences between addressing a computer in a private (local) network or on the publicly accessible internet. Private and public IP addresses are not to be confused with each other.

Addressing Raspberry Pi in the LAN via a private IP address

Within a local network (also called a Local Area Network, or LAN for short), a router distributes data to various devices. The router is also responsible for IP address assignment – more specifically, the DHCP server integrated in the router is responsible. For example, the DHCP (Dynamic Host Configuration Protocol) automatically assigns free IP addresses to the corresponding devices. Computers, smart TVs, smartphones, or a Raspberry Pi each receive such an address via which they can communicate with other devices. Therefore, all devices are uniquely identifiable via their so-called MAC address.

Since IP addresses in a private network are individually assigned by the DHCP and the coupling of devices to an IP address is only valid within your local network, here we’re talking about private IP addresses. In the default settings, Raspberry Pi also receives its IP address via the DHCP server. The private IP addresses of individual devices can change though, depending on the configuration of the DHCP server.

To be able to reach Raspberry Pi on the same address in your own LAN, you have to provide it with a static, private IP address. One such static IP address for Raspberry Pi can be used, for example, for the remote maintenance of a computer within the network protocol SSH (Secure Shell): If you have an SSH program installed, you can control the Raspberry Pi via another computer using the SSH client. This has the advantage that you don’t have to connect a monitor and input device separately for operation anymore. But if the minicomputer only has a dynamic private IP address, then you have to reselect the current IP address for every SSH access and link it to the SSH client – you bypass this step with a static private IP address.

A static private IP address is essential for your Raspberry Pi if you want to set it up as a server in the LAN. If the Raspberry Pi server is also to continue being available outside of the local network, then you have to assign it another static address via which the server can be accessed on the internet. For example, an internet connection with a static public IP address or a DDNS service.

Addressing the Raspberry Pi on the internet via a public IP address or DDNS

If the Raspberry Pi is to be used as a server accessible over the internet, then the public IP address of your internet connection comes into play. Most internet access is available via dynamic IP addresses that are changed every time they start and at the latest every 24 hours. This changes the public IP address with which the Raspberry Pi server can be reached.

If you want to set up your Raspberry Pi as an ownCloud server or in another server form, the following problem occurs: As soon as the server receives a new IP address, it can only be traced in the LAN. If you want to be found outside of the local network, you no longer know which address the server can be reached on. The solution to this is a fixed IP address. The simplest variation here would be to use an internet connection with a static public IP address. But this is usually quite expensive, and isn’t offered by all internet service providers.

Another solution is the application of dynamic DNS (DDNS). This links your dynamic public IP address with a domain name. Every time, as soon as your IP address changes, a program redirects the new address to the domain name and makes it permanently available on the internet. Now if you link a server on Raspberry Pi with the domain name, it’s permanently accessible online.

There are both free and paid DDNS services. Before you decide on one for yourself, you should first test which DDNS providers your router supports, and whether it supports any at all. Find the DDNS support tutorial for whichever individual router your DDNS server is intended to operate on, such as this tutorial for Linksys routers.

Assign a static private IP address to Raspberry Pi with a router

Many routers support the ability to provide individual devices within the local network with a static IP address. With a Linksys router, the Linksys app allows you to manage multiple devices and handle all of the router assignments remotely. Various other routers also support similar functions, and so can be used for linking Raspberry Pi with a static IP address.

A static IP address for Raspberry Pi is set up somewhat differently for each router. The basic principle is always the same, though: You open the user interface of the router in your browser; Link the MAC address of Raspberry Pi with your LAN’s IPv4 address via the manual IP configuration. Most of the time, a checkbox exists for this in the router interface. This enables you to always automatically use the IP address assigned to you.

Assign a static private IP address to Raspberry Pi with DHCPCD

Raspbian Jessie, or Jessie Lite – the current Raspbian operating systems at the moment – have a DHCP client daemon (DHCPCD) that can communicate with the DHCP servers from routers. The configuration file of a DHCP client daemon allows you to change the private IP address of a computer and set it up in the long term. The following instructions will assign a static IPv4 address with 32 bits (not to be confused with an IPv6 address, which has 128 bits available) to the Raspberry Pi.

Before you begin with the assignment of a private IP address for Raspberry Pi, check whether DHCPCD is already activated using the following command:

In case it’s not, activate DHCPCD as follows:

A computer needs an IP address to use the Internet. Not all IP addresses give you connectivity. At Indiana University, to determine what range your computer’s IP address falls within and whether it is problematic, use the following lists. For more information about finding an IP address, see Find your computer’s IP address

Working IP addresses

At IU, the following IP address ranges are the ones your computer should fall within:

For IU Bloomington

  • Standard registered DHCP or static address ranges (in other words, the normal address you get unless you fall into one of the next two categories):
    • 129.79.x.x
    • 149.159.x.x
    • 156.56.x.x
  • Pre-registration (before registering for DHCP; for further details, see Register your wired device on the IU network):
    • 10.7.x.x
    • 10.10.x.x
    • 10.11.x.x
    • 10.12.x.x
    • 10.232.x.x
  • Wireless (before connecting to VPN):
    • 10.231.x.x
    • 10.235.x.x

Note: An “x” in an address (e.g., 129.79.x.x) stands for any number between 0 and 255.

For IUPUI

  • Standard registered DHCP or static address ranges (in other words, the normal address you get unless you fall into one of the next two categories):
    • 134.68.x.x
    • 149.166.x.x
  • Pre-registration (before registering for DHCP; for further details, see Register your wired device on the IU network):
    • 10.134.x.x
    • 10.148.x.x
  • Wireless (before connecting to VPN):
    • 10.60.x.x
    • 10.235.x.x

Note: An “x” in an address (e.g., 129.79.x.x) stands for any number between 0 and 255.

If you don’t get an address in any of the above ranges, then either you’re not on the IU network, or you have a connectivity problem.

Problem IP addresses

Following are some addresses that indicate a problem with your connection:

  • 169.254.x.x: This is what’s called an Automatic Private IP address. An IP in this range means that the computer cannot see the network. A computer using DHCP needs to have an external server tell it what IP address to use. Unfortunately, if there’s no network connectivity, the computer is unable to talk to the server. In those cases, the computer will actually give itself an IP starting with 169.254, since it must assign itself some sort of number. When you see a 169.254.x.x address, you definitely have a problem. It could be as simple as an unplugged network cable, or it could be as complex as the network being down. A fair amount of troubleshooting is involved at this point, but the bottom line is that your computer doesn’t even see the network.
  • 0.0.0.0: An IP address of all zeros means that your computer can see the network, but something else is interfering with its ability to get an IP address. To resolve this, you can try the following:
    • Temporarily disable or reconfigure the firewall: Some firewalls, especially older ones, are not intelligent enough to adjust to certain networks. The firewall may end up blocking your computer from the DHCP server. If you can configure it to allow the DHCP server for your network to communicate, then do so. Otherwise, try disabling it temporarily until either you’ve isolated and fixed the problem, or (if the firewall has proven to be the problem itself) you’ve learned how to configure the firewall for your current situation.
    • Make sure your network adapter is installed correctly: You can look in the Device Manager (Windows) or System Profiler (Macintosh) to make sure the Ethernet card is listed and functional. You should also check whether the proper driver is installed.
    • Ensure that DHCP is enabled on your computer: Make sure the setting labeled Obtain an IP address automatically is selected. On a Windows NT , 2000, or XP computer, also make sure the setting Obtain DNS server address automatically is selected as well. On a Macintosh, make sure the setting labeled Using DHCP ( Mac OS X ) or Using DHCP Server ( Mac OS 7.6 through 9.x) is selected.
  • 192.168.x.x, 172.16.x.x, or 10.x.x.x: IP addresses in this range are called internal or private addresses. For more information, see Reserved ranges for private IP addresses

    Note: Before determining a problem associated with a private IP address, you need to know the exceptions. See the information on private IP addresses below.

    Private IP addresses

    At IU, the following private IP address ranges are in use:

    For IUB

    • 10.7.x.x
    • 10.10.x.x
    • 10.11.x.x
    • 10.12.x.x
    • 10.232.x.x
    • 10.231.x.x (wireless)
    • 10.235.x.x (wireless)

    For IUPUI

    • 10.134.x.x
    • 10.148.x.x
    • 10.60.x.x (wireless)
    • 10.235.x.x (wireless)

    The addresses above (except the ones labeled “wireless”) are assigned when you need to register your computer for DHCP (see Register your wired device on the IU network). The ones labeled “wireless” are assigned when you’re making a wireless connection, prior to connecting through VPN.

    Excepting the addresses above, having a private IP address can simply mean your computer is going through a home router or a proxy, or is connecting through another computer running Internet Connection Sharing (ICS). If this is the case, and you’re doing it on purpose, then having a private IP address is fine. But, if you’re not purposely going through a router, proxy, or ICS-enabled computer, getting a private IP address is bad.

    If you’re connecting in campus housing or in most places on campus, you are definitely not supposed to be going through a home router, proxy, or ICS computer, and getting a private IP address is bad (excepting, again, the ones listed above). It means that either someone has installed such a router without permission, or someone’s computer is running ICS by mistake. Your connection may work fine, but it’s likely it will be very slow or very restricted as to where you can go. If you are on campus and ever get a private IP address that’s not in the range of exceptions noted above, contact your campus Support Center. For more information about this case, see About rogue DHCP servers on the IU network

    Note: Some departments use private IP addresses to secure servers or workstations with sensitive data. In those cases, getting such addresses is fine. However, most people on campus should be getting full, legitimate addresses. Here’s how you know you’re supposed to get a private IP address (all of these apply only on campus):

    How to set up static dhcp so your computer’s ip address doesn’t change

    Your Epson printer will arrive with a static IP address assigned. You can either keep it static and update the IP address to one that exists on your local network (see our How to change the IP address of your Epson Printer post) or you can change the printer to use DHCP to automatically grab an IP address from the network via the steps below.

    Changing your Epson printer to use DHCP is actually quite easy. It involves the following steps:

    Connecting your computer to your printer via a CAT5 Ethernet cable.

    Navigating to your printer’s IP address in a browser.

    Changing the the TCP/IP section to use DHCP and resetting the printer.

    We walk through each of these steps below.

    Step 1: Connect your Epson printer to your computer

    Your Epson printer should look something like this:

    How to set up static dhcp so your computer’s ip address doesn’t change

    Connect your printer to a power source and then plug an Ethernet cable into the slot on the back left of the device:

    How to set up static dhcp so your computer’s ip address doesn’t change

    Connect the other end of the Ethernet cable to your computer. If your computer doesn’t have an Ethernet slot, you’ll need a USB to Ethernet adapter, which looks like this:

    How to set up static dhcp so your computer’s ip address doesn’t change

    Once you’ve connected your computer to your printer, then you’ll need to change your computer’s IP address for this direct connection to be in the same range as the printer. If you’re using a Mac, this will look like this:

    How to set up static dhcp so your computer’s ip address doesn’t change

    If you’re adjusting a brand new printer, then the IP address of the printer will likely be 192.168.192.168. To confirm this, turn off the receipt printer, and then hold down the “Feed” button and power it back on. Keep holding the “Feed” button until it prints out a configuration page, which will have a section at the top that looks like this:

    How to set up static dhcp so your computer’s ip address doesn’t change

    In this case, the IP address of the printer is set to 10.0.0.6. Note that the “SubnetMask” field is set to 255.255.255.0. This is important, too, but it’s typically always set this way, so you usually don’t have to change it.

    Now that we know the receipt printer’s IP address is 10.0.0.6, we need to change our network settings to this:

    How to set up static dhcp so your computer’s ip address doesn’t change

    Note that we changed the “Router” field to 10.0.06 and we changed the “IP Address” field to 10.0.0.1. The “IP Address” can be set to anything that starts with 10.0.0.x, but we may as well set that “x” to 1.

    When you’re done making your adjustments, be sure to click the “Apply” button in the lower right. You’ll see the IP address in the “USB 10/100/1000 LAN is currently active and has the IP address of. ” change to the IP address you set.

    Now that we’ve done this, we can navigate to the printer configuration page in a web browser. In this case, we’re using a brand new receipt printer with IP address of 192.168.192.168, so that’s the IP address we’re going to browse to in our computer’s web browser per below:

    How to set up static dhcp so your computer’s ip address doesn’t change

    Two things may happen when you do this:

    The browser may tell you the webpage isn’t secure. Just click through this and proceed anyway – it’s okay if it’s not safe.

    You may be asked to log in. If so, the username is “epson” and the password is “epson”.

    Once you end up on the page above, click on the “TCP/IP” link in the left sidebar. This will take you to a page that looks something like this:

    How to set up static dhcp so your computer’s ip address doesn’t change

    You’ll notice that the IP address is set to 192.168.192.168 in the example above, which is the same IP address that printed out on the configuration. You’ll also notice that “Acquiring the IP address” is set to “Manual”. Change this to “Auto” and then click the “Send” button. The next page will prompt you to reset the printer – go ahead and do this.

    After a few seconds the lights on the printer will flash and the printer will make a small noise. This means it worked. Once this is done, you can disconnect the receipt printer’s Ethernet cable from your computer and plug it into a port on your local network.

    The next step is to prompt the receipt printer to acquire an IP address from the local network. Press and hold the “push” button on the back of a printer using a pen. Here’s what the push button looks like:

    After about 4 seconds, a receipt will print out listing the receipt printer’s IP address.

    The last step is to configure this IP address on the “Devices” page of Brandibble, and to update the Devices settings on the POS itself. Once this has been completed, your POS will be able to send print jobs to your Epson printer.

    Varuuth

    Member
    • Nov 15, 2012
  • #1

If I set my computer to dhcp I can get access to the router and to the internet just fine. If I go into the control panel and set it to static IP then I can’t get access to anything.

Here are the steps I am taking:
In the Network and Sharing center window
I click on: Change adapter settings (In the left hand side of the window)

That gives me the Network Connections window
now I right click on “Ethernet” and scroll to the bottom and choose Properties

Now I get the Ethernet Properties window
Scrolling down to TCP/IPv4 I click that and then select properties

That gives me the Properties window (yes I know I am being detailed.. but windows 8 is new .. and maybe I am just doing something .. dumb)
Now I fill in the 5 fields in that window “Ip address” “subnet Mask” “default gateway” “preferred DNS server” “alternate DNS server” ..

then I hit ok on that window and ok on the previous window also.

At this point the “network connections window” shows my Ethernet icon and it says “network” below where it says “Ethernet” ..

and I have internet access for about 30 seconds. then I loose internet access . if I try a reboot .. the network icon in the system tray tells me it can’t find a network.

is there something that I am missing?

I have windows 8 pro
I was able to have a static ip address when this same computer was running windows vista 64 bit. all I did was remove vista and put in windows 8 pro. the router stayed the same.

This FAQ is suitable for the users who already have a Cable /Fiber Modem or community network and want to share the Internet connection. If you are using a DSL Modem, please ignore the article, and refer to How to install the TP-Link Wi-Fi router to work with a DSL Modem?

How to set up static dhcp so your computer’s ip address doesn’t change

How to set up static dhcp so your computer’s ip address doesn’t change

How to set up static dhcp so your computer’s ip address doesn’t change

How to set up static dhcp so your computer’s ip address doesn’t change

How to set up static dhcp so your computer’s ip address doesn’t change

How to set up static dhcp so your computer’s ip address doesn’t change

How to set up static dhcp so your computer’s ip address doesn’t change

How to set up static dhcp so your computer’s ip address doesn’t change

How to set up static dhcp so your computer’s ip address doesn’t change

(1)Turn the cable modem off firstly, then turn your router and computer off, and leave them off for about 2 minutes;
(2)Turn the router on firstly and wait about 1 minute, and then power on your computer.
(3)Turn the cable modem on, and wait till the modem works stable (All LED lights work normally).
(4)Repeat the steps 1-3 above until you connect to the Internet.

Looking for More

Is this faq useful?

Your feedback helps improve this site.

What’s your concern with this article?

  • Dissatisfied with product
  • Too Complicated
  • Confusing Title
  • Does not apply to me
  • Too Vague
  • Other

We’d love to get your feedback, please let us know how we can improve this content.

Thank you

We appreciate your feedback.
Click here to contact TP-Link technical support.

Recommend Products

How to set up static dhcp so your computer’s ip address doesn’t change

AC1750 Wireless Dual Band Gigabit Router

Subscribe TP-Link takes your privacy seriously. For further details on TP-Link’s privacy practices, see TP-Link’s Privacy Policy.

Be The First To Get Exclusive Deals & News

  • tp-link
  • kasa

Get products, events and services for your region.

To provide a better experience, we use cookies and similar tracking technologies to analyze traffic, personalize content and ads. By continuing to browse this website, you agree to our use of cookies and such technologies. Learn more Don’t show again

To provide a better experience, we use cookies and similar tracking technologies to analyze traffic, personalize content and ads. By continuing to browse this website, you agree to our use of cookies and such technologies. Learn more Don’t show again

These cookies are necessary for the website to function and cannot be deactivated in your systems.

Site Selection Popup

SMB Product Selection System

tp_smb-select-product_scence, tp_smb-select-product_scenceSimple, tp_smb-select-product_userChoice, tp_smb-select-product_userChoiceSimple, tp_smb-select-product_userInfo, tp_smb-select-product_userInfoSimple

__livechat, __lc2_cid, __lc2_cst, __lc_cid, __lc_cst, CASID

VISITOR_INFO1_LIVE, YSC, LOGIN_INFO, PREF, CONSENT, __Secure-3PSID, __Secure-3PAPISID, __Secure-3PSIDCC

Analysis and Marketing Cookies

Analysis cookies enable us to analyze your activities on our website in order to improve and adapt the functionality of our website.

The marketing cookies can be set through our website by our advertising partners in order to create a profile of your interests and to show you relevant advertisements on other websites.

Google Analytics & Google Tag Manager & Google Optimize

_gid, _gat, _gat_global, _ga, _gaexp

Google Ads & DoubleClick

NID, IDE, test_cookie, id, 1P_JAR

fr, spin, xs, datr, c_user, sb, _fbp

_ce.s, _CEFT, _gid, cean, _fbp, ceac, _drip_client_9574608, cean_asoc

_hjKB, _fbp, ajs_user_id, _BEAMER_LAST_UPDATE_zeKLgqli17986, _hjid, _gcl_au, _ga, ajs_anonymous_id, _BEAMER_USER_ID_zeKLgqli17986, _hjAbsoluteSessionInProgress, _hjFirstSeen, _hjIncludedInPageviewSample, _hjTLDTest

Hm_lpvt_33178d1a3aad1dcf1c9b345501daa675, Hm_lvt_33178d1a3aad1dcf1c9b345501daa675, HMACCOUNT_BFESS

lms_analytics, AnalyticsSyncHistory, _gcl_au, liap

To fix an Internet connection problem that was not resolved by restarting your router, try releasing and renewing your IP address.

Before you begin:

If you have no connection, check to see if there is a service outage in your area.

Enter your billing telephone number* below.

Billing Telephone Number*

*This is your Frontier telephone number or the first 10 digits of your Frontier account number.

On a Windows computer:

Click Start > Run and type cmd in the Open field, then press Enter . (If prompted, select Run as administrator .)

  1. Type ipconfig /release and press Enter .
  2. Type ipconfig /renew and press Enter .
  3. Type exit and press Enter to close the window.

If trying to release and renew your IP address causes an error message on Windows 7 or later:

  1. Click Start > Run , type cmd and press Enter to launch command screen.
  2. Type netsh winsock reset catalog and press Enter .
  3. Type exit and press Enter to close window.
  4. Reboot your computer.

On a Macintosh computer:

  1. Choose System Preferences from the Apple menu.
  2. Choose Network from the View menu.
  3. Select Wi-Fi , then click the Advanced button in the lower-left hand corner of the screen.
  4. Select the TCP/IP tab from the top of the screen.
  5. Click Renew DHCP Lease and click OK .
  • Your problem may be caused by spyware. For help, see Get Rid of Spyware & Internet Spam.
  • In some circumstances customers—typically business customers—need to have a static IP address rather than a dynamic one. If you would prefer to have a static IP address, chat with us or give us a call.
  • ‘)” data-event=”social share” data-info=”Pinterest” aria-label=”Share on Pinterest”>
  • ‘)” data-event=”social share” data-info=”Reddit” aria-label=”Share on Reddit”>
  • ‘)” data-event=”social share” data-info=”Flipboard” aria-label=”Share on Flipboard”>

How to set up static dhcp so your computer’s ip address doesn’t change

Related

  • Netgear Router & PCI Wireless Adapter Connection Problems
  • The Wireless Router Can’t Find the Printer on Networking Printing
  • How to Configure a D-Link Switch for a Static IP Address
  • How to Unblock the URL Filter
  • Types of Firewall Routers

If a computer is unable to configure a valid Internet Protocol address, it can’t connect to a network. If you plug a laptop directly into a modem with an Ethernet cable and receive a “No Valid IP Address” error, there could be a problem with the hardware setup or the Internet Service Provider. Laptops are more likely to connect to multiple networks than desktops because they are easier to transport. If accessing one network requires special settings, those settings may affect the laptop’s ability to connect to other networks.

Duplicate Address Problems

The IP address system requires that each connected device uses a unique IP address. An IP address is similar to a mailing address — the digits help identify individual computers and direct traffic to the correct location. The network can’t tell two systems apart if they have the same IP address, and one will be unable to use the network. Duplicate IP addresses can spawn from static configured systems being setup with the same address or when a dynamic system assigns what it believes is a free IP address to a system, and a system that formerly used that same address reconnects to the network without requesting a new IP assignment. Duplicate invalid IP errors can come from the ISP or from the local network.

No Assigned Address

Computers default to a zeroed-out null value IP address and can’t connect to a network until they are assigned a valid IP address. If the system tries to connect to a network with a null value IP address, it can trip an invalid IP address error because the system hasn’t been assigned a valid IP address. The computer should request an IP address when connecting to the modem or network hardware, but it may have a hardware or software issue interfering with the action.

Assigned by ISP

Your ISP assigns your account an IP address that your systems use to connect to the Internet. For security reasons, your ISP may tie your IP address assignment to your modem. Unless the ISP recognizes the modem, it will not assign your connection an IP address. If you’re connecting directly to the modem and it is not a modem/router combo unit, the error message could imply that your modem is not registered with the service provider or that it is not compatible with the current network protocol. If you’ve changed modems, you may have to call your service provider to enable the modem to work on the network.

Resolving System Issues

Your computer may be experiencing some sort of hardware conflict or incorrect setting that’s causing the system to have an invalid IP address. To force the computer to reconnect to the network, press “Windows-R.” Type “cmd,” press “Enter,” type “ipconfig /release,” press “Enter,” type “ipconfig /renew” and then press “Enter.” You can also use the built-in troubleshooting tool to resolve hardware issues by right-clicking on the network icon on the Taskbar in desktop mode, selecting “Troubleshoot problems” and following the on-screen instructions. Advanced users can attempt to reset Internet Protocol through Microsoft’s instructions.

If you’ve ever had problems connecting to your printer, it might help to set it to a static IP address. By default, most printers use a dynamic IP address, which changes from time to time. This can make it hard to connect to your printer, especially when you make changes to your network. Plus, assigning a printer to a static IP address can help you organize your network, which is helpful if you have lots of devices connected to the same network. Here’s how to change your printer’s IP address on a Mac and a Windows 10 PC.

How to Change Your Printer’s IP Address on a Windows 10 PC

To change your printer IP address, type its current IP address into the address bar of a web browser. Then go to the Settings or Network page and change your printer’s network to a static/manual IP address. Finally, type in the new IP address.

Note: These steps might be different depending on the kind of printer you have.

    Type your printer’s IP address into the address bar of any web browser. You can find your printer’s current IP address on the printer’s display. If your printer doesn’t have a display screen, check out our guide on how to find your printer’s IP address here.

Note: Make sure your printer is connected to the same network as your computer.

  • Enter your printer’s username and password if prompted. If you didn’t set a password for your printer, you can try using “admin” as the Username box and leave the Password box blank.
  • Go to your printer’s Settings/Network page.
  • Select IP Address Configuration. You can also look for TCP/IP or IP Configuration within the page.
  • Change your network from Automatic/Dynamic to Static/Manual IP.
  • Type in the IP address you want to use for your printer. Now, when the printer is connected to your computer, it will automatically be assigned to this IP address. How to set up static dhcp so your computer’s ip address doesn’t change
  • Save your current settings and close the browser.
  • How to Change Your Printer’s IP Address on Mac

    To change your printer’s IP address on a Mac, go to System Preferences > Printers & Scanners. Then click Options & Supplies and type in a new IP address in the box next to Location.

    1. Click the Apple icon in the top-left corner of your screen.
    2. Then select System Preferences.How to set up static dhcp so your computer’s ip address doesn’t change
    3. Next, click Printers & Scanners.How to set up static dhcp so your computer’s ip address doesn’t change
    4. Then click Options & Supplies.How to set up static dhcp so your computer’s ip address doesn’t change
    5. Finally, change your printer’s IP address in the box next to Location and click OK.

    How to set up static dhcp so your computer’s ip address doesn’t change

    If your printer is still causing you problems, check out our list of the best printers of 2020 here.

    From DD-WRT Wiki

    Contents

    Static DHCP (aka DHCP reservation) is a useful feature which makes the DHCP server on your router always assign the same IP address to a specific computer on your LAN. To be more specific, the DHCP server assigns this static IP to a unique MAC address assigned to each NIC on your LAN. Your computer boots and requests its IP from the router’s DHCP server. The DHCP server recognizes the MAC address of your device’s NIC and assigns the static IP address to it. (Note also that, currently, each reserved IP address must also be unique. Therefore, e.g., one cannot reserve the same IP address for both the wired and wireless interfaces of a device, even though the device may be configured such that only one interface is active at any given time.)

    Static DHCP will be needed if you want an interface to always have the same IP address. Sometimes required for certain programs, this feature is useful if other people on your LAN know your IP and access your PC using this IP. Static DHCP should be used in conjuction with Port Forwarding. If you forward an external WAN TCP/UDP port to a port on a server running inside your LAN, you have to give that server a static IP, and this can be achieved easily through Static DHCP.

    How to set up static dhcp so your computer’s ip address doesn’t change

    1. Log into the DD-WRT Web GUI
    2. Go to the Services tab
    3. DHCP Daemon should be enabled
    4. If there is no blank slot under “Static Leases”, click Add
    5. Enter the MAC address of the client interface, the hostname of the machine, and the desired IP address for this machine. Note that you cannot reserve the same IP address for two different MAC addresses (e.g. both the wired and wireless interfaces of a device).
    6. Scroll to the bottom of the page and save your changes.

    Note: You must either Save or Apply the page each time you’ve added and filled out a new static lease. Clicking the Add button refreshes the page without saving what you entered. If you try to add multiple blank leases and fill them all out at once then you will encounter a bug that the GUI thinks they are duplicate entries.

    How to set up static dhcp so your computer’s ip address doesn’t change

    Note: A blank lease duration means it will be an infinite lease (never expires). Setting a lease duration will allow you to change the static lease information later on and have the host automatically get the new information without having to manually release/renew the lease on the host.

    [edit] DHCP Options

    The DHCP system assigns IP addresses to your local devices. While the main configuration is on the setup page you can program some nifty special functions here.

    DHCP Daemon: Disabling here will disable DHCP on this router irrespective of the settings on the Setup screen.

    Used domain: You can select here which domain the DHCP clients should get as their local domain. This can be the WAN domain set on the Setup screen or the LAN domain which can be set here.

    LAN Domain: You can define here your local LAN domain which is used as local domain for DNSmasq and DHCP service if chosen above.

    Static Leases: Assign certain hosts specific addresses here. This is also a way to add hosts to the router’s local DNS service (DNSmasq).

    Note: It is recommended but not necessary to set your static leases outside of your automatic DHCP address range. This range is 192.168.1.100-192.168.1.149 by default and can be configured under Setup -> Basic Setup : Network Address Server Settings (DHCP).

    [edit] Example

    To assign the IP address 192.168.1.12 and the hostname “mypc” to a PC with a network card having the MAC address 00:AE:0D:FF:BE:56 you should press Add then enter 00:AE:0D:FF:BE:56 into the MAC field, mypc into the HOST field and 192.168.1.12 into the IP field.

    Remember: If you press the ‘Add’ button before saving the entries you just made, they will be cleared. This is normal behavior.

    [edit] How to add static leases into dhcp by command

    If more than two. just keep adding them to the static_leases variable with a space between each.

    Don’t forget the double quotes. if you have any spaces (more than one lease) you must include the quotes to the variable.

    NOTE: Starting with build 13832 the format has changed to the following:

    Note the ‘=’ sign at the end of each lease. If you want to set static lease time then put a number after the last ‘=’ to set time in minutes. in the second cases above a blank after the = sign means its an indefinite lease, 1440=24 hours.

    If you have success setting a couple of entries, but have difficulty setting lots of entries, then you may be encountering a length limitation for your given method and firmware combination. A workaround for this is to ssh or telnet to the router and enter it there. If you still run into a length problem then you could use vi (or other method) to enter your configuration into a file and then run the file. Here is what I saved into a file and ran with success (I needed single quotes instead of double quotes in my case):

    I then ran the file (which is named myiplist.sh) like so:

    Also remember tools such as “nvram show | grep static” as well as “nvram commit”.

    [edit] Troubleshooting

    If you cannot ping a hostname, append a period to the end. I.e. instead of “ping server” try “ping server.”

    If the static reservations are visible, but your machines continue to get a normal DHCP IP try going to the Setup page. Hit Save and then Apply settings. The DHCP daemon should restart and you may lose connection briefly. Try renewing your DHCP lease and you should be getting the correct IP at this point.