December 2018
Beginner
826 pages
22h 54m
English
We actually used nmcli here to make changes to configuration files. We can physically see those changes by looking at the eth0 configuration file before and after our DNS changing command.
Before looks like this:
$ cat /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE="eth0"BOOTPROTO="dhcp"ONBOOT="yes"TYPE="Ethernet"PERSISTENT_DHCLIENT="yes"
While after is a bit more verbose:
$ cat /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0BOOTPROTO=dhcpONBOOT=yesTYPE=EthernetPERSISTENT_DHCLIENT="yes"PROXY_METHOD=noneBROWSER_ONLY=noDNS1=1.1.1.1DEFROUTE=yesPEERDNS=noIPV4_FAILURE_FATAL=noIPV6INIT=noNAME="System eth0"UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
One thing we didn't cover is IPv6, but the principles are the same as IPv4.
Take a look ...