netplan: usage by command line (without manually editing this annoying yaml file)?cant work out how to do “chkconfig systat on” & “service systat start” on ubuntu 12.04Disable 'record file and application usage' via command lineCPU usage command lineDoes netplan support DHCP and static addresses on one interface?Detecting whether netplan is managing network config (shell)How to configure IPVS loopback address with netplan in Ubuntu 18.04?What is my option if I deleted my netplan yaml file?ubuntu 18.04 no more IP after i removed yaml file from /etc/netplanUbuntu 18.04 Netplan subnet routing (virbr0)netplan + WiFi: link is not ready (18.04 Server)

Could a US political party gain complete control over the government by removing checks & balances?

LWC and complex parameters

Shall I use personal or official e-mail account when registering to external websites for work purpose?

What happens when a metallic dragon and a chromatic dragon mate?

Can the Produce Flame cantrip be used to grapple, or as an unarmed strike, in the right circumstances?

Unbreakable Formation vs. Cry of the Carnarium

Was there ever an axiom rendered a theorem?

Are objects structures and/or vice versa?

Why airport relocation isn't done gradually?

I see my dog run

What is the offset in a seaplane's hull?

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

Does bootstrapped regression allow for inference?

Symmetry in quantum mechanics

Does a dangling wire really electrocute me if I'm standing in water?

Typesetting a double Over Dot on top of a symbol

Prime joint compound before latex paint?

How would photo IDs work for shapeshifters?

Does it makes sense to buy a new cycle to learn riding?

What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?

Lied on resume at previous job

Is "plugging out" electronic devices an American expression?

How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)

New order #4: World



netplan: usage by command line (without manually editing this annoying yaml file)?


cant work out how to do “chkconfig systat on” & “service systat start” on ubuntu 12.04Disable 'record file and application usage' via command lineCPU usage command lineDoes netplan support DHCP and static addresses on one interface?Detecting whether netplan is managing network config (shell)How to configure IPVS loopback address with netplan in Ubuntu 18.04?What is my option if I deleted my netplan yaml file?ubuntu 18.04 no more IP after i removed yaml file from /etc/netplanUbuntu 18.04 Netplan subnet routing (virbr0)netplan + WiFi: link is not ready (18.04 Server)






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








1















It looks like netplan is the future, but compared to this simple command:



ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up


it's much more work to edit the annoying yaml file (the yaml parser feels like a 20 years old technology…).



Does someone know a nice tool to modify the netplan config by just using the command line?










share|improve this question
























  • If you're using a desktop machine, or using wireless, or VPN, then NetworkManager should be used. If you've got a server, which remains fairly static, then netplan should be used. Once your .yaml file is edited, generated, and applied, you shouldn't have to regularly change/edit it. Edit your question and show me cat /etc/netplan/*.yaml.

    – heynnema
    Apr 5 at 20:54











  • If you are using an Ubuntu version that uses netplan, it is very doubtful that your ethernet interface is eth0. Please double-check: ip add show

    – chili555
    Apr 6 at 2:25











  • @chili555 thanks for your note, I really use netplan and ip add show displays eth0: …

    – Tom
    2 days ago












  • @heynnema thanks for your clarification, but we just expect that a modern technology offers both: a configuration file, which can be modified by shell commands, too. So we can choose the more useful way depending on the situation :-)

    – Tom
    2 days ago

















1















It looks like netplan is the future, but compared to this simple command:



ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up


it's much more work to edit the annoying yaml file (the yaml parser feels like a 20 years old technology…).



Does someone know a nice tool to modify the netplan config by just using the command line?










share|improve this question
























  • If you're using a desktop machine, or using wireless, or VPN, then NetworkManager should be used. If you've got a server, which remains fairly static, then netplan should be used. Once your .yaml file is edited, generated, and applied, you shouldn't have to regularly change/edit it. Edit your question and show me cat /etc/netplan/*.yaml.

    – heynnema
    Apr 5 at 20:54











  • If you are using an Ubuntu version that uses netplan, it is very doubtful that your ethernet interface is eth0. Please double-check: ip add show

    – chili555
    Apr 6 at 2:25











  • @chili555 thanks for your note, I really use netplan and ip add show displays eth0: …

    – Tom
    2 days ago












  • @heynnema thanks for your clarification, but we just expect that a modern technology offers both: a configuration file, which can be modified by shell commands, too. So we can choose the more useful way depending on the situation :-)

    – Tom
    2 days ago













