发布时间: 2024-7-27 文章作者: myluzh 分类名称: RouterOS 朗读文章
[admin@HomeROS] > /ipv6/settings/set forward=yes0x02 PPPOE开启IPv6
[admin@HomeROS] > /ppp/profile/ set default use-ipv6=yes2、重新pppoe拨号,获取ipv6地址
[admin@HomeROS] > /interface/ disable pppoe-out-dx [admin@HomeROS] > /interface/ enable pppoe-out-dx3、看是否获取到了ipv6地址
[admin@HomeROS] > /interface/pppoe-client/ monitor pppoe-out-dx status: connected ... local-ipv6-address: fe80::efee:4467:0:7 remote-ipv6-address: fe80::2e0:fcff:feb4:2060x03 IPv6-DHCP Client配置
[admin@HomeROS] > /ipv6/dhcp-client/ add add-default-route=yes interface=pppoe-out-dx pool-name=v6 request=prefix2、使用从 DHCP 服务器接收到的 DNS 服务器地址
[admin@HomeROS] > /ipv6/dhcp-client/ set [find interface=pppoe-out-dx] use-peer-dns=yes3、当Status显示Bound说明获取正常
[admin@HomeROS] > /ipv6/dhcp-client/ print 0 pppoe-out-dx bound prefix 240e:390:6246:3610::/60, 2d17h11m29s4、同时IP-DNS下检查是否正常获取上游DNS地址,如果正常说明IPv6已经正常拨号。或者可以不使用use-peer-dns=yes,自己设置ipv6的dns地址
[admin@HomeROS] > /ip/dns/print servers: 223.5.5.5 dynamic-servers: 8.8.8.8,240e:1c:200::1,240e:1c:200::20x04 IPv6 ND配置
[admin@HomeROS] > /ipv6/nd/ add interface=ether1 managed-address-configuration=yes other-configuration=yes [admin@HomeROS] > /ipv6/nd/ add interface=ether2 managed-address-configuration=yes other-configuration=yesinterface:指定配置的接口。
[admin@HomeROS] > /ipv6/address/ add from-pool=v6 interface=ether1 [admin@HomeROS] > /ipv6/address/ add from-pool=v6 interface=ether22、等待几秒,可以查看到自动获得IPv6公网地址
[admin@HomeROS] > /ipv6/address/print Flags: D - DYNAMIC; G - GLOBAL, L - LINK-LOCAL Columns: ADDRESS, FROM-POOL, INTERFACE, ADVERTISE # ADDRESS FROM-POOL INTERFACE ADVERTISE ... 4 G 240e:390:6246:3610::/64 v6 ether1 yes 5 G 240e:390:6246:3612::/64 v6 ether2 yes ...0x06 IPv6 DHCP服务器配置
[admin@HomeROS] > /ipv6/dhcp-server/ add address-pool="" interface=ether1 name=server1 [admin@HomeROS] > /ipv6/dhcp-server/ add address-pool="" interface=ether2 name=server20x07 IPv6验证
[admin@HomeROS] > /ip firewall mangle add action=change-mss chain=forward new-mss=1452 passthrough=yes protocol=tcp tcp-flags=syn [admin@HomeROS] > /ipv6 firewall mangle add action=change-mss chain=forward new-mss=1432 passthrough=yes protocol=tcp tcp-flags=synMSS计算方法:需要根据PPPOE拨号上的Actual MTU设置,建议看一下光猫默认的MTU再去更改,即Actual MTU-40。我这里就是 IPv4:MSS=1452(1492-40)。IPV6:MSS=MSS=1432(1492-60)。
发表评论