运行 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=""
恳请大佬指点~
1
ppoozl 177 天前 1
数据卡的话不一定有 PD 地址池,普通地址应该是 SLAAC 的,你这 DHCPV6C 请求地址应该不行
|
2
yyzh 177 天前 via Android 1
要调成透传.流量都没开 pd 的.
|
3
xiaofami OP @ppoozl
@yyzh 我看到过这样一篇文章,作者说 NDIS 模式下无法获取 ipv6 地址,设法使用 mdim 模式后成功在 openwrt 中得到 ipv6 地址: https://www.52nantong.net/?id=407 华为这个模块在 routeros 中貌似也是 NDIS 模式,不知有无关系 |