netplan: usage by command line (without manually editing this annoying yaml file)?
.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
yesterday
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
yesterday
@chili555 thanks for your note, I really use netplan andip add show
displayseth0: …
– Tom
5 hours 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
4 hours 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 13 hours ago
SurvivalMachine
1,4583920
1,4583920
asked yesterday
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
yesterday
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
yesterday
@chili555 thanks for your note, I really use netplan andip add show
displayseth0: …
– Tom
5 hours 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
4 hours 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
yesterday
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
yesterday
@chili555 thanks for your note, I really use netplan andip add show
displayseth0: …
– Tom
5 hours 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
4 hours 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
yesterday
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
yesterday
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
yesterday
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
yesterday
@chili555 thanks for your note, I really use netplan and
ip add show
displays eth0: …
– Tom
5 hours ago
@chili555 thanks for your note, I really use netplan and
ip add show
displays eth0: …
– Tom
5 hours 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
4 hours 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
4 hours 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
5 hours ago
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 9 hours ago
slangasekslangasek
2,63211420
2,63211420
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
5 hours ago
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
5 hours ago
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 13 hours 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
5 hours ago
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
5 hours 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
5 hours 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
5 hours ago
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
yesterday
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
yesterday
@chili555 thanks for your note, I really use netplan and
ip add show
displayseth0: …
– Tom
5 hours 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
4 hours ago