From 42d324c2d66fa902c6fc7e47bf211bb619cb0e31 Mon Sep 17 00:00:00 2001 From: Hugh Ratsch Date: Tue, 11 Feb 2025 23:34:21 -0600 Subject: [PATCH] updated notes --- src/rhcsa.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/rhcsa.md b/src/rhcsa.md index 7a3efe8..d44374a 100644 --- a/src/rhcsa.md +++ b/src/rhcsa.md @@ -71,11 +71,18 @@ ## Networking +### nmtui ```bash nmtui # Network Manager Text User Interface +``` +### ip +```bash 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 +```bash 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 @@ -85,7 +92,6 @@ 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 - ```