Created
February 15, 2024 13:11
-
-
Save yasintuncer/6d6f14cdcc3b6476a34ff7d3378d2e7f to your computer and use it in GitHub Desktop.
Ubuntu Manual Configure Network Settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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