Re: Tip: dhcp lease file under Fedora32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2020-04-27 05:51, Jonathan Billings wrote:
On Sun, Apr 26, 2020 at 04:05:30PM -0700, ToddAndMargo via users wrote:

Hi All,

Tip: by default the dhcp leases file does not exist under
Fedora32.  You have to create it firs, then it gets uses

-T

My notes:

DHCP Client leases file:

The file does not exist by default.

# New to Fedora 32.  Set up a leases file if it does not exist:
if [ -n /var/lib/dhclient/dhclient.lease]; then
    touch /var/lib/dhclient/dhclient.lease;
    # release DHCP address
    dhclient -r
    # renew DHCP address
    dhclient
fi

By default on my F32 system, NetworkManager uses the internal DHCP
client and not dhclient.  So there will not be a typical dhclient
lease file.

# journalctl -xl --since today -u NetworkManager.service|grep dhcp-init
Apr 27 07:51:33 proton NetworkManager[1380]: <info>  [1587988293.2807]
dhcp-init: Using DHCP client 'internal'

Read the man page for NetworkManager.conf in the dhcp section to tell
it to use the dhclient plugin.

The NetworkManager package is built with dhcp_default=internal on
versions of Fedora >= 31 (and RHEL/CentOS 8).

https://src.fedoraproject.org/rpms/NetworkManager/blob/f31/f/NetworkManager.spec#_90


I forgot the "s" at the end of "leases"

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux