OCI: How to Reset the Network Interface Configuration to DHCP with nmcli
in Linux
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.
Tagged:
0