04-19-2016, 07:58 AM
I know this just me being a bonehead, but I can't figure out how to set a static IP on the Pine64. I managed to set the address once with no problems, but after I re-imaged the sd card and tried to set the address the next couple of times, I managed to screw it up so badly that I had to re-image the sd card after each attempt.
I tried a couple of ways that failed (I can't remember what I did the first successful time):
Edited /etc/network/interfaces
Added these lines:
auto eth0
iface eth0 inet static
address 192.168.1.206
netmask 255.255.255.0
gateway 192.168.1.1
This didn't work.
Then I noticed a strange (to me) lines in the interfaces file:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
So I edited the eth0 file in interfaces.d and added the lines above to it.
Didn't work either.
Anyone have an idea on what I am doing wrong?
Thanks.
I tried a couple of ways that failed (I can't remember what I did the first successful time):
Edited /etc/network/interfaces
Added these lines:
auto eth0
iface eth0 inet static
address 192.168.1.206
netmask 255.255.255.0
gateway 192.168.1.1
This didn't work.
Then I noticed a strange (to me) lines in the interfaces file:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
So I edited the eth0 file in interfaces.d and added the lines above to it.
Didn't work either.
Anyone have an idea on what I am doing wrong?
Thanks.