Metric on connections and magic 20000 value added
I have 3 types of network connection and I set manyally metric for each connection:
- LAN cable, metric = 1 -
enp0s31f6
, - WiFi, metric = 100 -
wlp2s0
, - 4G/LTE modem, metric = 1000 -
wwp0s20f0u8c3
.
The reason for setting of metric is that I want to prioritise my connectivity based on the list above (the modem connection is metered). I also set autoconnect
priority for each connection but according to KDE#394364 this will not work as I expected so that’s why I tried to go the way by setting of the metric.
When each connection is activated, the system adds a strange value of 20000 to the metric.
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 100.87.7.97 0.0.0.0 UG 1000 0 0 wwp0s20f0u8c3
0.0.0.0 192.168.88.1 0.0.0.0 UG 20200 0 0 wlp2s0
100.87.7.96 0.0.0.0 255.255.255.224 U 1000 0 0 wwp0s20f0u8c3
192.168.88.0 0.0.0.0 255.255.255.0 U 200 0 0 wlp2s0
.
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 20001 0 0 enp0s31f6
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 enp0s31f6
This value 20000 is not added always, or to be more precise, it gets changed after some time to the value which I set for the particular connection.
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 1 0 0 enp0s31f6
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 enp0s31f6
Any idea why this is happening?
My system is Manjaro KDE running on 4.16.
linux networking kernel networkmanager manjaro
add a comment |
I have 3 types of network connection and I set manyally metric for each connection:
- LAN cable, metric = 1 -
enp0s31f6
, - WiFi, metric = 100 -
wlp2s0
, - 4G/LTE modem, metric = 1000 -
wwp0s20f0u8c3
.
The reason for setting of metric is that I want to prioritise my connectivity based on the list above (the modem connection is metered). I also set autoconnect
priority for each connection but according to KDE#394364 this will not work as I expected so that’s why I tried to go the way by setting of the metric.
When each connection is activated, the system adds a strange value of 20000 to the metric.
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 100.87.7.97 0.0.0.0 UG 1000 0 0 wwp0s20f0u8c3
0.0.0.0 192.168.88.1 0.0.0.0 UG 20200 0 0 wlp2s0
100.87.7.96 0.0.0.0 255.255.255.224 U 1000 0 0 wwp0s20f0u8c3
192.168.88.0 0.0.0.0 255.255.255.0 U 200 0 0 wlp2s0
.
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 20001 0 0 enp0s31f6
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 enp0s31f6
This value 20000 is not added always, or to be more precise, it gets changed after some time to the value which I set for the particular connection.
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 1 0 0 enp0s31f6
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 enp0s31f6
Any idea why this is happening?
My system is Manjaro KDE running on 4.16.
linux networking kernel networkmanager manjaro
add a comment |
I have 3 types of network connection and I set manyally metric for each connection:
- LAN cable, metric = 1 -
enp0s31f6
, - WiFi, metric = 100 -
wlp2s0
, - 4G/LTE modem, metric = 1000 -
wwp0s20f0u8c3
.
The reason for setting of metric is that I want to prioritise my connectivity based on the list above (the modem connection is metered). I also set autoconnect
priority for each connection but according to KDE#394364 this will not work as I expected so that’s why I tried to go the way by setting of the metric.
When each connection is activated, the system adds a strange value of 20000 to the metric.
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 100.87.7.97 0.0.0.0 UG 1000 0 0 wwp0s20f0u8c3
0.0.0.0 192.168.88.1 0.0.0.0 UG 20200 0 0 wlp2s0
100.87.7.96 0.0.0.0 255.255.255.224 U 1000 0 0 wwp0s20f0u8c3
192.168.88.0 0.0.0.0 255.255.255.0 U 200 0 0 wlp2s0
.
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 20001 0 0 enp0s31f6
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 enp0s31f6
This value 20000 is not added always, or to be more precise, it gets changed after some time to the value which I set for the particular connection.
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 1 0 0 enp0s31f6
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 enp0s31f6
Any idea why this is happening?
My system is Manjaro KDE running on 4.16.
linux networking kernel networkmanager manjaro
I have 3 types of network connection and I set manyally metric for each connection:
- LAN cable, metric = 1 -
enp0s31f6
, - WiFi, metric = 100 -
wlp2s0
, - 4G/LTE modem, metric = 1000 -
wwp0s20f0u8c3
.
The reason for setting of metric is that I want to prioritise my connectivity based on the list above (the modem connection is metered). I also set autoconnect
priority for each connection but according to KDE#394364 this will not work as I expected so that’s why I tried to go the way by setting of the metric.
When each connection is activated, the system adds a strange value of 20000 to the metric.
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 100.87.7.97 0.0.0.0 UG 1000 0 0 wwp0s20f0u8c3
0.0.0.0 192.168.88.1 0.0.0.0 UG 20200 0 0 wlp2s0
100.87.7.96 0.0.0.0 255.255.255.224 U 1000 0 0 wwp0s20f0u8c3
192.168.88.0 0.0.0.0 255.255.255.0 U 200 0 0 wlp2s0
.
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 20001 0 0 enp0s31f6
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 enp0s31f6
This value 20000 is not added always, or to be more precise, it gets changed after some time to the value which I set for the particular connection.
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 1 0 0 enp0s31f6
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 enp0s31f6
Any idea why this is happening?
My system is Manjaro KDE running on 4.16.
linux networking kernel networkmanager manjaro
linux networking kernel networkmanager manjaro
edited May 21 '18 at 4:43
asked May 18 '18 at 8:28
Petr Nehez
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
This is the behavior of Network Manager from version 1.8, see commit: https://github.com/NetworkManager/NetworkManager/commit/6b7e9f9b225e81d365fd95901a88a7bc59c1eb39
It says:
This makes it possible to retain Internet connectivity when multiple
devices have a default route, but one with the link type of a higher
priority can not reach the Internet.
add a comment |
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%2f444538%2fmetric-on-connections-and-magic-20000-value-added%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
This is the behavior of Network Manager from version 1.8, see commit: https://github.com/NetworkManager/NetworkManager/commit/6b7e9f9b225e81d365fd95901a88a7bc59c1eb39
It says:
This makes it possible to retain Internet connectivity when multiple
devices have a default route, but one with the link type of a higher
priority can not reach the Internet.
add a comment |
This is the behavior of Network Manager from version 1.8, see commit: https://github.com/NetworkManager/NetworkManager/commit/6b7e9f9b225e81d365fd95901a88a7bc59c1eb39
It says:
This makes it possible to retain Internet connectivity when multiple
devices have a default route, but one with the link type of a higher
priority can not reach the Internet.
add a comment |
This is the behavior of Network Manager from version 1.8, see commit: https://github.com/NetworkManager/NetworkManager/commit/6b7e9f9b225e81d365fd95901a88a7bc59c1eb39
It says:
This makes it possible to retain Internet connectivity when multiple
devices have a default route, but one with the link type of a higher
priority can not reach the Internet.
This is the behavior of Network Manager from version 1.8, see commit: https://github.com/NetworkManager/NetworkManager/commit/6b7e9f9b225e81d365fd95901a88a7bc59c1eb39
It says:
This makes it possible to retain Internet connectivity when multiple
devices have a default route, but one with the link type of a higher
priority can not reach the Internet.
answered 24 mins ago
alfred
166114
166114
add a comment |
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f444538%2fmetric-on-connections-and-magic-20000-value-added%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