I know the command line so what's the netplan yaml?IPv4 address to Netmask mapping and Multiple default...

Implications of cigar-shaped bodies having rings?

Like totally amazing interchangeable sister outfits II: The Revenge

Why does Mind Blank stop the Feeblemind spell?

Multiple options vs single option UI

How to not starve gigantic beasts

Re-entry to Germany after vacation using blue card

Can an Area of Effect spell cast outside a Prismatic Wall extend inside it?

Pre-plastic human skin alternative

bldc motor, esc and battery draw, nominal vs peak

Dynamic SOQL query relationship with field visibility for Users

How to stop co-workers from teasing me because I know Russian?

Elements other than carbon that can form many different compounds by bonding to themselves?

What is the most expensive material in the world that could be used to create Pun-Pun's lute?

What does ゆーか mean?

Was there a shared-world project before "Thieves World"?

Is there any official lore on the Far Realm?

What is the smallest unit of eos?

Which big number is bigger?

How could Tony Stark make this in Endgame?

What makes accurate emulation of old systems a difficult task?

555 timer FM transmitter

Mistake in years of experience in resume?

How to prevent z-fighting in OpenSCAD?

Function pointer with named arguments?



I know the command line so what's the netplan yaml?


IPv4 address to Netmask mapping and Multiple default routes feasibility?Redirect requests to my external IP/port to a internal IP/port?Connected to multiple networks, how to choose which DNS server?SSH over VPN on Ubuntu Client Does not use Tun0VPN connects but no remote LAN accessnetplan: nameservers in netplan yaml. What effect?Ubuntu 18.04 netplan.io how to prevent the creation of 2 default gatewaysInvalid YAML for netplan: mapping valuesDHCP Issues after simultaneous Plex/Pihole install Ubuntu 18.04Routing, DNS resolution with Bond0






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















in Ubuntu 18.04 (and 18.10) we're finding (on proxmox host) that Ubuntu VM's are losing the lan IP route on restart. We know the command to make them re-add it. But we don't want to have it run it manually. These are Class C connections that should not require a gateway.



For refernce this is the command in command line that we have to run every reboot (where 10.90.90.52 is the static client ip) it works perfectly



  # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52


I have looked at the netplan examples but they make no mention of eth1.. what is the yaml equivalent of the above working command line?



this is our (not working) /etc/netplan/config.yaml we were fiddling with. we know it's not good enough.



network:
version: 2
ethernets:
ens160:
addresses:
- 10.90.90.2/24
dhcp4: false


this is the proxmox config



enter image description here



remember this command # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52 is currently working but when we restart we have to manually run it. We're simply looking for the yaml version of what works by hand.










share|improve this question









