Posts

Showing posts from January 14, 2019

Why 169.254.0.0 appears by default in the routing table?

Image
2 1 I defined a subnet on eth0 in /etc/network/interfaces with: # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.1 netmask 255.255.255.0 network 192.168.1.0 This subnet will be used to communicate to a Raspberry Pi connected on my ethernet port. Internet connection is not needed because already provided by wifi. I was expecting my laptop to get the static ip address 192.168.1.1 when I run sudo ifup eth0 and it's the case. However, route -n shows: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ... (bunch of things) ... 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 192.168.1.0 0.0.0