Hi all,
I have CentOS 8 on a fairly standard PC with two NICs, enp5s0 and enp6s0.
I have tried using nmtui to set up enp5s0 to automatically connect and DHCP on boot, however it does not do this. Manually running dhclient enp5s0 allows the interface to acquire an IP address normally but this does not happen automatically.
The contents of the config file are standard. Is there anything that needs to happen specifically to make this work?
Thanks
Configure automatic DHCP on boot
Re: Configure automatic DHCP on boot
There should not be. To act as dhcp client is the default for connections.
Can you show:
Can you show:
Code: Select all
nmcli con show enp5s0
-
- Posts: 1522
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: Configure automatic DHCP on boot
Might you have edited settings in the adapter files perhaps?
-
- Posts: 13
- Joined: 2020/01/22 22:16:05
Re: Configure automatic DHCP on boot
You might have to auto-enable the connection.
nmcli con mod enp5s0 connection.autoconnect yes
(change enp5s0 to whatever the connection name is)
nmcli con mod enp5s0 connection.autoconnect yes
(change enp5s0 to whatever the connection name is)
Re: Configure automatic DHCP on boot
I am having this same issue.
nmcli con mod eno1 connection.autoconnection yes
did not solve the problem.
When I check the configuration settings, autoconnection is clearly enabled, but I still have to use dhclient (and sometimes dhclient -r followed by dhclient) on each boot.
Has anyone seen something similar?
nmcli con mod eno1 connection.autoconnection yes
did not solve the problem.
When I check the configuration settings, autoconnection is clearly enabled, but I still have to use dhclient (and sometimes dhclient -r followed by dhclient) on each boot.
Has anyone seen something similar?