Page 1 of 1

Static IP Configuration issue

Posted: 04 Jun 2020, 11:14
by luigi.rusconi
Goodmorning,

I'm trying to set a static IP to eth1 port, setting this configuration inside the "/etc/dhcpcd.conf" file:

# Static IP configuration of eth1:
interface eth1
static ip_address=192.168.254.20/24
#static ip6_address=fd51:42f8:caae:d92e::ff/64
#static routers=192.168.254.1
#static domain_name_servers=8.8.8.8


However, after the device reboot, launching the "ifconfig" command, I have this result:

eth1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether c8:3e:a7:01:37:f5 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

It seems that the IP configuration is disappeared.

Have you ever found this kind of problem? Am I doing something wrong in the process? Can you give me any advice?

Thanks.


Luigi

Re: Static IP Configuration issue

Posted: 05 Jun 2020, 17:50
by RR4711
Use "ip addr show" instead.

ifconfig doesn't show all information anymore and is considered deprecated.

Re: Static IP Configuration issue

Posted: 08 Jun 2020, 10:25
by luigi.rusconi
Thank you for the advice, I tried with "ip addr show" command, but the result seems the same:

3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether c8:3e:a7:01:37:f5 brd ff:ff:ff:ff:ff:ff

Eth1 IP configuration seems disappeared, but I cannot understand why considering also the static IP configuration done.

Re: Static IP Configuration issue

Posted: 08 Jun 2020, 16:05
by dirk
It seems that the pysical Ethernet link is not established (NO-CARRIER). Please check your wiring and the LEDs of the Ethernet connection.