1












1








1








It looks like netplan is the future, but compared to this simple command:



ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up


it's much more work to edit the annoying yaml file (the yaml parser feels like a 20 years old technology…).



Does someone know a nice tool to modify the netplan config by just using the command line?










share|improve this question
















It looks like netplan is the future, but compared to this simple command:



ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up


it's much more work to edit the annoying yaml file (the yaml parser feels like a 20 years old technology…).



Does someone know a nice tool to modify the netplan config by just using the command line?







command-line netplan






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









SurvivalMachine

1,4643920




1,4643920










asked Apr 5 at 20:08









TomTom

153




153












  • If you're using a desktop machine, or using wireless, or VPN, then NetworkManager should be used. If you've got a server, which remains fairly static, then netplan should be used. Once your .yaml file is edited, generated, and applied, you shouldn't have to regularly change/edit it. Edit your question and show me cat /etc/netplan/*.yaml.

    – heynnema
    Apr 5 at 20:54











  • If you are using an Ubuntu version that uses netplan, it is very doubtful that your ethernet interface is eth0. Please double-check: ip add show

    – chili555
    Apr 6 at 2:25











  • @chili555 thanks for your note, I really use netplan and ip add show displays eth0: …

    – Tom
    2 days ago












  • @heynnema thanks for your clarification, but we just expect that a modern technology offers both: a configuration file, which can be modified by shell commands, too. So we can choose the more useful way depending on the situation :-)

    – Tom
    2 days ago

















  • If you're using a desktop machine, or using wireless, or VPN, then NetworkManager should be used. If you've got a server, which remains fairly static, then netplan should be used. Once your .yaml file is edited, generated, and applied, you shouldn't have to regularly change/edit it. Edit your question and show me cat /etc/netplan/*.yaml.

    – heynnema
    Apr 5 at 20:54











  • If you are using an Ubuntu version that uses netplan, it is very doubtful that your ethernet interface is eth0. Please double-check: ip add show

    – chili555
    Apr 6 at 2:25











  • @chili555 thanks for your note, I really use netplan and ip add show displays eth0: …

    – Tom
    2 days ago












  • @heynnema thanks for your clarification, but we just expect that a modern technology offers both: a configuration file, which can be modified by shell commands, too. So we can choose the more useful way depending on the situation :-)

    – Tom
    2 days ago
















If you're using a desktop machine, or using wireless, or VPN, then NetworkManager should be used. If you've got a server, which remains fairly static, then netplan should be used. Once your .yaml file is edited, generated, and applied, you shouldn't have to regularly change/edit it. Edit your question and show me cat /etc/netplan/*.yaml.

– heynnema
Apr 5 at 20:54





If you're using a desktop machine, or using wireless, or VPN, then NetworkManager should be used. If you've got a server, which remains fairly static, then netplan should be used. Once your .yaml file is edited, generated, and applied, you shouldn't have to regularly change/edit it. Edit your question and show me cat /etc/netplan/*.yaml.

– heynnema
Apr 5 at 20:54













If you are using an Ubuntu version that uses netplan, it is very doubtful that your ethernet interface is eth0. Please double-check: ip add show

– chili555
Apr 6 at 2:25





If you are using an Ubuntu version that uses netplan, it is very doubtful that your ethernet interface is eth0. Please double-check: ip add show

– chili555
Apr 6 at 2:25













@chili555 thanks for your note, I really use netplan and ip add show displays eth0: …

– Tom
2 days ago






@chili555 thanks for your note, I really use netplan and ip add show displays eth0: …

– Tom
2 days ago














@heynnema thanks for your clarification, but we just expect that a modern technology offers both: a configuration file, which can be modified by shell commands, too. So we can choose the more useful way depending on the situation :-)

– Tom
2 days ago





