How can I change "metric" value of default routes in Centos7?

Issues related to configuring your network
Post Reply
ktag
Posts: 1
Joined: 2017/10/24 14:59:05

How can I change "metric" value of default routes in Centos7?

Post by ktag » 2017/10/24 15:02:57

Hi all,

I've posted my question on ServerFault: https://serverfault.com/questions/88003 ... -of-metric.

Any help will be appreciated!

Thanks.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: How can I change "metric" value of default routes in Centos7?

Post by jlehtone » 2017/10/25 08:23:12

network.service or NetworkManager.service?

The output of

Code: Select all

grep METRIC /etc/sysconfig/network-scripts/*
hints that such environment variable is used by the network.service for something.

Code: Select all

man nm-settings
describes ipv4.route-metric and ipv6.route-metric that the NetworkManager supposedly uses.

Post Reply