简体   繁体   English

无法通过第二个路由器获取 IPv6

[英]Can't get IPv6 through a second router

I have 2 segments on a lan (one for home stuff, the other for work), using 2 routers like this:我在局域网上有 2 个网段(一个用于家庭用品,另一个用于工作),使用 2 个这样的路由器:

The line comes in to a BT-Business Smart Hub Type A which supplies a wireless lan of 10.1.0.* That's the first segment.该线路进入 BT-Business Smart Hub Type A,它提供 10.1.0 的无线局域网。* 这是第一段。 IPv6 works fine on that. IPv6 在这方面工作得很好。

The 2nd segment is made by connecting a second router at a lan port (on the BT router) with a static address of 10.1.0.253.第二段是通过在 LAN 端口(在 BT 路由器上)连接第二个路由器,地址为 static,地址为 10.1.0.253。 This is a Netgear D6400 and it receives that line on its wan port.这是 Netgear D6400,它在其 wan 端口接收到该线路。 Its lan side address is 10.1.1.254 and it serves a work segment of 10.1.1.0/24.它的 lan 端地址是 10.1.1.254,它服务于 10.1.1.0/24 的工作段。

All works well with IPv4 but I can't get it to deal with IPv6.一切都适用于 IPv4,但我无法让它处理 IPv6。

I have tried auto-config, passthrough, 6to4tunnel etc. but to no avail.我尝试过自动配置、直通、6to4tunnel 等,但无济于事。 Without going into ipv6 addresses, can this be answered simply?不进入ipv6地址,这能简单回答吗?

Some reading on the web suggests that it is due to prefix delegation or lack of it on the BT Hub.一些关于 web 的阅读表明这是由于前缀委托或 BT 集线器上缺少它。 Is my IPv6 problem due to using a BT router, is it ever going to be possible, have I missed something?我的 IPv6 问题是由于使用 BT 路由器造成的吗,是否有可能,我错过了什么吗?

Is the simplest answer to replace them both with a decent Draytek that can handle multiple vlans - that way I get my 2 segments, each with IPv6.用可以处理多个 vlan 的体面的 Draytek 替换它们是最简单的答案——这样我就得到了 2 个网段,每个网段都有 IPv6。 But could that work the BT Aspire dongle that (theoretically) kicks in with a 4g connection if the line goes down?但是,如果线路出现故障,BT Aspire 加密狗(理论上)可以通过 4g 连接启动吗?

On my.network I've solved this question with manual prefix on 2nd router, using DHCPv6 to stateful connection.在 my.network 上,我在第二个路由器上使用 DHCPv6 进行有状态连接,使用手动前缀解决了这个问题。 I do a limit to range of modem/router without change the prefix (this device not support more then /64 to use DHCPv6), while on 2nd router I use the manually the same of prefix delegation to modem LAN and I've configurated DHCPv6 to stateful with limited range out of modem range.我在不更改前缀的情况下对调制解调器/路由器的范围进行了限制(此设备不支持超过 /64 来使用 DHCPv6),而在第二个路由器上,我手动使用与调制解调器 LAN 相同的前缀委托,并且我已经配置了 DHCPv6在调制解调器范围之外的有限范围内变为有状态。

After DHCPv6 finished, I set on modem a static route to my 2nd DHCPv6 prefix/124 and finish. DHCPv6 完成后,我在调制解调器上设置了一个 static 路由到我的第二个 DHCPv6 前缀/124 并完成。

Example 1:示例 1:

Modem IPv6 from ISP: 2001::1;来自 ISP 的调制解调器 IPv6:2001::1;

On modem:在调制解调器上:

  • Prefix delegation (DHCP-PD) to LAN modem: 2001:1::/64; LAN 调制解调器的前缀委托 (DHCP-PD):2001:1::/64;
  • Set modem LAN address to::1:1;将调制解调器局域网地址设置为::1:1;
  • Set DHCP stateful range between::1:2 and:1:ff;在::1:2 和:1:ff 之间设置 DHCP 状态范围;
  • Set IPv6 static route to 2nd router LAN range (ex: 2001:1::/124) and gateway equal to 2nd router WAN IPv6 address;将 IPv6 static 路由设置为第二个路由器 LAN 范围(例如:2001:1::/124),网关等于第二个路由器 WAN IPv6 地址;

On 2nd router:在第二个路由器上:

  • Disable DHCP-PD and set manually equal of modem LAN (if possible, change the su.net value for above then /64 [ex: /124 used on static route]);禁用 DHCP-PD 并手动设置等于调制解调器 LAN(如果可能,将 su.net 值更改为高于 /64 [例如:/124 在 static 路由上使用]);
  • Set modem LAN address to::1;将调制解调器 LAN 地址设置为::1;
  • Set DHCPv6 stateful range between::2 and::ff;在::2 和::ff 之间设置 DHCPv6 状态范围;

Finished.完成的。

Example 2:示例 2:

  • If supported by 2nd router, enable a NATv6 and use as IPv4.如果第二个路由器支持,启用 NATv6 并用作 IPv4。

I hope helped you.我希望帮助你。 (Sorry by English) (对不起英语)

I think you need a bigger block or more than /64 for multiple routers.我认为对于多个路由器,您需要更大的块或超过 /64 的块。 You need to request /56 from your ISP and then you can have 256 Vlans.您需要向您的 ISP 请求 /56,然后您才能拥有 256 个 Vlan。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM