Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save clickinfinite/8c73a7c5dc352c2fd81f6d03897c2d90 to your computer and use it in GitHub Desktop.
Save clickinfinite/8c73a7c5dc352c2fd81f6d03897c2d90 to your computer and use it in GitHub Desktop.
network settings for ubuntu 18.04 server with wifi and ethernet
network:
version: 2
renderer: networkd
ethernets:
enp3s0:
dhcp4: yes
dhcp6: no
optional: false
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
sudo crontab -e
@reboot /usr/sbin/netplan apply
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