matthewh
Posts: 15
Joined: Tue Dec 30, 2014 5:04 pm

Static Public IP on Rasbian Jessie Lite

Fri Oct 07, 2016 5:16 pm

I need to assign a static public IPv4 and IPv6 IP to the Ethernet interface of a Raspberry Pi running Rasbian Jessie Lite. So I need to assign a IP, subnet and gateway for both IPv4 and IPv6. How do I do that?

jstewa
Posts: 4
Joined: Thu Oct 06, 2016 8:46 pm

Re: Static Public IP on Rasbian Jessie Lite

Fri Oct 07, 2016 5:34 pm

Add settings to the /etc/dhcpcd.conf file. You will need root access.

Go to the bottom of the file and add something like this:

interface eth0

static ip_address=192.168.x.xx/xx
static routers=192.168.1.xxx
static domain_name_servers= 8.8.8.8 8.8.4.4

Change the x's to whatever is appropriate for your situation.

Good luck.

Return to “Raspberry Pi OS”