pema
Posts: 12
Joined: Tue Feb 09, 2016 10:49 am

Network, staic Ip address.

Tue Feb 09, 2016 10:57 am

Hej.
Can someone please guide me to config file for static IP address. Following methods is OBSOLETE and is NOT working in raspbian Jessie 2016-02-03:
viewtopic.php?f=91&t=49350
http://www.modmypi.com/blog/tutorial-ho ... ip-address
http://www.suntimebox.com/raspberry-pi- ... k-3/day-5/

Secondly, how to activate eth1 ?

DHCP is not an option.

Kindly Peter.

drgeoff
Posts: 10676
Joined: Wed Jan 25, 2012 6:39 pm

Re: Network, staic Ip address.

Tue Feb 09, 2016 11:59 am

dhcpcd.conf

pema
Posts: 12
Joined: Tue Feb 09, 2016 10:49 am

Re: Network, staic Ip address.

Tue Feb 09, 2016 12:55 pm

Yes, and may I add "man dhcpcd.conf" =0)
So for everyone in hurry, heres the short howto for static IP in Jessie release 2016-02-03(please note Im using two nics):

sudo nano /etc/dhcpcd.conf

(comment out EVERYTHING with #, add in following commands)

release
persistent
nodhcp
quiet
interface eth0
static ip_address=201.201.201.102
static_routers=201.201.201.100

interface eth1
static ip_address=201.201.201.110
static_routers=201.201.201.100

save and reboot, get a cup of coffee.
/P

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Network, staic Ip address.

Tue Feb 09, 2016 12:59 pm

pema wrote:sudo nano /etc/dhcpcd.conf

(comment out EVERYTHING with #, add in following commands)
Don't think it's necessary to comment out anything. Just add the static bits at the end of the file, starting with 'interface eth0'

Return to “Troubleshooting”