Code: Select all
auto eth0
iface eth0 inet
static address 169.254.1.2
netmask 255.255.0.0I tried it, aslo tried with a closer mask: 255.255.255.0, but nothing. (I tried rebooting as well)mattmiller wrote:Try addinginto /etc/network/interfaces on your Linux machineCode: Select all
auto eth0 iface eth0 inet static address 169.254.1.2 netmask 255.255.0.0
Well I call it reserved addressing not static when you do that on a router but tomato tomatoThe best way to set up a static IP address is to set it on your router.
em yes but that's not what the OP is trying to doThat way if you ever take the RaspPi away from home it will still work
he is just trying to use link-local Ip addressing between a machine and a Pi - similar to my request for static fallback viewtopic.php?f=66&t=134138&p=895278#p895278If you set it on the RaspPi and you put it on a different network, you won't be able to talk to it.
It's not clear to me what you are doing that isn't working. When you supposedly boot the pi, are you then going to the windows machine and attempting to ping the pi with the supposed address it has? I just tested this with 169.254 addresses on Ubuntu and Raspian Wheezy and they just automatically are there. How do you know that the pi has booted if you are headless?ketochka wrote:I tried it, aslo tried with a closer mask: 255.255.255.0, but nothing. (I tried rebooting as well)mattmiller wrote:Try addinginto /etc/network/interfaces on your Linux machineCode: Select all
auto eth0 iface eth0 inet static address 169.254.1.2 netmask 255.255.0.0
Anyway, thank you.
Code: Select all
iface eth0 inet static
address 169.254.1.2
netmask 255.255.0.0no 1 - He's using Linux Mint on other computer - not windowsIt's not clear to me what you are doing that isn't working
Code: Select all
ifup eth0Code: Select all
auto eth0
iface eth0 inet static
address 169.254.1.2
netmask 255.255.0.0