I created a static IP address for eth0 to use with a USB dongle (connected to my PC) in dhcpcd.conf
file.
interface eth0
static ip_address=169.254.2.13/16
static routers=169.254.11.25
Is there anything I'm doing wrong?
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
Sign up to join this community169.254.2.13/16
is a Link-local address
This is not routable, and makes no sense.
/etc/interfaces
method?
Feb 3, 2019 at 0:40
/etc/network/interface
, even though it's the "old way"
Feb 3, 2019 at 8:57
/etc/network/interfaces
then you should notice the second line in it: Please note that this file is written to be used with dhcpcd and take care of Differences between /etc/dhcpcd.conf and /etc/network/interfaces?.
/etc/network/interface
is the "old way"