vtoex0000000002

v6 ra 前缀 lifetime 30 天

  •  
  •   vtoex0000000002 · Jan 15, 2022 · 2600 views
    This topic created in 1596 days ago, the information mentioned may be changed or developed.

    tcpdump 路由器上抓包

    tcpdump -i any -vvvn icmp6 and 'ip6[40] = 133 or ip6[40] = 134'
    
    

    结果

    02:59:52.120653 IP6 (class 0xe0, hlim 255, next-header ICMPv6 (58) payload length: 104) fe80::ce1a:faff:feee:7dc0 > fe80::x:x:x:x: [icmp6 sum ok] ICMP6, router advertisement, length 104
            hop limit 64, Flags [other stateful], pref medium, router lifetime 1800s, reachable time 0s, retrans time 0s
              source link-address option (1), length 8 (1): cc:1a:fa:ee:7d:c0
                0x0000:  cc1a faee 7dc0
              mtu option (5), length 8 (1):  1492
                0x0000:  0000 0000 05d4
              rdnss option (25), length 40 (5):  lifetime 4294967295s, addr: 2408:8000:aaaa:: addr: 2408:8888::8
                0x0000:  0000 ffff ffff 2408 8000 aaaa 0000 0000
                0x0010:  0000 0000 0000 2408 8888 0000 0000 0000
                0x0020:  0000 0000 0008
              prefix info option (3), length 32 (4): 2408:823c:805:4c8b::/64, Flags [onlink, auto], valid time 2592000s, pref. time 604800s
                0x0000:  40c0 0027 8d00 0009 3a80 0000 0000 2408
                0x0010:  823c 0805 4c8b 0000 0000 0000 0000
    
    

    意味着 1 个月要重启一次路由?

    4 replies    2022-01-16 15:11:06 +08:00
    Overfill3641
        1
    Overfill3641  
       Jan 15, 2022
    应该不用,我的前缀也不变,一直没管一样有效。
    acbot
        2
    acbot  
       Jan 15, 2022
    这里应该是本次获取的前缀最多用 30 天,也就是从侧面可以看出你的上网会话是 30 天强制刷新,其实上游会在( 5 分钟还是 30 分钟或者是多久)的时间间隔就会给你通告新的前缀,然后接口决定是否采用。就算新的前缀来了路由器接口也是自己更新一下,然后通告下联设备,不存在一定要重启路由的情况。
    cwbsw
        3
    cwbsw  
       Jan 16, 2022
    一般是因为上游运营商配置了这么长的有效期,OpenWrt 之类专业点的路由器可以覆盖这个设置。
    这个倒也不用重启路由,重新拨号后会广播新的 RA ,旧的前缀会被 deprecated ,但如果 valid_lft 太长的话,被 deprecated 的地址在到期之前会一直保留,强迫症可能会极度不适。
    vtoex0000000002
        4
    vtoex0000000002  
    OP
       Jan 16, 2022
    @cwbsw 对 openwrt 会覆盖这个 lifetime 为 1 小时。
    我是在光猫上直接抓包看的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2815 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 05:08 · PVG 13:08 · LAX 22:08 · JFK 01:08
    ♥ Do have faith in what you're doing.