Page 1 of 1

RPi as router - give device static IP

Posted: Sun May 01, 2016 9:28 pm
by drekthrall
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-)

Re: RPi as router - give device static IP

Posted: Sun May 01, 2016 9:59 pm
by DougieLawson
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.

Re: RPi as router - give device static IP

Posted: Sun May 01, 2016 10:28 pm
by mthomason
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.