Static IP Configuration issue

Topics about the Software of Revolution Pi
Post Reply
luigi.rusconi
Posts: 5
Joined: 29 Aug 2018, 12:28

Static IP Configuration issue

Post 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
User avatar
RR4711
Posts: 229
Joined: 22 Feb 2018, 13:28

Re: Static IP Configuration issue

Post by RR4711 »

Use "ip addr show" instead.

ifconfig doesn't show all information anymore and is considered deprecated.
luigi.rusconi
Posts: 5
Joined: 29 Aug 2018, 12:28

Re: Static IP Configuration issue

Post 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.
User avatar
dirk
KUNBUS
Posts: 1983
Joined: 15 Dec 2016, 13:19

Re: Static IP Configuration issue

Post 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.
Post Reply