I did some research and, if I'm not mistaken, Libreelec uses Connman for network management which is very lightweight and simple to use but also lacks many options like configuring the dhcp lease time.
Posts by Donald
-
-
The “ip a” command won’t survive a reboot but it’s trivial to put into an autostart.sh script or systemd service that’s executed on each boot.
I tested with the ip a change command using a time of 15 minutes (for testing) and after 15 minutes it renews and it sets the
"valid_lft" and "preferred_lft" again to "forever"...
Have you tested whether it’s something simple like the router not matching the MAC due to uppercase or lowercase letters. Some routers are crap like that. What’s logged on the router?
The mac adresses set in the router are all lowercase and they all work except for the RPI (it does work for my older RPI with an older version of Libreelec).
Unfortunately, the FW of the router is adapted for my ISP and can only be configured using a webbrowser.
For the moment I can work around it and it's not a showstopper. When I have time I'll use wireshark to see what's going on between the RPI and the router regarding DHCP.
It's just that I'm a bit stubborn and curious about how these things work and I really want to know where I can find these lowlevel networksettings.
-
The output of ip a that you shared disagrees with that statement as it clearly shows eth0 is assigned 192.168.1.5/24 as configured in the router. What makes you think it has the address 192.168.1.126 ?
Oops, sorry for the confusion, that was after I changed the network settings from DHCP to a manually assigned address...
If I changed the network settings back to DHCP, it magically selects 192.168.1.126, despite my router telling it should assign 192.168.1.5.
With my old RPI3B with Libreelec 9.2.6 it worked fine.
Does that survive a reboot?
Thanks for trying to help.
-
Hi,
I'm running 12.0.2 on an RPI4B and so far everything seems to work fine apart from DHCP.
I disabled both bluetooth and wifi. I'm using a network cable to connect to the lan.
Problem is,when DHCP is selected, it always defaults to 192.168.1.126, even when I setup my router to assign 192.168.1.5 to the MAC used by the RPI.
I noticed that when I use the command ip address, it outputs:
Code
Display MoreLibreELEC:/ # ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP8000> mtu 1500 qdisc mq qlen 1000 link/ether dc:a6:32:cd:55:de brd ff:ff:ff:ff:ff:ff inet 192.168.1.5/24 brd 192.168.1.255 scope global eth0 valid_lft forever preferred_lft forever 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel qlen 1000 link/ether dc:a6:32:cd:55:df brd ff:ff:ff:ff:ff:ff
What I want to try is to change the value for "valid_lft" and "preferred_lft" which seems to be set to forever.
How do I change these two settings?