我应该使用什么 IPv6

我应该使用什么 IPv6

我有多个 IPv6,我需要知道哪个有效,在我的网络上它们都可以工作,但我需要知道我的 AAAA 记录应该使用哪个。 ip address

    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:23:24:08:58:1f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.8/24 brd 192.168.1.255 scope global dynamic noprefixroute enp0s25
       valid_lft 81865sec preferred_lft 81865sec
    inet6 2604:99c0:8:2fe6:cff:f4b1:8ace:8064/64 scope global temporary dynamic 
       valid_lft 43189sec preferred_lft 26989sec
    inet6 2604:99c0:8:2fe6:223:24ff:fe08:581f/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 43189sec preferred_lft 26989sec
    inet6 fe80::223:24ff:fe08:581f/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: ens2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:1b:21:bf:e7:28 brd ff:ff:ff:ff:ff:ff
    inet 169.254.38.166/16 brd 169.254.255.255 scope link noprefixroute ens2
       valid_lft forever preferred_lft forever
    inet6 2604:99c0:8:2fe6:287b:327f:9773:771f/64 scope global temporary dynamic 
       valid_lft 43189sec preferred_lft 26989sec
    inet6 2604:99c0:8:2fe6:21b:21ff:febf:e728/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 43189sec preferred_lft 26989sec
    inet6 fe80::21b:21ff:febf:e728/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

当我登录时我得到

  IPv4 address for enp0s25: 192.168.1.8
  IPv6 address for enp0s25: 2604:99c0:8:2fe6:cff:f4b1:8ace:8064
  IPv6 address for enp0s25: 2604:99c0:8:2fe6:223:24ff:fe08:581f
  IPv4 address for ens2:    169.254.38.166
  IPv6 address for ens2:    2604:99c0:8:2fe6:287b:327f:9773:771f
  IPv6 address for ens2:    2604:99c0:8:2fe6:21b:21ff:febf:e728

新的ip address

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:23:24:08:58:1f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.8/24 brd 192.168.1.255 scope global dynamic noprefixroute enp0s25
       valid_lft 86396sec preferred_lft 86396sec
    inet6 2604:99c0:8:2fe6:cff:f4b1:8ace:8064/64 scope global temporary dynamic 
       valid_lft 43197sec preferred_lft 26997sec
    inet6 2604:99c0:8:2fe6:223:24ff:fe08:581f/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 43197sec preferred_lft 26997sec
    inet6 fe80::223:24ff:fe08:581f/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: ens2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:1b:21:bf:e7:28 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::21b:21ff:febf:e728/64 scope link 
       valid_lft forever preferred_lft forever

答案1

您的计算机正在从路由器获取 SLAAC 和临时隐私地址。SLAAC 地址是固定的,基于网卡的 MAC 地址。您将使用此地址来接收传入连接。

隐私地址优先用于传出连接,这样它们就不会与您的传入连接相关联,或者当您的计算机每 6-12 小时获得一个新连接时它们彼此之间就不会相关联。

temporary隐私地址是您输出中标识的地址ip addr,而固定 SLAAC 地址是另一个地址,其中包含ff:fe主机部分中间的。尽管说是,但dynamic除非您更换 NIC 或伪造其 MAC 地址,否则它实际上不会改变。


请注意,您的路由器仍然存在影响您传入连接的防火墙问题,并且由于明显的措施似乎没有帮助,您可能需要向 IMU 寻求帮助。

相关内容