Questions tagged [metric]
16 questions
5
votes
1 answer
Set routing metrics for static IPs with systemd-networkd?
I recently set up a server with its network managed directly by systemd-networkd (nuked netplan.io and Network Manager) and gave it static IPs like…
iBug
- 3,428
- 1
- 24
- 57
3
votes
1 answer
What is an ip route metric, how do I change it?
When I run ip route, I see
default via 172.16.42.1 dev ens5 proto dhcp src 172.16.42.248 metric 100
default via 172.16.42.1 dev ens3 proto dhcp src 172.16.42.79 metric 100
default via 10.2.64.1 dev ens4 proto dhcp src 10.2.69.64 metric 100
All of…
Evan Carroll
- 28,578
- 45
- 164
- 290
3
votes
1 answer
Two default gateways with different metric on CentOS 7 box - how?
I'm begging for help here. Been spending hours researching how to solve what seemed like a simple problem:
On a CentOS 7.6 host with two network interfaces on two different networks, how to have two default gateways with a set metric to favour one…
Alain
- 31
- 1
- 2
3
votes
0 answers
Collectd: How to sum cpu-user and cpu-system metric
I have the challenge to feed some metrics to our central metric collection infrastructure, and one of those is the total CPU usage of the system. I'm using collectd to do so. By default, collectd spits out cpu-system, cpu-user and cpu-idle metrics…
jritter
- 61
- 3
3
votes
0 answers
Prefer wired over wireless for local subnet using NetworkManager
My wireless network is bridged to my wired network, so both have the same subnet. How do I tell NetworkManager to give the local subnet route on the wireless interface a higher metric than the route on the wired interface? There used to be a…
Michel
- 213
- 1
- 5
3
votes
0 answers
Default iterface/routes metric in Linux
When I run ip route on my Linux machine, I see
default via xxx.xxx.xxx.xxx dev eno1 metric 202
I wonder, where this 202 metric is configured and what other ip commands use it.
Eugene Yarmash
- 14,675
- 14
- 50
- 57
2
votes
2 answers
How to combine settings from multiple locales in Linux?
When I installed Linux I set my locale to en_US.UTF-8. However I want to override some but not all of the settings in that locale. Specifically, I would like the Measurement to be Metric instead of Imperial and the Date to be DD/MM/YYYY instead of…
bch6595
- 21
- 1
2
votes
2 answers
AIX - redirect hostname in other subnet via route
I have two servers: one application and one database. They are both connected over two interfaces. One is frontend LAN with 100 Mbit and one is in the backbone LAN with 1 Gbit.
Well, planned is that only the users who are connecting to the…
dafrk
- 61
- 4
1
vote
0 answers
How to override default route metric (1024) for dhcp client interface with systemd-networkd config?
systemd 237 in Ubuntu 18.04 sets route metric for defaultroute received via DHCP on wired interface to 1024. However, defaultroute on NetworkManager's controlled wlan interface is set to 20.
Is there any way to override default metric on DHCP client…
Koguni
- 11
- 2
1
vote
1 answer
NetworkManager doesn't change the metric of the default gateway immediately
I'm using the commands found in one of the answers to this question : How can I make changes to the network routing metric permanently
Before, I change the metric of the PPP0 device (3G UBlox modem) :
:~$ route
Kernel IP routing table
Destination …
Aminos
- 131
- 1
- 9
1
vote
1 answer
What are the defaults of route metrics?
I was trying to script OpenVPN server setup to modify metric of pushed routes so these are higher than any other interface:
push "route-metric 700"
This is needed to overcome https://community.openvpn.net/openvpn/ticket/1004 bug.
Though 700 seems…
Te Ri
- 303
- 2
- 7
1
vote
1 answer
How are default values for routing table entries in Linux set?
This is excerpt from my ip route command:
192.168.1.0/24 dev enp1s0 proto kernel scope link src 192.168.1.2 metric 100
192.168.1.0/24 dev wlp2s0 proto kernel scope link src 192.168.1.14 metric 600
First interface enp1s0 (Ethernet), has…
syntagma
- 12,091
- 21
- 57
- 74
1
vote
0 answers
Change of Network Interface using Metrics
I want to achieve dynamic interface change between eth0 and wlan0, one solution I am looking into is to change interface metric. Different than this question, I don't want to make any change to /etc/networking/interfaces, so I used ifmetricto change…
Lingyuan He
- 23
- 1
- 5
0
votes
1 answer
Oracle Linux: How to set the metric of a NIC?
How can I set the metric of a network interface (DHCP) permanently in Oracle Linux (think it is managed my NetworkManager)?
chris01
- 519
- 1
- 9
- 22
0
votes
0 answers
Change priority(bandwidth) of network interface or by ip address
I have a virtual router with two networks. WAN and LAN. On LAN there are several PC's with fixed IP all on the same network. The router OS is Linux based.
Traffic from PC A would by default use all the bandwidth (over night or when my "work" machine…
shittyscripts
- 3
- 3