Skip to content

Josh's Tech Blog

Tech that interests me …

  • Home
  • About

Tag: quick-notes

Quick Notes: Setting Static IP address in Ubuntu 18.04 LTS

Edit the file /etc/netplan/50-cloud-init.yaml like the one below and just substitute the appropriate IP adddress, gateway and DNS servers for your environment.

network:
     ethernets:
         enp0s3:
             dhcp4: no
             addresses: [192.168.88.18/24]
             gateway4: 192.168.88.1
             nameservers:
                     addresses: [192.168.88.1,8.8.8.8]
     version: 2

then do:

$ sudo netplan apply



passerbyj sysadmin May 26, 2019May 26, 2019 1 Minute
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Josh's Tech Blog
    • Already have a WordPress.com account? Log in now.
    • Josh's Tech Blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.com
Get started