Static IP Configuration issue
Posted: 04 Jun 2020, 11:14
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
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