
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) paylad 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 个月要重启一次路由?
1 Overfill3641 2022 年 1 月 15 日 应该不用,我的前缀也不变,一直没管一样有效。 |
2 acbot 2022 年 1 月 15 日 这里应该是本次获取的前缀最多用 30 天,也就是从侧面可以看出你的上网会话是 30 天强制刷新,其实上游会在( 5 分钟还是 30 分钟或者是多久)的时间间隔就会给你通告新的前缀,然后接口决定是否采用。就算新的前缀来了路由器接口也是自己更新一下,然后通告下联设备,不存在一定要重启路由的情况。 |
3 cwbsw 2022 年 1 月 16 日 一般是因为上游运营商配置了这么长的有效期,OpenWrt 之类专业点的路由器可以覆盖这个设置。 这个倒也不用重启路由,重新拨号后会广播新的 RA ,旧的前缀会被 deprecated ,但如果 valid_lft 太长的话,被 deprecated 的地址在到期之前会一直保留,强迫症可能会极度不适。 |
4 vtoex0000000002 OP @cwbsw 对 openwrt 会覆盖这个 lifetime 为 1 小时。 我是在光猫上直接抓包看的 |