To give priority to IPv4

Facebooktwittermail

Memo

Windows Server 2008 R2

C:\>ping host01

host01.hogehoge.local [::1]に ping を送信しています 32 バイトのデータ:
::1 からの応答: 時間 <1ms ::1 からの応答: 時間 <1ms ::1 からの応答: 時間 <1ms ::1 からの応答: 時間 <1ms

C:\>netsh interface ipv6 show prefixpolicies
アクティブ状態を照会しています…

優先順位 ラベル プレフィックス
———- —– ——————————–
50 0 ::1/128
40 1 ::/0
30 2 2002::/16
20 3 ::/96
10 4 ::ffff:0:0/96
5 5 2001::/32

C:\>netsh interface ipv6 set prefixpolicy ::ffff:0:0/96 50 0
C:\>netsh interface ipv6 set prefixpolicy ::1/128 40 1
C:\>netsh interface ipv6 set prefixpolicy ::/0 30 2
C:\>netsh interface ipv6 set prefixpolicy 2002::/16 20 3
C:\>netsh interface ipv6 set prefixpolicy ::/96 10 4

C:\>netsh interface ipv6 show prefixpolicies
アクティブ状態を照会しています…

優先順位 ラベル プレフィックス
———- —– ——————————–
50 0 ::ffff:0:0/96
40 1 ::1/128
30 2 ::/0
20 3 2002::/16
10 4 ::/96
5 5 2001::/32

C:\>ping host01

host01.hogehoge.local [192.168.1.10]に ping を送信しています 32 バイトのデータ:
192.168.1.10 からの応答: バイト数 =32 時間 <1ms TTL=128 192.168.1.10 からの応答: バイト数 =32 時間 <1ms TTL=128 192.168.1.10 からの応答: バイト数 =32 時間 <1ms TTL=128 192.168.1.10 からの応答: バイト数 =32 時間 <1ms TTL=128

Leave a Reply