New contributor




Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    in Ubuntu 18.04 (and 18.10) we're finding (on proxmox host) that Ubuntu VM's are losing the lan IP route on restart. We know the command to make them re-add it. But we don't want to have it run it manually. These are Class C connections that should not require a gateway.



    For refernce this is the command in command line that we have to run every reboot (where 10.90.90.52 is the static client ip) it works perfectly



      # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52


    I have looked at the netplan examples but they make no mention of eth1.. what is the yaml equivalent of the above working command line?



    this is our (not working) /etc/netplan/config.yaml we were fiddling with. we know it's not good enough.



    network:
    version: 2
    ethernets:
    ens160:
    addresses:
    - 10.90.90.2/24
    dhcp4: false


    this is the proxmox config



    enter image description here



    remember this command # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52 is currently working but when we restart we have to manually run it. We're simply looking for the yaml version of what works by hand.










    share|improve this question









    New contributor




    Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      in Ubuntu 18.04 (and 18.10) we're finding (on proxmox host) that Ubuntu VM's are losing the lan IP route on restart. We know the command to make them re-add it. But we don't want to have it run it manually. These are Class C connections that should not require a gateway.



      For refernce this is the command in command line that we have to run every reboot (where 10.90.90.52 is the static client ip) it works perfectly



        # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52


      I have looked at the netplan examples but they make no mention of eth1.. what is the yaml equivalent of the above working command line?



      this is our (not working) /etc/netplan/config.yaml we were fiddling with. we know it's not good enough.



      network:
      version: 2
      ethernets:
      ens160:
      addresses:
      - 10.90.90.2/24
      dhcp4: false


      this is the proxmox config



      enter image description here



      remember this command # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52 is currently working but when we restart we have to manually run it. We're simply looking for the yaml version of what works by hand.










      share|improve this question









      New contributor




      Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      in Ubuntu 18.04 (and 18.10) we're finding (on proxmox host) that Ubuntu VM's are losing the lan IP route on restart. We know the command to make them re-add it. But we don't want to have it run it manually. These are Class C connections that should not require a gateway.



      For refernce this is the command in command line that we have to run every reboot (where 10.90.90.52 is the static client ip) it works perfectly



        # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52


      I have looked at the netplan examples but they make no mention of eth1.. what is the yaml equivalent of the above working command line?



      this is our (not working) /etc/netplan/config.yaml we were fiddling with. we know it's not good enough.



      network:
      version: 2
      ethernets:
      ens160:
      addresses:
      - 10.90.90.2/24
      dhcp4: false


      this is the proxmox config



      enter image description here



      remember this command # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52 is currently working but when we restart we have to manually run it. We're simply looking for the yaml version of what works by hand.







      networking 18.04 configuration 18.10 netplan






      share|improve this question









      New contributor




      Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 15 hours ago







      Mr Heelis













      New contributor




      Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 15 hours ago









      Mr HeelisMr Heelis

      1011




      1011




      New contributor




      Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          in the end this worked but we're not entirely happy with what we did



          # nano /etc/netplan/01-systemd-networkd-eth1.yaml


          note the two spaces before the word "network: " they matter - yaml is whitespace/ indent sensitive



            network:
          version: 2
          ethernets:
          eth1:
          addresses: [10.90.90.52/24]
          dhcp4: false


          this gives us this on reboot



          # ip r
          default via xx.x2.x18.x7 dev eth0 proto static
          10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52
          xx.x2.x18.x7 dev eth0 proto static scope link


          which is what



          # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52


          was giving us






          share|improve this answer








          New contributor




          Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            Mr Heelis is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138311%2fi-know-the-command-line-so-whats-the-netplan-yaml%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            in the end this worked but we're not entirely happy with what we did



            # nano /etc/netplan/01-systemd-networkd-eth1.yaml


            note the two spaces before the word "network: " they matter - yaml is whitespace/ indent sensitive



              network:
            version: 2
            ethernets:
            eth1:
            addresses: [10.90.90.52/24]
            dhcp4: false


            this gives us this on reboot



            # ip r
            default via xx.x2.x18.x7 dev eth0 proto static
            10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52
            xx.x2.x18.x7 dev eth0 proto static scope link


            which is what



            # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52


            was giving us






            share|improve this answer








            New contributor




            Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              0














              in the end this worked but we're not entirely happy with what we did



              # nano /etc/netplan/01-systemd-networkd-eth1.yaml


              note the two spaces before the word "network: " they matter - yaml is whitespace/ indent sensitive



                network:
              version: 2
              ethernets:
              eth1:
              addresses: [10.90.90.52/24]
              dhcp4: false


              this gives us this on reboot



              # ip r
              default via xx.x2.x18.x7 dev eth0 proto static
              10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52
              xx.x2.x18.x7 dev eth0 proto static scope link


              which is what



              # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52


              was giving us






              share|improve this answer








              New contributor




              Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0












                0








                0







                in the end this worked but we're not entirely happy with what we did



                # nano /etc/netplan/01-systemd-networkd-eth1.yaml


                note the two spaces before the word "network: " they matter - yaml is whitespace/ indent sensitive



                  network:
                version: 2
                ethernets:
                eth1:
                addresses: [10.90.90.52/24]
                dhcp4: false


                this gives us this on reboot



                # ip r
                default via xx.x2.x18.x7 dev eth0 proto static
                10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52
                xx.x2.x18.x7 dev eth0 proto static scope link


                which is what



                # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52


                was giving us






                share|improve this answer








                New contributor




                Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                in the end this worked but we're not entirely happy with what we did



                # nano /etc/netplan/01-systemd-networkd-eth1.yaml


                note the two spaces before the word "network: " they matter - yaml is whitespace/ indent sensitive



                  network:
                version: 2
                ethernets:
                eth1:
                addresses: [10.90.90.52/24]
                dhcp4: false


                this gives us this on reboot



                # ip r
                default via xx.x2.x18.x7 dev eth0 proto static
                10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52
                xx.x2.x18.x7 dev eth0 proto static scope link


                which is what



                # ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52


                was giving us







                share|improve this answer








                New contributor




                Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 13 hours ago









                Mr HeelisMr Heelis

                1011




                1011




                New contributor




                Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                Mr Heelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                    Mr Heelis is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    Mr Heelis is a new contributor. Be nice, and check out our Code of Conduct.













                    Mr Heelis is a new contributor. Be nice, and check out our Code of Conduct.












                    Mr Heelis is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138311%2fi-know-the-command-line-so-whats-the-netplan-yaml%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                    Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                    Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...