drekthrall
Posts: 44
Joined: Sat Oct 17, 2015 12:43 pm

RPi as router - give device static IP

Sun May 01, 2016 9:28 pm

Hello, I am using raspberry pi 2B as wifi router I need to give connected devices static IP's. Any ideas how to do that ?
Thanks 8-)

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPi as router - give device static IP

Sun May 01, 2016 9:59 pm

Use MAC addresses. They can be configured with a static IP address and the device will always get the same IP.

How you do it depends on which DHCP server you're running.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

mthomason
Posts: 113
Joined: Sun Apr 24, 2016 12:28 pm

Re: RPi as router - give device static IP

Sun May 01, 2016 10:28 pm

https://wiki.debian.org/DHCP_Server

Shows how to do that mac address-to-static address thing Dougie just mentioned, if you're using the isc-dhcp-server package on your Pi.

Return to “General discussion”