运行 routeros 7.14.3 ( X86 )的一台工控机上安装了电信手机卡和华为 me909s-821 模块,开机后 LTE 接口自动识别并获取到了 IPv4 地址,但是尝试通过 DHCPv6 Client 获取 IPv6 地址没有成功。执行 AT 命令进行查询:
[admin@MikroTik] /interface/lte> at-chat lte1 input="AT^NDISSTATQRY?"
output: ^NDISSTATQRY: 1,,,"IPV4",1,,,"IPV6"
OK
[admin@MikroTik] /interface/lte> at-chat lte1 input="AT^DHCPV6?"
output: ^DHCPV6: 240e:40c:8500:65cb:5a2c:80ff:1234:5678,::,::,::,240e:41:c000:ffff::,240e:41:c900:ffff::,150000000,150000000
OK
看起来模块已经正确获取到了 IPv6 地址(后 8 位已编辑)和 DNS 。通过 routeros 日志抓取的部分信息如下:
983 2024-05-30 17:54:07 memory lte, async, raw lte1: rcvd +COPS: 0,0,"CHN-CT",7
984 2024-05-30 17:54:10 memory lte, async lte1: sent AT^NDISDUP=1,1,"ctlte"
985 2024-05-30 17:54:10 memory lte, async lte1: rcvd OK
986 2024-05-30 17:54:10 memory lte, async, event lte1: ^NDISSTAT: 1,,,"IPV4"
987 2024-05-30 17:54:10 memory lte, debug lte1: dhcp renew
988 2024-05-30 17:54:10 memory interface, info lte1 link up
989 2024-05-30 17:54:10 memory lte, async, event lte1: ^NDISSTAT: 1,,,"IPV6"
990 2024-05-30 17:54:10 memory interface, info lte1 detect UNKNOWN
991 2024-05-30 17:54:10 memory interface, info lte1 link down
992 2024-05-30 17:54:10 memory lte, async lte1: sent AT+CPMS?
993 2024-05-30 17:54:10 memory interface, info lte1 link up
994 2024-05-30 17:54:10 memory interface, info lte1 detect UNKNOWN
995 2024-05-30 17:54:10 memory lte, async lte1: rcvd +CPMS: "SM",0,40,"SM",0,40,"SM",0,40
996 2024-05-30 17:54:10 memory lte, async lte1: sent AT+CMGL=4
997 2024-05-30 17:54:10 memory lte, async lte1: rcvd
998 2024-05-30 17:54:12 memory dhcp, info dhcp-client on lte1 got IP address 100.94.180.235
999 2024-05-30 17:54:16 memory interface, info lte1 detect INTERNET
routeros dhcp6-client 配置:
[admin@MikroTik] /interface/lte> /ipv6/dhcp-client/print detail
1 interface=lte1 status=searching... duid="0x00030001021e101f0000" dhcp-server-v6=:: request=address add-default-route=yes default-route-distance=2 use-peer-dns=no use-interface-duid=yes dhcp-options="" pool-name="test" pool-prefix-length=64 prefix-hint=::/0 dhcp-options=""
恳请大佬指点~
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.