Two default routes with same metricAssymetric routing problems in LINUXHow to route using iproute2 not...
Plotting Chebyshev polynomials using PolarPlot and FilledCurve
Why are sugars in whole fruits not digested the same way sugars in juice are?
Pre-Greek θάλασσα "thalassa" and Turkish talaz
Why do we need a voltage divider when we get the same voltage at the output as the input?
How do I solve such questions on paramagnetism and ferromagnetism?
Why do player start with fighting for the corners in go?
Skipping same old introductions
Is the EU really banning "toxic propellants" in 2020? How is that going to work?
Define tcolorbox in math mode
Is this popular optical illusion made of a grey-scale image with coloured lines?
How do I respond appropriately to an overseas company that obtained a visa for me without hiring me?
"Will flex for food". What does this phrase mean?
Ernie and the Superconducting Boxes
How were x-ray diffraction patterns deciphered before computers?
What is the difference between 2/4 and 4/4 when it comes the accented beats?
A conjectural trigonometric identity
What's the proper way of indicating that a car has reached its destination during a dialogue?
How to set Adobe DC PDF reader as default for ALL pdfs without having to open security preferences every time
Who's behind community AMIs on Amazon EC2?
Is Illustrator accurate for business card sizes?
Is it moral to remove/hide certain parts of a photo, as a photographer?
Being told my "network" isn't PCI Complaint. I don't even have a server! Do I have to comply?
What sort of solar system / atmospheric conditions, if any, would allow for a very cold planet that still receives plenty of light from its sun?
How can a class have multiple methods without breaking the single responsibility principle
Two default routes with same metric
Assymetric routing problems in LINUXHow to route using iproute2 not iptables?Add default route without gateway nmcliHow to make wicd set dhcp-based routing?Why can't I add a default route?Mutiple default routesRouting traffic to my ipv4 routes except 0.0.0.0 address?How to set persistent static routes in KDE desktop system with NetworkManager and systemd?Configuring Linux Mint as a GatewayRoute traffic to particular interface for specific port
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Using NetworkManager on CentOS 7.6 I was able to create two default routes with same metric:
# nmcli connection eth0 modify ipv4.route-metric 10
# nmcli connection eth1 modify ipv4.route-metric 10
# nmcli connection up eth0
# nmcli connection up eth1
$ ip route
default via 192.168.1.1 dev eth0 proto dhcp metric 10
default via 192.168.1.1 dev eth1 proto dhcp metric 10
That's looking strange to me because I thought there possible only one default route with specific metric and if I try to achieve same routing table with ip I've got an error:
# sudo ip route add default via 192.168.1.1 dev eth1 proto dhcp metric 11
# sudo ip route add default via 192.168.1.1 dev eth0 proto dhcp metric 11
RTNETLINK answers: File exists
So basically I have two questions:
1) Is that a bug? If it's not how kernel interpret such a routing table?
2) How can I build such a routing table using ip command?
centos route iproute nmcli gateway
add a comment |
Using NetworkManager on CentOS 7.6 I was able to create two default routes with same metric:
# nmcli connection eth0 modify ipv4.route-metric 10
# nmcli connection eth1 modify ipv4.route-metric 10
# nmcli connection up eth0
# nmcli connection up eth1
$ ip route
default via 192.168.1.1 dev eth0 proto dhcp metric 10
default via 192.168.1.1 dev eth1 proto dhcp metric 10
That's looking strange to me because I thought there possible only one default route with specific metric and if I try to achieve same routing table with ip I've got an error:
# sudo ip route add default via 192.168.1.1 dev eth1 proto dhcp metric 11
# sudo ip route add default via 192.168.1.1 dev eth0 proto dhcp metric 11
RTNETLINK answers: File exists
So basically I have two questions:
1) Is that a bug? If it's not how kernel interpret such a routing table?
2) How can I build such a routing table using ip command?
centos route iproute nmcli gateway
add a comment |
Using NetworkManager on CentOS 7.6 I was able to create two default routes with same metric:
# nmcli connection eth0 modify ipv4.route-metric 10
# nmcli connection eth1 modify ipv4.route-metric 10
# nmcli connection up eth0
# nmcli connection up eth1
$ ip route
default via 192.168.1.1 dev eth0 proto dhcp metric 10
default via 192.168.1.1 dev eth1 proto dhcp metric 10
That's looking strange to me because I thought there possible only one default route with specific metric and if I try to achieve same routing table with ip I've got an error:
# sudo ip route add default via 192.168.1.1 dev eth1 proto dhcp metric 11
# sudo ip route add default via 192.168.1.1 dev eth0 proto dhcp metric 11
RTNETLINK answers: File exists
So basically I have two questions:
1) Is that a bug? If it's not how kernel interpret such a routing table?
2) How can I build such a routing table using ip command?
centos route iproute nmcli gateway
Using NetworkManager on CentOS 7.6 I was able to create two default routes with same metric:
# nmcli connection eth0 modify ipv4.route-metric 10
# nmcli connection eth1 modify ipv4.route-metric 10
# nmcli connection up eth0
# nmcli connection up eth1
$ ip route
default via 192.168.1.1 dev eth0 proto dhcp metric 10
default via 192.168.1.1 dev eth1 proto dhcp metric 10
That's looking strange to me because I thought there possible only one default route with specific metric and if I try to achieve same routing table with ip I've got an error:
# sudo ip route add default via 192.168.1.1 dev eth1 proto dhcp metric 11
# sudo ip route add default via 192.168.1.1 dev eth0 proto dhcp metric 11
RTNETLINK answers: File exists
So basically I have two questions:
1) Is that a bug? If it's not how kernel interpret such a routing table?
2) How can I build such a routing table using ip command?
centos route iproute nmcli gateway
centos route iproute nmcli gateway
asked 27 mins ago
reddotreddot
1435 bronze badges
1435 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f533771%2ftwo-default-routes-with-same-metric%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 Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f533771%2ftwo-default-routes-with-same-metric%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