V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wuruxu
V2EX  ›  宽带症候群

ipv6 环境下使用 wireguard, mtu 最好配置为 1280

  •  
  •   wuruxu · 23 天前 · 859 次点击

    openwrt 环境下配置 /etc/config/network 类似如下:

    config interface 'wg0'
        option proto 'wireguard'
        option mtu '1280'
        option private_key 'xyzkjkfdkjfdlajfkdaCL22Nnv2gC3bbvmsE='
        list addresses '192.139.75.188'
        list addresses 'fed:aaaa:aaaa:aa01:d:0:b:4aa1'
    
    5 条回复    2024-05-27 13:31:26 +08:00
    xqzr
        1
    xqzr  
       23 天前   ❤️ 3
    最保守的。

    标准以太网
    IPv6 endpoint 1420
    IPv4 endpoint 1440

    PPPoE 下 减少 8
    IPv6 endpoint 1412
    IPv4 endpoint 1432
    Fred0410
        2
    Fred0410  
       23 天前
    什么原因
    wuruxu
        3
    wuruxu  
    OP
       23 天前
    @Fred0410 我的路由器不是直接拨号,二级的路由器,后来我也测试了,1400 也是可以的
    cyyself
        4
    cyyself  
       22 天前   ❤️ 1
    @xqzr #1 需要注意的是,WireGuard over IPv6 over PPPoE 实际只能 1408 ,用 1412 依然会分片,因为 payload 需要 8 字节对齐
    shikkoku
        5
    shikkoku  
       20 天前
    @cyyself #4 如果是 1500 标准以太网接入填多少?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1251 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 23:41 · PVG 07:41 · LAX 16:41 · JFK 19:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.