LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-01-2013, 04:36 AM   #1
nnnnnng
LQ Newbie
 
Registered: Feb 2012
Posts: 10

Rep: Reputation: Disabled
Question 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.
 
Old 02-01-2013, 06:49 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,985

Rep: Reputation: Disabled
Try:
Code:
ip -f inet6 addrlabel show
 
Old 02-01-2013, 07:40 AM   #3
nnnnnng
LQ Newbie
 
Registered: Feb 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
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
 
Old 02-02-2013, 07:53 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,985

Rep: Reputation: Disabled
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.
 
  


Reply

Tags
command, ipv6, prefix


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Linux ISC DHCP to Windows Netsh DHCP ravmohun Linux - Server 3 03-01-2012 04:29 AM
[SOLVED] command in linux, similar to ckstr in solaris talksanjiv Linux - Newbie 2 01-21-2012 03:30 AM
Need to know Linux internals on multiple IPv6 addresses on single interface. itismohit Linux - Software 5 08-30-2011 01:11 PM
Exsists in Linux a command similar to ipconfig? zWaR Linux - Newbie 1 03-05-2004 05:27 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration