查看“︁Photoincat 2 IPv6 PPPoE”︁的源代码
←
Photoincat 2 IPv6 PPPoE
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== PPPoE 与 IPv6 配置指南 == === WAN 接口设置 (http://172.16.0.1:8080/cgi-bin/luci/admin/network/network) WAN=== # 进入 '''网络 → 接口 → WAN'''。 # 在 IPv6 设置中: ## 获取 IPv6 地址 → '''手动''' (在 PPP 链路上启用 IPv6 协商)。 ## 委托 IPv6 前缀 → '''启用'''。 ; 教学说明 : WAN 是拨号接口,必须让 PPPoE 连接时顺便协商 IPv6 地址,并把上级分配的 IPv6 前缀传递下去,这样内网才能用到公网 IPv6。 === WAN6 接口设置 (http://172.16.0.1:8080/cgi-bin/luci/admin/network/network) WAN6 === # 进入 '''网络 → 接口 → WAN6'''。 # 设备选择 → '''pppoe-wan''' (原本默认为 eth0)。 ; 教学说明 : WAN6 不是单独的物理口,而是跟随 PPPoE 拨号逻辑口。把它绑到 pppoe-wan 才能正确收发 IPv6 数据。 === LAN 接口设置 (http://172.16.0.1:8080/cgi-bin/luci/admin/network/network) LAN === 在 DHCPv6 相关配置中: * RA 服务:'''服务器模式''' * DHCPv6 服务:'''服务器模式''' * NDP 代理:'''混合模式''' ; 教学说明 : LAN 要作为 IPv6 地址分配的服务器,把前缀通过 RA 和 DHCPv6 分发给局域网设备。混合模式的 NDP 可以同时兼容静态地址和 DHCPv6 分配。 === 防火墙规则 (http://172.16.0.1:8080/cgi-bin/luci/admin/network/firewall/rules) === 为了保证 IPv6 入站访问正常,需要添加一条入站规则: # 进入 '''网络 → 防火墙 → 自定义规则'''。 # 添加新规则: * 名称:'''Allow-IPv6-Inbound''' * 区域:'''wan''' * 协议:'''IPv6''' * 来源区域:'''wan''' * 目标区域:'''device/lan''' * 动作:'''ACCEPT''' # 保存并应用。 ; 教学说明 : 默认防火墙会拦截来自外部的 IPv6 流量。添加这条规则是为了让 IPv6 入站流量能通过,保证公网可以访问到内网设备(如服务器或 NAS)。 ---- === 说明 === * WAN 接口(pppoe-wan)负责拨号并启用 IPv6 协商。 * WAN6 接口绑定到 PPPoE 逻辑接口,而不是物理网口 eth0。 * LAN 接口通过 RA 和 DHCPv6 向内网设备下发 IPv6 地址和前缀。 * 防火墙规则确保外部 IPv6 流量可以按需进入 LAN/设备。 == PPPoE and IPv6 Configuration Guide == === WAN Interface (http://172.16.0.1:8080/cgi-bin/luci/admin/network/network) WAN === # Go to '''Network → Interfaces → WAN'''. # Under IPv6 settings: ## Obtain IPv6 address → '''Manual''' (enable IPv6 negotiation on the PPP link). ## Delegate IPv6 prefix → '''Enable'''. ; Teaching Note : The WAN interface is responsible for PPPoE dialing. You need to enable IPv6 negotiation here so the ISP provides an IPv6 prefix, which will then be delegated to the LAN. === WAN6 Interface (http://172.16.0.1:8080/cgi-bin/luci/admin/network/network) WAN6 === # Go to '''Network → Interfaces → WAN6'''. # Set device → '''pppoe-wan''' (instead of the default eth0). ; Teaching Note : WAN6 is not a separate physical interface. It must follow the PPPoE logical interface (pppoe-wan) in order to properly send and receive IPv6 traffic. === LAN Interface (http://172.16.0.1:8080/cgi-bin/luci/admin/network/network) LAN === In the DHCPv6 settings: * RA Service: '''Server mode''' * DHCPv6 Service: '''Server mode''' * NDP Proxy: '''Hybrid mode''' ; Teaching Note : The LAN must act as the IPv6 prefix distributor. It does this by advertising addresses via RA (Router Advertisement) and DHCPv6. Hybrid NDP mode allows compatibility with both manually configured and dynamically assigned IPv6 addresses. === Firewall Rule (http://172.16.0.1:8080/cgi-bin/luci/admin/network/firewall/rules) === To allow inbound IPv6 traffic, add a firewall rule: # Go to '''Network → Firewall → Custom Rules'''. # Add a new rule: * Name: '''Allow-IPv6-Inbound''' * Zone: '''wan''' * Protocol: '''IPv6''' * Source zone: '''wan''' * Destination zone: '''device/lan''' * Action: '''ACCEPT''' # Save and apply. ; Teaching Note : By default, the firewall blocks inbound IPv6 traffic. This rule is needed to allow incoming IPv6 connections, for example if you want to expose a server or NAS to the internet. ---- === Summary === * The WAN interface (pppoe-wan) handles PPPoE dialing and IPv6 negotiation with the ISP. * The WAN6 interface must be bound to the PPPoE logical interface instead of the physical port. * The LAN interface distributes IPv6 prefixes to clients via RA and DHCPv6. * The firewall rule ensures inbound IPv6 traffic is accepted when required.
返回
Photoincat 2 IPv6 PPPoE
。
导航菜单
个人工具
登录
命名空间
页面
讨论
大陆简体
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
工具
链入页面
相关更改
页面信息