Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

Static IP address

Sep 10, 2017 12:05AM PDT

Hi,

How can I get an static ip address for my LAN network? I have an Raspberry pi connected to my router and it has an Dynamic ip address but i need it to be static. I know how to do this via "Address Reservation" but I don't know where can i get an ip address?

Discussion is locked

- Collapse -
Answer
Re: static IP-address
Sep 10, 2017 1:14AM PDT

Anything outside the range the DHCP-server gives would be fine.

- Collapse -
Re: static IP-address
Sep 10, 2017 1:23AM PDT

But what happens to the Dynamic ip address that the DHCP server already assigns?

- Collapse -
Re: IP-address
Sep 10, 2017 1:57AM PDT

It's either the one or the other. If you give a device a fixed IP-address it doesn't ask the DHCP-server for a dynamic one.

- Collapse -
Answer
You don't get a static IP address
Sep 10, 2017 2:43AM PDT

for a device on your local network. You give it a static address. This is generally done by some application/utility within the operating system. In order to do this in such a way as to avoid conflicts with DHCP addressing, you enter your DHCP server's (usually your router) web interface and set some range of addresses to be reserved for that purpose. If you don't do that and the device you've given a static address has been turned off or the lease has expired, your DHCP server sees that address as "fair game" and may give it away. On a smaller home LAN...and if you can't get into your router's web interface, you can try to set that static address very high and hope to get away with it. You still need to know the gateway address in order to determine where to begin. The gateway is usually the same address used when you configure your router through a web browser.