Skip to content

Instantly share code, notes, and snippets.

@easycodesnipper
Last active July 28, 2023 03:13
Show Gist options
  • Save easycodesnipper/85fcfaae7eafe17a65bd482cea92f1ce to your computer and use it in GitHub Desktop.
Save easycodesnipper/85fcfaae7eafe17a65bd482cea92f1ce to your computer and use it in GitHub Desktop.
# On CentOS-8-Stream
sudo nmcli con mod enp1s0 ipv4.method manual
sudo nmcli con mod enp1s0 ipv4.address 192.168.3.53/24
sudo nmcli con mod enp1s0 ipv4.gateway 192.168.3.1
sudo nmcli con mod enp1s0 ipv4.dns "192.168.3.1 8.8.8.8"
sudo nmcli con mod enp1s0 autoconnect yes
sudo nmcli con down enp1s0
sudo nmcli con up enp1s0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment