How to configure two segment's IP addresses' gateway use netplan?Using networkd, how to see DNS ServerHow do...

When a company launches a new product do they "come out" with a new product or do they "come up" with a new product?

What defenses are there against being summoned by the Gate spell?

Why is Minecraft giving an OpenGL error?

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

How can bays and straits be determined in a procedurally generated map?

LaTeX: Why are digits allowed in environments, but forbidden in commands?

Doing something right before you need it - expression for this?

What does "Puller Prush Person" mean?

How does quantile regression compare to logistic regression with the variable split at the quantile?

Intersection point of 2 lines defined by 2 points each

Why is consensus so controversial in Britain?

Can I ask the recruiters in my resume to put the reason why I am rejected?

Malcev's paper "On a class of homogeneous spaces" in English

Why does Kotter return in Welcome Back Kotter?

Is it possible to do 50 km distance without any previous training?

How much of data wrangling is a data scientist's job?

Cross compiling for RPi - error while loading shared libraries

How much RAM could one put in a typical 80386 setup?

Is it unprofessional to ask if a job posting on GlassDoor is real?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

How does one intimidate enemies without having the capacity for violence?

RSA: Danger of using p to create q

Was any UN Security Council vote triple-vetoed?

How is it possible to have an ability score that is less than 3?



How to configure two segment's IP addresses' gateway use netplan?


Using networkd, how to see DNS ServerHow do I stop netplan from binding a default gateway on every interfaceNetplan error, error on nameserverNetplan does not apply at startupUbuntu 18.04 Network card with two IP addressesDoes Ubuntu 18.04 use dhclient?Unable to ping 18.04 desktop unless this machine first pings the client, when using networkd instead of network-managernetplan - configure one interface with gateway and two withoutcreate a vlan bond with netplan fails to get ipUbuntu Bionic Server edition + Netplan: Not getting static IP on a ethernet connection






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







0















How to configure two segment's IP addresses' gateway use netplan ?



#!/bin/bash
network:
version: 2
renderer: networkd
ethernets:
enp1s0f1:
addresses:
- 22.95.140.1/24
...
- 22.95.141.1/24
- 22.95.141.2/24
....
gateway4: 22.95.140.254
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
dhcp4: no
optional: no


You see I configured two IP segment 22.95.140.0/24 and 22.95.141.0/24.



but there I only configured one gateway, gateway4: 22.95.140.254, is there I need two IP segments' gateway?



if I need two, how can I configured it?



should I configured like this?



gateway4: [22.95.140.254, 22.95.140.254]









share|improve this question























  • Refer the following for more details: Netplan configuration examples, Configure Static IP Address using Netplan and How to Use the Netplan Network Configuration Tool on Linux

    – Marmayogi
    5 mins ago




















0















How to configure two segment's IP addresses' gateway use netplan ?



#!/bin/bash
network:
version: 2
renderer: networkd
ethernets:
enp1s0f1:
addresses:
- 22.95.140.1/24
...
- 22.95.141.1/24
- 22.95.141.2/24
....
gateway4: 22.95.140.254
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
dhcp4: no
optional: no


You see I configured two IP segment 22.95.140.0/24 and 22.95.141.0/24.



but there I only configured one gateway, gateway4: 22.95.140.254, is there I need two IP segments' gateway?



if I need two, how can I configured it?



should I configured like this?



gateway4: [22.95.140.254, 22.95.140.254]









share|improve this question























  • Refer the following for more details: Netplan configuration examples, Configure Static IP Address using Netplan and How to Use the Netplan Network Configuration Tool on Linux

    – Marmayogi
    5 mins ago
















0












0








0








How to configure two segment's IP addresses' gateway use netplan ?



#!/bin/bash
network:
version: 2
renderer: networkd
ethernets:
enp1s0f1:
addresses:
- 22.95.140.1/24
...
- 22.95.141.1/24
- 22.95.141.2/24
....
gateway4: 22.95.140.254
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
dhcp4: no
optional: no


You see I configured two IP segment 22.95.140.0/24 and 22.95.141.0/24.



but there I only configured one gateway, gateway4: 22.95.140.254, is there I need two IP segments' gateway?



if I need two, how can I configured it?



should I configured like this?



gateway4: [22.95.140.254, 22.95.140.254]









share|improve this question














How to configure two segment's IP addresses' gateway use netplan ?



#!/bin/bash
network:
version: 2
renderer: networkd
ethernets:
enp1s0f1:
addresses:
- 22.95.140.1/24
...
- 22.95.141.1/24
- 22.95.141.2/24
....
gateway4: 22.95.140.254
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
dhcp4: no
optional: no


You see I configured two IP segment 22.95.140.0/24 and 22.95.141.0/24.



but there I only configured one gateway, gateway4: 22.95.140.254, is there I need two IP segments' gateway?



if I need two, how can I configured it?



should I configured like this?



gateway4: [22.95.140.254, 22.95.140.254]






netplan






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 14 mins ago









aircraftaircraft

1012




1012













  • Refer the following for more details: Netplan configuration examples, Configure Static IP Address using Netplan and How to Use the Netplan Network Configuration Tool on Linux

    – Marmayogi
    5 mins ago





















  • Refer the following for more details: Netplan configuration examples, Configure Static IP Address using Netplan and How to Use the Netplan Network Configuration Tool on Linux

    – Marmayogi
    5 mins ago



















Refer the following for more details: Netplan configuration examples, Configure Static IP Address using Netplan and How to Use the Netplan Network Configuration Tool on Linux

– Marmayogi
5 mins ago







Refer the following for more details: Netplan configuration examples, Configure Static IP Address using Netplan and How to Use the Netplan Network Configuration Tool on Linux

– Marmayogi
5 mins ago












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


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131591%2fhow-to-configure-two-segments-ip-addresses-gateway-use-netplan%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
















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%2f1131591%2fhow-to-configure-two-segments-ip-addresses-gateway-use-netplan%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

Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...