type
status
date
slug
summary
tags
category
icon
password
一直以来,在网上查找下层路由想要分配ipv6公网地址的方式都是改为光猫桥接+路由器拨号,该方式虽然性能较好,但损失了光猫上的一部分lan口,有时无法满足需求。
经过参考下面的一些材料,配置了光猫与二级路由分配公网ipv6的方式。
无线路由器设置
这里以小米无线路由器设置界面为例,在ipv6网络设置中选择Native模式,其中,
Native指路由器自动获取ipv6前缀,用于下发ipv6地址
NAT6模式则与传统ipv4 NAT类似,下发ipv6内网地址
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2Fb8b7aef8-4b50-48f5-b601-9e790d946fe5%2FUntitled.png?table=block&id=d930e3da-76af-48e1-b02a-efdc7c8a95ff&t=d930e3da-76af-48e1-b02a-efdc7c8a95ff&width=1024&cache=v2)
DNS可留空自动配置,也可ping测试选择延迟最低的
光猫设置
光猫需打开超级管理员模式,根据自己的光猫型号搜索相应打开方式
首先查看当前ipv6前缀是否为/60前缀
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F8f576dff-cae1-4796-9840-0413e1651e01%2FUntitled.png?table=block&id=99324ee3-350b-4b79-b1e0-03c562fd01cd&t=99324ee3-350b-4b79-b1e0-03c562fd01cd&width=1488&cache=v2)
若为/60前缀,可继续进行设置
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F0e790184-b918-4b67-9e4d-593b5e9b0732%2FUntitled.png?table=block&id=8deffa95-7a5c-4fa1-bd35-ae15499d8575&t=8deffa95-7a5c-4fa1-bd35-ae15499d8575&width=1616&cache=v2)
基础配置中,确认ipv6全局地址获取方式、DHCP启用前缀代理、NATv6模式
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2Ff0618e24-bb2c-48c8-be56-1929092bcccd%2FUntitled.png?table=block&id=89a1ad60-7ca5-4ef6-a9b9-142d992ccdd2&t=89a1ad60-7ca5-4ef6-a9b9-142d992ccdd2&width=797&cache=v2)
Lan配置中,确认 LAN侧前辍获取方式
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2Fef7fea2f-6987-44ac-b7b2-8134a3cd0baa%2FUntitled.png?table=block&id=58ab2017-6d0f-47b2-a28b-f3f4cc1875b7&t=58ab2017-6d0f-47b2-a28b-f3f4cc1875b7&width=1164&cache=v2)
DHCPV6 配置中,确认DHCPv6 模式、DHCPv6 伺服器类型
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2Fa4f2d7d2-9f13-4d8f-af55-e058e9cb4930%2FUntitled.png?table=block&id=8faccc12-5304-45c2-b726-0691f000a7b0&t=8faccc12-5304-45c2-b726-0691f000a7b0&width=1034&cache=v2)
RA配置中,确认RA使能、管理的地址配置、其他状态配置
结果检查
下级路由Wan口获取到ipv6地址,Lan口具有ipv6前缀
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2Fc6f7f12b-3433-4a52-aae3-6ed2cd27bea4%2FUntitled.png?table=block&id=f7876fb6-8b99-4dc4-8b78-6024944e9c41&t=f7876fb6-8b99-4dc4-8b78-6024944e9c41&width=988&cache=v2)
终端获取ipv6地址
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F0c33afc4-ca4a-4d68-ab4e-f37825056254%2FUntitled.png?table=block&id=2721bbef-73ac-4bdb-bff9-b9cc5c71fbf7&t=2721bbef-73ac-4bdb-bff9-b9cc5c71fbf7&width=815&cache=v2)
参考
- Author:NotionNext
- URL:https://tangly1024.com/article/%E4%BA%8C%E7%BA%A7%E8%B7%AF%E7%94%B1ipv6%E8%AE%BE%E7%BD%AE%20%E5%85%89%E7%8C%AB%E4%B8%8B%E5%8F%91ipv6%E5%89%8D%E7%BC%80
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!