Netplan: second interface does not work
I have two network interfaces, both on separate networks. I want to be able to route traffic between them, and I followed the Netplan example documentation for this use case. However, only the primary interface ens192
is working properly.
Here is my Netplan configuration:
network:
version: 2
ethernets:
ens160:
addresses:
- 10.0.0.151/16
dhcp4: false
routes:
- to: 10.0.0.0/16
via: 10.0.0.1
table: 101
routing-policy:
- from: 10.0.0.0/16
table: 101
ens192:
addresses:
- 192.168.0.213/24
dhcp4: false
gateway4: 192.168.0.1
nameservers:
addresses:
- 1.1.1.1
- 1.0.0.1
routes:
- to: 192.168.0.0/24
via: 192.168.0.1
table: 102
routing-policy:
- from: 192.168.0.0/24
table: 102
What am I missing to make both interfaces work properly? With this configuration I can reach the IP on ens160
from hosts within the subnet, but not other subnets that can route to hosts on that subnet. Also, when I ping
that IP from other hosts in the same subnet, I get a duplicate response on every single ping request.
networking routing netplan
add a comment |
I have two network interfaces, both on separate networks. I want to be able to route traffic between them, and I followed the Netplan example documentation for this use case. However, only the primary interface ens192
is working properly.
Here is my Netplan configuration:
network:
version: 2
ethernets:
ens160:
addresses:
- 10.0.0.151/16
dhcp4: false
routes:
- to: 10.0.0.0/16
via: 10.0.0.1
table: 101
routing-policy:
- from: 10.0.0.0/16
table: 101
ens192:
addresses:
- 192.168.0.213/24
dhcp4: false
gateway4: 192.168.0.1
nameservers:
addresses:
- 1.1.1.1
- 1.0.0.1
routes:
- to: 192.168.0.0/24
via: 192.168.0.1
table: 102
routing-policy:
- from: 192.168.0.0/24
table: 102
What am I missing to make both interfaces work properly? With this configuration I can reach the IP on ens160
from hosts within the subnet, but not other subnets that can route to hosts on that subnet. Also, when I ping
that IP from other hosts in the same subnet, I get a duplicate response on every single ping request.
networking routing netplan
add a comment |
I have two network interfaces, both on separate networks. I want to be able to route traffic between them, and I followed the Netplan example documentation for this use case. However, only the primary interface ens192
is working properly.
Here is my Netplan configuration:
network:
version: 2
ethernets:
ens160:
addresses:
- 10.0.0.151/16
dhcp4: false
routes:
- to: 10.0.0.0/16
via: 10.0.0.1
table: 101
routing-policy:
- from: 10.0.0.0/16
table: 101
ens192:
addresses:
- 192.168.0.213/24
dhcp4: false
gateway4: 192.168.0.1
nameservers:
addresses:
- 1.1.1.1
- 1.0.0.1
routes:
- to: 192.168.0.0/24
via: 192.168.0.1
table: 102
routing-policy:
- from: 192.168.0.0/24
table: 102
What am I missing to make both interfaces work properly? With this configuration I can reach the IP on ens160
from hosts within the subnet, but not other subnets that can route to hosts on that subnet. Also, when I ping
that IP from other hosts in the same subnet, I get a duplicate response on every single ping request.
networking routing netplan
I have two network interfaces, both on separate networks. I want to be able to route traffic between them, and I followed the Netplan example documentation for this use case. However, only the primary interface ens192
is working properly.
Here is my Netplan configuration:
network:
version: 2
ethernets:
ens160:
addresses:
- 10.0.0.151/16
dhcp4: false
routes:
- to: 10.0.0.0/16
via: 10.0.0.1
table: 101
routing-policy:
- from: 10.0.0.0/16
table: 101
ens192:
addresses:
- 192.168.0.213/24
dhcp4: false
gateway4: 192.168.0.1
nameservers:
addresses:
- 1.1.1.1
- 1.0.0.1
routes:
- to: 192.168.0.0/24
via: 192.168.0.1
table: 102
routing-policy:
- from: 192.168.0.0/24
table: 102
What am I missing to make both interfaces work properly? With this configuration I can reach the IP on ens160
from hosts within the subnet, but not other subnets that can route to hosts on that subnet. Also, when I ping
that IP from other hosts in the same subnet, I get a duplicate response on every single ping request.
networking routing netplan
networking routing netplan
asked Mar 15 at 13:39
ChristiaanChristiaan
1011
1011
add a comment |
add a comment |
0
active
oldest
votes
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%2f1125922%2fnetplan-second-interface-does-not-work%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f1125922%2fnetplan-second-interface-does-not-work%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