{"id":2249,"date":"2018-05-29T08:00:51","date_gmt":"2018-05-29T08:00:51","guid":{"rendered":"http:\/\/www.xn--slipsprogrammr-2qb.no\/?p=2249"},"modified":"2018-05-29T08:00:51","modified_gmt":"2018-05-29T08:00:51","slug":"netplan-yml","status":"publish","type":"post","link":"https:\/\/www.slips.pl\/?p=2249","title":{"rendered":"netplan.yml"},"content":{"rendered":"<p>You might think of editing \/etc\/netplan\/50-cloud-init.yaml, but why would you when \/etc\/cloud\/cloud.cfg.d\/50-curtin-networking.cfg fucks you over?<\/p>\n<pre>\nnetwork:\n  version: 2\n  ethernets:\n    eth0:\n      match:\n        macaddress: 52:54:00:46:d6:b3\n      mtu: 9000\n      set-name: eth0\n    eth1:\n      match:\n        macaddress: 52:54:00:ba:da:c5\n      mtu: 9000\n      set-name: eth1\n  bonds:\n    bond0:\n      interfaces:\n        - eth0\n        - eth1\n      parameters:\n        down-delay: 0\n        lacp-rate: slow\n        mii-monitor-interval: 100\n        mode: 802.3ad\n        transmit-hash-policy: layer2\n        up-delay: 0\n  bridges:\n    br-maas:\n      interfaces:\n        - bond0.1\n      addresses:\n        - 172.16.1.1\/24\n      parameters:\n        forward-delay: 15\n        stp: false\n    br-mgmt:\n      interfaces:\n        - bond0.2\n      addresses:\n        - 172.16.2.1\/24\n      parameters:\n        forward-delay: 15\n        stp: false\n  vlans:\n    bond0.1:\n      id: 1\n      link: bond0\n    bond0.2:\n      id: 2\n      link: bond0\n    bond0.12:\n      id: 12\n      link: bond0\n      mtu: 1500\n      addresses:\n        - 10.0.0.30\/24\n      gateway4: 10.0.0.254\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You might think of editing \/etc\/netplan\/50-cloud-init.yaml, but why would you when \/etc\/cloud\/cloud.cfg.d\/50-curtin-networking.cfg fucks you over? network: version: 2 ethernets: eth0: match: macaddress: 52:54:00:46:d6:b3 mtu: 9000 set-name: eth0 eth1: match: macaddress: 52:54:00:ba:da:c5 mtu: 9000 set-name: eth1 bonds: bond0: interfaces: &#8211; eth0 &#8211; eth1 parameters: down-delay: 0 lacp-rate: slow mii-monitor-interval: 100 mode: 802.3ad transmit-hash-policy: layer2 up-delay: 0 &hellip; <a href=\"https:\/\/www.slips.pl\/?p=2249\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">netplan.yml<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2249","post","type-post","status-publish","format-standard","hentry","category-sysadmin"],"_links":{"self":[{"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/posts\/2249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.slips.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2249"}],"version-history":[{"count":0,"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/posts\/2249\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.slips.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.slips.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.slips.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}