{"id":387,"date":"2023-01-30T01:23:00","date_gmt":"2023-01-30T01:23:00","guid":{"rendered":"http:\/\/joonim.ca\/?p=387"},"modified":"2023-01-30T01:23:00","modified_gmt":"2023-01-30T01:23:00","slug":"how-to-give-wi-fi-static-ip-address-with-netplan-on-ubuntu-server","status":"publish","type":"post","link":"https:\/\/waterloobae.com\/blog\/2023\/01\/30\/how-to-give-wi-fi-static-ip-address-with-netplan-on-ubuntu-server\/","title":{"rendered":"How to give Wi-Fi static IP address with Netplan on Ubuntu server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">It is ideal for a server to have wired connections. Just in case you need to set up a server with wireless connections with static IP address.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">$ sudo vi \/etc\/netplan\/config-wifi.yaml<\/pre>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">network:\n  version: 2\n  renderer: networkd\n  wifis:\n     wlp1s0:\n        dhcp4: no\n        dhcp6: no\n        addresses: \n          - 192.168.10\/24\n        routes: \n          - to: default\n            via: 192.168.1.1\n        nameservers:\n          addresses: \n             - 1.1.1.1\n             - 8.8.8.8\n        access-points:\n          your-ssid:\n            password: your-password<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can change any unnecessary YAML file names to .old or .bak as you like.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">$ sudo netplan generate<\/pre>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">$ sudo netplan apply<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>It is ideal for a server to have wired connections. Just in case you need to set up a server with wireless connections with static IP address. You can change any unnecessary YAML file names to .old or .bak as you like.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-387","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/posts\/387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/comments?post=387"}],"version-history":[{"count":0,"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/posts\/387\/revisions"}],"wp:attachment":[{"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/media?parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/categories?post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/tags?post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}