IPv6 地址通过ROS 路由器传递

操作步骤:
1.使用ROS路由器 与 运营商端 建立一个 Tunnel,(可以使用: L2tp,ppp,sstp,Openvpn)
2.基于上面的基础隧道建立一个 6to4 tunnel
/interface 6to4
add comment=IPV6 !keepalive local-address=10.10.30.2 name=6to4-tunnel1 remote-address=10.10.30.1

3.配置设备bridge 接口,一般默认就有,可以不用管。
4.配置IPv6 地址池:
/ipv6 pool
add name=pool1 prefix=2404:f880:ffff:fffb::/64 prefix-length=64

5.Bridge接口或者物理接口配置 IPv6 地址:
/ipv6 address
add address=::1 from-pool=pool1 interface=bridge

  1. 6to4 tunnel 配置对接互联IP,方便上游运营商把ipv6 地址传递下来。
    /ipv6 address
    add address=fed0:2020:12:10::2/126 advertise=no interface=6to4-tunnel1

7.配置ip v6 dhcp server:这里创建完成地址池后就直接配置DHCP server,要不然Bridge接口会获取不到IP
/ipv6 dhcp-server
add address-pool=pool1 interface=bridge name=server1

8.添加 ipv6 默认路由:
/ipv6 route
add check-gateway=ping distance=1 gateway=fed0:2020:12:10::1

9.配置ipv6 DNS server :
/ip dns
set allow-remote-requests=yes servers=240c::6666 , 2001:4860:4860::8888

10.在IPv6 配置内,把 ND 选项配置好:
/ipv6 nd
set [ find default=yes ] disabled=yes
add advertise-dns=yes hop-limit=64 interface=bridge

11,如何ROS路由器的ipv4 物理基础IP 是自动获取或者 pppoe 的,要记得把 DNS 自动获取关掉,不然会影响IPv6 的DNS。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Connor_xie/article/details/111031157