Forked from dimMaryanto93/01-network-manager-all.dhcp.yml
Created
January 23, 2021 10:30
-
-
Save clickinfinite/8c73a7c5dc352c2fd81f6d03897c2d90 to your computer and use it in GitHub Desktop.
network settings for ubuntu 18.04 server with wifi and ethernet
This file contains 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
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
enp3s0: | |
dhcp4: yes | |
dhcp6: no | |
optional: false |
This file contains 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
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
enp3s0: | |
addresses: [192.168.88.50/24] # ip address static | |
dhcp4: no # matikan dhcp4 | |
dhcp6: no | |
gateway4: 192.168.88.1 # route gateway to modem | |
nameservers: | |
addresses: [8.8.8.8,8.8.4.4] # dns server | |
optional: false |
This file contains 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
sudo crontab -e | |
@reboot /usr/sbin/netplan apply |
This file contains 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
network: | |
version: 2 | |
renderer: networkd | |
wifis: | |
wlp4s0: | |
addresses: [192.168.1.80/24] | |
dhcp4: no | |
dhcp6: no | |
gateway4: 192.168.1.1 | |
access-points: | |
"C Y B E R": | |
password: cyber1234 | |
nameservers: | |
addresses: [8.8.8.8,8.8.4.4] | |
optional: false | |
ethernets: | |
enp3s0: | |
addresses: [192.168.1.50/24] | |
dhcp4: no | |
dhcp6: no | |
gateway4: 192.168.1.1 | |
nameservers: | |
addresses: [8.8.8.8,8.8.4.4] | |
optional: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment