Skip to content

Instantly share code, notes, and snippets.

@yasintuncer
Created February 15, 2024 13:11
Show Gist options
  • Select an option

  • Save yasintuncer/6d6f14cdcc3b6476a34ff7d3378d2e7f to your computer and use it in GitHub Desktop.

Select an option

Save yasintuncer/6d6f14cdcc3b6476a34ff7d3378d2e7f to your computer and use it in GitHub Desktop.
Ubuntu Manual Configure Network Settings
#find your network device
:>networkctl
# Enable the interface and set an IP:
:>sudo ip address add 192.168.x.x/24 dev <interface>
:>sudo ip route add default via 192.168.x.1 dev <interface>
# if you connect local devices add this route
:sudo ip route add 192.168.x.0/24 via 192.168.x.1 dev <interface>
# set dns
:>sudo resolvectl dns <interface> <dns-address(8.8.8.8)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment