Skip to content

Instantly share code, notes, and snippets.

@akiross
Created June 20, 2024 17:04
Show Gist options
  • Save akiross/73c8b13358d7417c4c6f3bfc4af2610f to your computer and use it in GitHub Desktop.
Save akiross/73c8b13358d7417c4c6f3bfc4af2610f to your computer and use it in GitHub Desktop.
Manually setting up the network
# Enable the link
ip link set ens18 up
# Set the IP
ip address add 192.168.1.123/24 dev ens18
# Add a route
ip route add default via 192.168.1.1
# Set the nameserver
resolvectl dns ens18 192.168.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment