Is there way to print IPv6 address selection precedence in command line?
2
votes
1
answer
469
views
I can print address' label via
ip addrlabel
and override label and precedence in /etc/gai.conf
, but how to print current precedence in command line?
In https://man7.org/linux/man-pages/man8/ip-addrlabel.8.html , it says
> Precedence is managed by userspace, and only the label itself is stored in the kernel.
but how to print that?
In windows, I can simply type:
$ netsh int ipv6 show prefixpolicies
Querying active state...
Precedence Label Prefix
---------- ----- --------------------------------
50 0 ::1/128
40 1 ::/0
30 2 2002::/16
20 3 ::/96
10 4 ::ffff:0:0/96
5 5 2001::/32
How to do the same thing in Ubuntu?
Thanks.
Asked by chansey
(173 rep)
May 7, 2023, 08:00 PM
Last activity: Feb 24, 2024, 01:38 PM
Last activity: Feb 24, 2024, 01:38 PM