LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Look similar command (netsh interface ipv6 show prefixpolicies) at Linux (https://www.linuxquestions.org/questions/linux-networking-3/look-similar-command-netsh-interface-ipv6-show-prefixpolicies-at-linux-4175448129/)

nnnnnng 02-01-2013 04:36 AM

Look similar command (netsh interface ipv6 show prefixpolicies) at Linux
 
Dears

I want check the IPv6 Prefix policy at Linux, How can I finish the job?

In Windows world, I can use the command below to get information.
Code:

C:\>netsh interface 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


Thanks.
Any advice is welcome.

Ser Olmy 02-01-2013 06:49 AM

Try:
Code:

ip -f inet6 addrlabel show

nnnnnng 02-01-2013 07:40 AM

Quote:

Originally Posted by Ser Olmy (Post 4882183)
Try:
Code:

ip -f inet6 addrlabel show

Thanks for your help.

It's a good command, but how to known Precedence?


Code:

[root@host ~]# ip -f inet6 addrlabel show
prefix ::1/128 label 0
prefix ::/96 label 3
prefix ::ffff:0.0.0.0/96 label 4
prefix 2001::/32 label 6
prefix 2001:10::/28 label 7
prefix 2002::/16 label 2
prefix fc00::/7 label 5
prefix ::/0 label 1


Ser Olmy 02-02-2013 07:53 PM

The default prefix policy is actually defined in RFC 3484 (see page 5), but it seems glibc provides a mechanism to override both the default presedence policy and the labels by means of a configuration file.

In short, it seems reasonably safe to assume that the RFC 3484 default policy is in effect unless /etc/gai.conf says otherwise.


All times are GMT -5. The time now is 01:49 PM.