You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: How to Reset the Network Interface Configuration to DHCP with nmcli

APPLIES TO:

Linux OS - Version Oracle Linux 7.0 and later

Linux x86-64


GOAL:

How to reset a NetworkManager interface configuration from manual ip assignments to dhcp ip assignments


SOLUTION

The following commands can be used to set an interface configuration to dhcp

# nmcli device modify ens3 
> set ipv4.method auto 
> set ipv6.method auto 
> save persistent 
> quit 

NOTE: If connected via network, the connection may be lost in case a new ip address is assigned.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!