#!/bin/bash # This script will reset the IP Address back to default of DHCP # helpful for a pending restore /bin/nmcli c m "System eth0" ipv4.method auto /bin/nmcli c m "System eth0" ipv4.address "" ipv4.gateway "" /bin/nmcli connection up "System eth0"