From f4d43efc536d9877602917cb5c2d1d17ded58477 Mon Sep 17 00:00:00 2001 From: Hugh Ratsch Date: Tue, 11 Feb 2025 23:22:14 -0600 Subject: [PATCH] updated notes --- src/rhcsa.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/rhcsa.md b/src/rhcsa.md index b0b95d5..7a3efe8 100644 --- a/src/rhcsa.md +++ b/src/rhcsa.md @@ -75,6 +75,17 @@ nmtui # Network Manager Text User Interface sudo ip addr add dev eth0 192.168.2.2/24 # Add an IP address to the interface eth0 Note: Not persistent, will be lost on reboot + +nmcli connection add connection.interface-name ens160 ipv4.addresses 192.168.100.1/24 ipv4.gateway 192.168.100.254 type ethernet # Persistant IP address + +sudo nmcli connection up ethernet-ens160 # Bring up the ethernet interface + +sudo nmcli connection down ethernet-ens160 # Bring down the ethernet interface + +sudo nmcli connection delete id "ens160" # Delete the ethernet connection + +sudo nmcli connection show # Show all connections + ```