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;
}
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
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
New contributor
add a comment |
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
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
New contributor
add a comment |
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
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
New contributor
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
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
networking 18.04 configuration 18.10 netplan
New contributor
New contributor
edited 15 hours ago
Mr Heelis
New contributor
asked 15 hours ago
Mr HeelisMr Heelis
1011
1011
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
New contributor
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
});
}
});
Mr Heelis is a new contributor. Be nice, and check out our Code of Conduct.
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%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
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
New contributor
New contributor
answered 13 hours ago
Mr HeelisMr Heelis
1011
1011
New contributor
New contributor
add a comment |
add a comment |
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.
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.
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%2f1138311%2fi-know-the-command-line-so-whats-the-netplan-yaml%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