malini
Posts: 14
Joined: Thu Feb 11, 2016 11:18 am

problem in setting up static ip address

Sat Feb 27, 2016 11:11 am

Hi
I connect my Pi via SSH. Everytime i use a dynamic ip address assigned. I wanted to change to a static one and followed the instructions online. But when i run the command cat /etc/network/interfaces, i don't get the iface eth0 inet dhcp . Why?
I get something like this. How to change my Pi's address to a static one then?
Please help.
Attachments
Untitled.jpg
Untitled.jpg (58.18 KiB) Viewed 686 times

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

Re: problem in setting up static ip address

Sat Feb 27, 2016 11:19 am

With Jessie static assignments go in /etc/dhcpcd.conf now.

a man dhcpcd.conf command tells you what you need to add.
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.

JimmyN
Posts: 1109
Joined: Wed Mar 18, 2015 7:05 pm
Location: Virginia, USA

Re: problem in setting up static ip address

Sat Feb 27, 2016 12:47 pm

malini wrote: How to change my Pi's address to a static one then?
Please help.
In the interfaces file you posted read the third line down.

Code: Select all

# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'


Return to “Troubleshooting”