Here is more networking content that is just plain wrong -- for RHEL 8
(It is correct for RHEL 7: Is copy 'n' pasting going on without checking to see if something is correct or not -- before it is to be taught to students?)
nmcli con add or nmcli con mod -- it doesn't matter, the sytax in the course material is incorrect. nmcli for RHEL 8 no longer accepts the "ip/prefix gateway" syntax.
These are the correct ways, using ipv4.gateway and ipv6.gateway:Proof the gateways were added:
Look at the first graphic again:
It says that "IPv4 address, network prefix, and default gateway" ... can have "directives end with 1, 2, 3 and so on."
Partially true. This is true for the IPV4 (or IPv6) address and prefix(es). It is not true gor the default gateway -- there will only be one:
Here, trying to add a second gateway for IPv4 and IPv6 (and the command returns no error):
You can see that even though it took my command, it did not do what was expected (remember, I did a +ipv4.gateway) - it did not add the gateways, it replaced the old gateways:
A collaborative learning environment, enabling open source skill development.