@heynnema thanks for your clarification, but we just expect that a modern technology offers both: a configuration file, which can be modified by shell commands, too. So we can choose the more useful way depending on the situation :-)

– Tom
2 days ago










2 Answers
2






active

oldest

votes


















0














The ifconfig command still exists in Ubuntu, but there is no equivalence between what ifconfig and netplan are intended to do. ifconfig is a tool for modifying the current state of an interface on the system. netplan is a tool for persistently managing the configuration of the network on a system.



If you know how to configure your network interfaces with a series of ifconfig commands, you could add a systemd unit or init script to run these at boot, but this would be less well integrated with the system's boot than using netplan.



There are presently no command line tools for editing netplan configuration.






share|improve this answer






























    0














    You might find this page useful:



    https://p5r.uk/blog/2010/ifconfig-ip-comparison.html



    For example :



    ip addr add 192.168.0.77/24 broadcast 192.168.0.255 dev eth0





    share|improve this answer























    • Thank you very much for this useful link!, it's a shame that new technology like netplan does not offer a command line interface.

      – Tom
      2 days ago











    • @Tom Of course, but the 'old' technology did not offer a direct command line interface either. The ifconfig command does not alter the /etc/network/interfaces file, it modifies the configuration that the interfaces file has initialized. The netplan configuration is the same -- an initialization. The 'new' ip command like the ifconfig command modifies that configuration in place. I wonder too why those who build our systems are driven to fix things that work, but that is the world we're in and it keeps us on our toes.

      – Stephen Boston
      yesterday












    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
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131529%2fnetplan-usage-by-command-line-without-manually-editing-this-annoying-yaml-file%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The ifconfig command still exists in Ubuntu, but there is no equivalence between what ifconfig and netplan are intended to do. ifconfig is a tool for modifying the current state of an interface on the system. netplan is a tool for persistently managing the configuration of the network on a system.



    If you know how to configure your network interfaces with a series of ifconfig commands, you could add a systemd unit or init script to run these at boot, but this would be less well integrated with the system's boot than using netplan.



    There are presently no command line tools for editing netplan configuration.






    share|improve this answer



























      0














      The ifconfig command still exists in Ubuntu, but there is no equivalence between what ifconfig and netplan are intended to do. ifconfig is a tool for modifying the current state of an interface on the system. netplan is a tool for persistently managing the configuration of the network on a system.



      If you know how to configure your network interfaces with a series of ifconfig commands, you could add a systemd unit or init script to run these at boot, but this would be less well integrated with the system's boot than using netplan.



      There are presently no command line tools for editing netplan configuration.






      share|improve this answer

























        0












        0








        0







        The ifconfig command still exists in Ubuntu, but there is no equivalence between what ifconfig and netplan are intended to do. ifconfig is a tool for modifying the current state of an interface on the system. netplan is a tool for persistently managing the configuration of the network on a system.



        If you know how to configure your network interfaces with a series of ifconfig commands, you could add a systemd unit or init script to run these at boot, but this would be less well integrated with the system's boot than using netplan.



        There are presently no command line tools for editing netplan configuration.






        share|improve this answer













        The ifconfig command still exists in Ubuntu, but there is no equivalence between what ifconfig and netplan are intended to do. ifconfig is a tool for modifying the current state of an interface on the system. netplan is a tool for persistently managing the configuration of the network on a system.



        If you know how to configure your network interfaces with a series of ifconfig commands, you could add a systemd unit or init script to run these at boot, but this would be less well integrated with the system's boot than using netplan.



        There are presently no command line tools for editing netplan configuration.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        slangasekslangasek

        2,64711420




        2,64711420























            0














            You might find this page useful:



            https://p5r.uk/blog/2010/ifconfig-ip-comparison.html



            For example :



            ip addr add 192.168.0.77/24 broadcast 192.168.0.255 dev eth0





            share|improve this answer























            • Thank you very much for this useful link!, it's a shame that new technology like netplan does not offer a command line interface.

              – Tom
              2 days ago











            • @Tom Of course, but the 'old' technology did not offer a direct command line interface either. The ifconfig command does not alter the /etc/network/interfaces file, it modifies the configuration that the interfaces file has initialized. The netplan configuration is the same -- an initialization. The 'new' ip command like the ifconfig command modifies that configuration in place. I wonder too why those who build our systems are driven to fix things that work, but that is the world we're in and it keeps us on our toes.

              – Stephen Boston
              yesterday
















            0














            You might find this page useful:



            https://p5r.uk/blog/2010/ifconfig-ip-comparison.html



            For example :



            ip addr add 192.168.0.77/24 broadcast 192.168.0.255 dev eth0





            share|improve this answer























            • Thank you very much for this useful link!, it's a shame that new technology like netplan does not offer a command line interface.

              – Tom
              2 days ago











            • @Tom Of course, but the 'old' technology did not offer a direct command line interface either. The ifconfig command does not alter the /etc/network/interfaces file, it modifies the configuration that the interfaces file has initialized. The netplan configuration is the same -- an initialization. The 'new' ip command like the ifconfig command modifies that configuration in place. I wonder too why those who build our systems are driven to fix things that work, but that is the world we're in and it keeps us on our toes.

              – Stephen Boston
              yesterday














            0












            0








            0







            You might find this page useful:



            https://p5r.uk/blog/2010/ifconfig-ip-comparison.html



            For example :



            ip addr add 192.168.0.77/24 broadcast 192.168.0.255 dev eth0





            share|improve this answer













            You might find this page useful:



            https://p5r.uk/blog/2010/ifconfig-ip-comparison.html



            For example :



            ip addr add 192.168.0.77/24 broadcast 192.168.0.255 dev eth0






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 2 days ago









            Stephen BostonStephen Boston

            8522720




            8522720












            • Thank you very much for this useful link!, it's a shame that new technology like netplan does not offer a command line interface.

              – Tom
              2 days ago











            • @Tom Of course, but the 'old' technology did not offer a direct command line interface either. The ifconfig command does not alter the /etc/network/interfaces file, it modifies the configuration that the interfaces file has initialized. The netplan configuration is the same -- an initialization. The 'new' ip command like the ifconfig command modifies that configuration in place. I wonder too why those who build our systems are driven to fix things that work, but that is the world we're in and it keeps us on our toes.

              – Stephen Boston
              yesterday


















            • Thank you very much for this useful link!, it's a shame that new technology like netplan does not offer a command line interface.

              – Tom
              2 days ago











            • @Tom Of course, but the 'old' technology did not offer a direct command line interface either. The ifconfig command does not alter the /etc/network/interfaces file, it modifies the configuration that the interfaces file has initialized. The netplan configuration is the same -- an initialization. The 'new' ip command like the ifconfig command modifies that configuration in place. I wonder too why those who build our systems are driven to fix things that work, but that is the world we're in and it keeps us on our toes.

              – Stephen Boston
              yesterday

















            Thank you very much for this useful link!, it's a shame that new technology like netplan does not offer a command line interface.

            – Tom
            2 days ago





            Thank you very much for this useful link!, it's a shame that new technology like netplan does not offer a command line interface.

            – Tom
            2 days ago













            @Tom Of course, but the 'old' technology did not offer a direct command line interface either. The ifconfig command does not alter the /etc/network/interfaces file, it modifies the configuration that the interfaces file has initialized. The netplan configuration is the same -- an initialization. The 'new' ip command like the ifconfig command modifies that configuration in place. I wonder too why those who build our systems are driven to fix things that work, but that is the world we're in and it keeps us on our toes.

            – Stephen Boston
            yesterday






            @Tom Of course, but the 'old' technology did not offer a direct command line interface either. The ifconfig command does not alter the /etc/network/interfaces file, it modifies the configuration that the interfaces file has initialized. The netplan configuration is the same -- an initialization. The 'new' ip command like the ifconfig command modifies that configuration in place. I wonder too why those who build our systems are driven to fix things that work, but that is the world we're in and it keeps us on our toes.

            – Stephen Boston
            yesterday


















            draft saved

            draft discarded
















































            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%2f1131529%2fnetplan-usage-by-command-line-without-manually-editing-this-annoying-yaml-file%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

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?