在 Arch 的官网上的 Network Manager 里,找到了这么一段
nmcli command line interface
nmcli connection modify 'Wired connection 2' setting.property value. See nmcli(1) for usage. For example, you can change its IPv4 route metric to 200 using nmcli connection modify 'Wired connection 2' ipv4.route-metric 200 command.
看上去是需要靠 ipv4.route-metric 来修改 metric
这个和 setting.property 是区分开来的,这个指的是优先级
如果还是不行就没想法了
这是链接:
https://wiki.archlinux.org/title/NetworkManager