Lukali
Lukali

Reputation: 343

How to check if my raspberry pi's ip is static?

I found a linux guide, but my interfaces file only has comments in it. Where do I find line telling me if its static or dynamic?

Execute the following command from a terminal:

cat /etc/network/interfaces If your internal IP address is set as dynamic, it should contain:

iface eth0 inet dhcp If the internal IP address is static, the result will contain:

iface eth0 inet static

cat interface

cat conf

Upvotes: 2

Views: 8281

Answers (1)

Thomas Sablik
Thomas Sablik

Reputation: 16454

The guide you are reading is for some older version of raspbian, e.g. wheezy, with SystemVinit. Newer version of raspbian (jessy) uses SystemD with dhcpcd. It is configured with /etc/dhcpcd.conf. If there is no entry for your interface, it is configured dynamically (with DHCP). In your case all interfaces use DHCP.

Upvotes: 3

Related Questions