Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[debug]如何在多个ipv6地址中获取正确的地址? #400

Open
litaying opened this issue Jun 7, 2023 · 1 comment
Open

[debug]如何在多个ipv6地址中获取正确的地址? #400

litaying opened this issue Jun 7, 2023 · 1 comment

Comments

@litaying
Copy link

litaying commented Jun 7, 2023

IPv6 地址 . . . . . . . . . . . . : 240e:33a:359:3411::3a3
IPv6 地址 . . . . . . . . . . . . : 240e:33a:359:3411:4de6:8b66:c418:b7cb
临时 IPv6 地址. . . . . . . . . . : 240e:33a:359:3411:48ba:9e10:cd7d:952d
本地链接 IPv6 地址. . . . . . . . : fe80::433f:5e17:29ef:d4d7%6
如果我使用数字第 i 个网卡 ip有时会获取到fe80::433f:5e17:29ef:d4d7%6
使用系统访问外网默认 IP是临时ipv6,变更速度比较快
使用正则,有其他两个和240e:33a:359:3411:4de6:8b66:c418:b7cb前缀一致的,这种怎么处理呢?

@litaying litaying added the bug label Jun 7, 2023
@NewFuture NewFuture added help wanted and removed bug labels Jun 30, 2023
@IIIlllIIllIIIll
Copy link
Contributor

IIIlllIIllIIIll commented Aug 23, 2023

二选一即可

  • PowerShellSet-NetIPv6Protocol -RandomizeIdentifiers Disabled 启用 EUI-64
  • PowerShellGet-NetIPConfiguration | Select-Object IPv6Address 获取地址

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants