TunnelBroker for EdgeRouter 后记
最近入手了UBNT EdgeRouter X, 想着用 IPv6在路由上FQ,经过两天折腾,终于正常使用,留下点标记 供后来同学借鉴。
TUNNEL的注册和配置,可以完全按这篇文章来:
TunnelBroker for EdgeRouter Lite 【感谢作者: @sskaje】
有几个问题我注明一下:
1.IPv6 不需做NAT,亦不需要做DHCPV6的地址分配, 当在交换机上配完prefix,连接该交换机接口的内网机器自动可以换取到IPV6地址(所有系统,包括IPhone ):
EdgeRouter X switch0 settings:
tester@ubnt# show interfaces switch switch0 address 192.168.1.1/24 ipv6 { address { autoconf } dup-addr-detect-transmits 1 router-advert { cur-hop-limit 64 link-mtu 1280 managed-flag false max-interval 600 other-config-flag false prefix 2001:470:XX:XXXX::/64 { autonomous-flag true on-link-flag true valid-lifetime 2592000 } radvd-options "RDNSS 2001:470:20::2 {} ;" radvd-options "RDNSS 2001:4860:4860::8888 {} ;" reachable-time 0 retrans-timer 0 send-advert true } } mtu 1500 switch-port { interface eth1 { } interface eth2 { } interface eth3 { } interface eth4 { } vlan-aware disable }
PC & IPhone 【Client side screeshort】
(Windows 10)
(IPhone)
2.关于DNS污染
IPv6也被污染, 像www.google.co.jp解析出来就不对了,因为有自建的DNS,相对好解决一些:
named.conf增加如下配置:
zone "google.com" { type forward; forwarders{ 2001:4860:4860::8888; 2001:470:20::2; }; }; zone "google.co.jp" { type forward; forwarders{ 2001:4860:4860::8888; 2001:470:20::2; }; };
以上,供参考.