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;
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
add a comment |
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
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 mecat /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 andip add show
displayseth0: …
– 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
add a comment |
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
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
command-line netplan
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 mecat /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 andip add show
displayseth0: …
– 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
add a comment |
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 mecat /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 andip add show
displayseth0: …
– 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
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
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
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered 2 days ago
slangasekslangasek
2,64711420
2,64711420
add a comment |
add a comment |
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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
displayseth0: …
– 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