RouterOS 设置 PPPoE 拨号及启用 IPv6
Page content
写在前面
记得把运营商给的光猫设置为桥接模式。还有记得把命令里面的接口啥的换成你自己实际的。
开干
PPPoE 拨号
/interface pppoe-client
add add-default-route=yes default-route-distance=10 disabled=no interface=ether5 name=pppoe-out1 use-peer-dns=yes \
user="your_A/C" password="your_pwd"
启用 IPv6
/ipv6 settings set disable-ipv6=no
/ipv6 dhcp-client add interface=pppoe-out1 pool-name=pppoe-v6-pool request=prefix
/ipv6 nd set [ find default=yes ] interface=bridge
其他
MSS 钳制
弄好之后开一下 MSS 钳制,不然有些网站打不开。
/interface list member add interface=pppoe-out1 list=WAN
/ip firewall mangle add action=change-mss chain=forward new-mss=clamp-to-pmtu out-interface-list=WAN passthrough=yes protocol=tcp tcp-flags=syn
/ipv6 firewall mangle add action=change-mss chain=forward new-mss=clamp-to-pmtu out-interface-list=WAN passthrough=yes protocol=tcp tcp-flags=syn
upnp & nat-pmp
还要打开 uPnP 和 NAT-PMP ,不然 qbitorrent 总是显示防火墙而且一丁点上传都没有。
/ip upnp set enabled=yes
/ip upnp interfaces
add interface=bridge type=internal
add interface=pppoe-out1 type=external
/ip nat-pmp set enabled=yes
/ip nat-pmp interfaces
add interface=bridge type=internal
add interface=pppoe-out1 type=external