2

After starting Ubuntu 24.04 over the network, I have a problem where valid_lft, after going down to 0, causes the system to freeze.

valid_lft can be checked by executing the command ip a.
How can I set the valid_lft parameter to forever? I don't want to execute additional commands — I just want to set it in Linux. I don't see such an option in dhcpcd.

In Ubuntu 22.04, started over the network, the default value of valid_lft is set to forever.

3
  • 1
    Does your DHCP server assign the address to your Ubuntu 24.04 machine with the valid lifetime set to 'forever'? Commented Apr 25 at 16:55
  • 1
    no, DHCP server sets to 600s, after changing DHCP server configuration: default-lease-time -1; max-lease-time -1; valid_lft is set to 20,000s I don't know why when setting 600s in ubuntu 22.04 valid_lft is set to forever it seems to me that dhcpcd is responsible for setting valid_lft but I don't know how to force dhcpcd to set valid_lft=forever Commented Apr 25 at 17:46
  • I approached it wrong, after starting ubuntu 24.04 NetworkManager should take over network management (I had it disabled - I disabled it because it caused problems in ubuntu 22.04, to sum up, after enabling NetworManager ubuntu 24.04 works correctly, the valid_lft parameter is renewed Commented May 7 at 16:43

1 Answer 1

-1

/etc/netplan/00-installer-config.yaml or /etc/netplan/*.yaml

change use-lifetime: false

sudo netplan apply

1
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center. Commented Apr 25 at 20:34

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.