Skip to content

Instantly share code, notes, and snippets.

@tmwatchanan
Created May 22, 2019 03:46
Show Gist options
  • Select an option

  • Save tmwatchanan/49e27e35932d5ca313a4f2179677ccba to your computer and use it in GitHub Desktop.

Select an option

Save tmwatchanan/49e27e35932d5ca313a4f2179677ccba to your computer and use it in GitHub Desktop.
Ubuntu network manager config file for setting static IP
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ethernets:
# comment the below lines to enable DHCP
wlp6s0:
dhcp4: no
dhcp6: no
addresses: [10.10.186.203/24, ]
gateway4: 10.10.186.1
nameservers:
addresses: [8.8.8.8]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment