1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

static IP when you can't easily modify the router

Discussion in 'Mods and Upgrades' started by supercazzola, Feb 8, 2018.

  1. supercazzola

    supercazzola Active Member

    Jun 1, 2017
    Likes Received:
    Has anyone ever wanted the network on the Pi to have a static wireless IP when you can't just tell the router to reserve the IP for it?

    I have a P.o.S. ARRIS router from my ISP that freezes up every time when I try to get the list of IPs on the DHCP client list. That same tab is where I could assign the reserved DHCP addresses. I do, however have DHCP only from -, so I wanted to get into the R2's Rasp Pi and tell it to use .200, for example.

    looking online at the raspbian help, I stumbled upon this jewel:

    If the forum moderators feel this is helpful, maybe it could get added to the proper R2 mods section?

    There are two methods described on that page. I used the dhcpcd method

    Basically, you modify the /etc/dhcpcd.conf file:

           interface wlan0
           static ip_address=
           static routers=
           static domain_name_servers=
    Note: your desired static IP may be different, as may your router's.
    mark tomlinson likes this.
  2. Geof

    Geof Volunteer Moderator
    Staff Member

    Nov 9, 2015
    Likes Received:
    Very good info! Thanks. I'll leave it for @WheresWaldo to decide to move or not as that is his thread.
    supercazzola likes this.
  3. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Feb 18, 2015
    Likes Received:
    Moved and added to the Mod sticky.
    supercazzola and Geof like this.

Share This Page