是否有用于 IPv6 的 arduino 以太网屏蔽或库?
Are there any arduino ethernet shield or libraries for IPv6?
我是 arduino 的新手,我正在尝试将 IPv6 与 arduino UNO 和以太网屏蔽 (W5100) 一起使用。
我找到了 EtherSia IPv6 (https://github.com/njh/EtherSia) 库和 运行 MiniHTTPServer.ino 草图。
串口监视器总是打印link-本地地址。我找不到设置全局地址的方法。
[EtherSia MiniHTTPServer]
Failed to configure Ethernet
Our link-local address is: fe80:0000:0000:0000:9cb3:19ff:fec7:1b10
Our global address is: 0000:0000:0000:0000:0000:0000:0000:0000
Ready.
对 Arduino 的 IPv6 以太网屏蔽或 IPv6 库有什么建议吗?
EtherSia 库表示它 不 支持 DHCPv6。
您可能需要检查您的本地网络环境是否配置了 DHCPv6。
"Arduino 的 PHPoC 扩展板" 可能就是您要找的。当然,它支持IPv6,包括DHCPv6.You可以从下面获得关于这个库的详细信息。
- 下载https://github.com/phpoc/arduino
- 手动http://www.phpoc.com/support/manual/phpoc_shield_for_arduino_library_reference/
只需检查用于测试 IPv6 的“ChatServerIPv6”草图。
EtherSia 确实不支持 DHCPv6,但它支持 SLAAC - Stateless Auto-configuration,它被路由器广泛支持和启用。
你有什么类型的路由器?
另一种方法是静态配置地址和路由器:
// Configure a static global address and router addresses
ether.setGlobalAddress("2001:1234::5000");
if (ether.setRouter("fe80::f4c0:4ff:fefb:4186") == false) {
Serial.println("Failed to configure router address");
}
这是来自此处的示例:
https://github.com/njh/EtherSia/blob/master/examples/MinimalStatic/MinimalStatic.ino
我是 arduino 的新手,我正在尝试将 IPv6 与 arduino UNO 和以太网屏蔽 (W5100) 一起使用。
我找到了 EtherSia IPv6 (https://github.com/njh/EtherSia) 库和 运行 MiniHTTPServer.ino 草图。
串口监视器总是打印link-本地地址。我找不到设置全局地址的方法。
[EtherSia MiniHTTPServer]
Failed to configure Ethernet
Our link-local address is: fe80:0000:0000:0000:9cb3:19ff:fec7:1b10
Our global address is: 0000:0000:0000:0000:0000:0000:0000:0000
Ready.
对 Arduino 的 IPv6 以太网屏蔽或 IPv6 库有什么建议吗?
EtherSia 库表示它 不 支持 DHCPv6。
您可能需要检查您的本地网络环境是否配置了 DHCPv6。
"Arduino 的 PHPoC 扩展板" 可能就是您要找的。当然,它支持IPv6,包括DHCPv6.You可以从下面获得关于这个库的详细信息。
- 下载https://github.com/phpoc/arduino
- 手动http://www.phpoc.com/support/manual/phpoc_shield_for_arduino_library_reference/
只需检查用于测试 IPv6 的“ChatServerIPv6”草图。
EtherSia 确实不支持 DHCPv6,但它支持 SLAAC - Stateless Auto-configuration,它被路由器广泛支持和启用。
你有什么类型的路由器?
另一种方法是静态配置地址和路由器:
// Configure a static global address and router addresses
ether.setGlobalAddress("2001:1234::5000");
if (ether.setRouter("fe80::f4c0:4ff:fefb:4186") == false) {
Serial.println("Failed to configure router address");
}
这是来自此处的示例:
https://github.com/njh/EtherSia/blob/master/examples/MinimalStatic/MinimalStatic.ino