Share via

View ipv6 subnet mask / prefix on Windows 10/11

Anonymous
2023-03-22T11:07:52+00:00

I was looking for the IPv6 subnet mask / prefix on my Windows 11 installation. However ipconfig /all only shows complete IPv4 configuration, but IPv6 lacks this.

In Article: https://answers.microsoft.com/en-us/windows/forum/all/fetch-ipv6-subnet-maskprefix-in-windows-10/62b8ecab-3e63-46cc-a6d3-01fddb9270da I found the same question, however I cannot reply to this as I found a quick solution/workaround by not useing ipconfig/all but netstat -rn.

netstat -rn shows all routing table entries including IPv6 with subnet mask / prefix.

Soi this is not really a question but more a workaround.

Cheers!.

Windows for home | Windows 11 | Settings

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-03-22T11:55:08+00:00

    Hi,

    I am R. Cord, Independent Advisor.

    I hope you are doing well.

    Find Your Private (local) IPv4 and IPv6 Address in Settings:

    Open Settings (Win+I).

    Click/tap on Network & internet on the left side, and click/tap on Properties for the connected network you want.

    You will now see the private (local) IPv4 address and IPv6 address for this network.

    Or via control panel:

    Open the Control Panel (icons view), and click/tap on the Network and Sharing Center icon.

    In Network and Sharing Center, click/tap on the network connection link next to Connections you want to know its IP address.

    Click/tap Details.

    You will now see the private (local) IPv4 address and IPv6 address for this network.

    Via CMD:

    On the Command Prompt window, type: netstat -rn

    This will display the routing table entries for both IPv4 and IPv6 protocols. Look for the IPv6 address that you want to view the subnet mask or prefix for.

    The subnet mask or prefix length will be displayed in the "Prefix" column, next to the IPv6 address.

    EDIT: that the prefix length is indicated by the number of bits that are set to 1 in the subnet mask. For example, a subnet mask of ffff:ffff:ffff:ffff would have a prefix length of 64, because the first 64 bits are set to 1.

    Let me know if helps you,

    With my best regards,

    R. Cord

    Was this answer helpful?

    8 people found this answer helpful.
    0 comments No comments