{"id":3685,"date":"2018-04-05T09:01:04","date_gmt":"2018-04-05T07:01:04","guid":{"rendered":"https:\/\/rephlex.de\/blog\/?p=3685"},"modified":"2018-04-05T09:01:04","modified_gmt":"2018-04-05T07:01:04","slug":"example-netplan-dual-stack-network-configuration-for-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/rephlex.de\/blog\/2018\/04\/05\/example-netplan-dual-stack-network-configuration-for-ubuntu-18-04\/","title":{"rendered":"Example Netplan dual stack network configuration for Ubuntu 18.04"},"content":{"rendered":"<pre class=\"code\">(08-15 example) srv01 ~ # cat \/etc\/netplan\/01-netcfg.yaml \r\n# This file describes the network interfaces available on your system\r\n# For more information, see netplan(5).\r\nnetwork:\r\n  version: 2\r\n  renderer: networkd\r\n  ethernets:\r\n    ens160:\r\n      addresses: [1.2.3.4\/30, \"2a02:708:xx:xx::2\/64\"]\r\n      gateway4: 1.2.3.4\r\n      gateway6: 2a02:708:xx:xx::1\r\n      nameservers: \r\n        addresses: [8.8.8.8, \"2001:4860:4860::8888\"]\r\n    ens192:\r\n      addresses: [192.168.0.10\/24]\r\n\r\n\r\nto apply the settings, use\r\n\r\nnetplan apply\r\n\r\nto list your network interfaces (and their names) use\r\n\r\nip addr<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>(08-15 example) srv01 ~ # cat \/etc\/netplan\/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: ens160: addresses: [1.2.3.4\/30, &#8222;2a02:708:xx:xx::2\/64&#8220;] gateway4: 1.2.3.4 gateway6: 2a02:708:xx:xx::1 nameservers: addresses: [8.8.8.8, &#8222;2001:4860:4860::8888&#8220;] ens192: addresses: [192.168.0.10\/24] to apply the settings, use netplan apply to list your [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1,4],"tags":[467,470,162,472,473,40,466,468,43,471,47,469],"class_list":["post-3685","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-techtalk","tag-dual-stack","tag-example","tag-howto","tag-ipv4","tag-ipv6","tag-linux","tag-netplan","tag-network-config","tag-server","tag-tutorial","tag-ubuntu","tag-yaml"],"_links":{"self":[{"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/posts\/3685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/comments?post=3685"}],"version-history":[{"count":1,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/posts\/3685\/revisions"}],"predecessor-version":[{"id":3686,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/posts\/3685\/revisions\/3686"}],"wp:attachment":[{"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/media?parent=3685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/categories?post=3685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/tags?post=3685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}