博主头像
mxd's Blog

以技术为翼,以生活为魂

华为 AP 开启 IPv6

华为 AirEngine 系列 AP 默认情况下可能没有开启 STA IPv6 服务。如果无线终端需要正常使用 IPv6,可以通过 AP 的 SSH 命令行开启相关功能。

本文以 AirEngine 5762S 为例,记录通过 SSH 开启 IPv6 的配置方法。

通过 SSH 登录 AP

首先使用 SSH 工具连接到 Leader AP 的管理地址,例如使用 PuTTY 或其他 SSH 客户端。

首次登录时,如果设备提示选择或修改国家码,根据实际部署环境进行选择。例如在中国大陆部署时选择 CN

登录成功后进入用户视图:

<MainAP>

进入系统视图

输入 system-view

<MainAP>system-view
Enter system view, return user view with Ctrl+Z
[MainAP]

进入 WLAN 视图

在系统视图下进入 WLAN 配置:

[MainAP]wlan
[MainAP-wlan-view]

开启 STA IPv6 服务

在 WLAN 视图中执行:

[MainAP-wlan-view]sta-ipv6-service enable

执行后即可开启无线终端的 IPv6 服务。

保存配置

配置完成后退出 WLAN 视图:

[MainAP-wlan-view]quit
[MainAP]quit

回到用户视图后执行 save 保存配置:

<MainAP>save
The current configuration will be written to the next startup configuration. Continue? (y/n) [n]:y
It will take several minutes to save configuration file, please wait
Configuration file has been saved successfully
Note: The configuration file will take effect after being activated

输入 y 确认保存。

验证 IPv6

保存配置后,可以让无线终端重新连接 AP 或重新获取网络配置。

如果上游网络已经正确配置 IPv6,例如存在 IPv6 RA、DHCPv6 或相应的 IPv6 前缀,那么终端重新连接后即可获取 IPv6 地址。

可以在客户端检查 IPv6 地址。例如 Windows 下执行:

ipconfig

如果配置正常,可以看到无线网卡出现类似下面的 IPv6 地址:

IPv6 Address. . . . . . . . . . . : 240x:xxxx:xxxx:xxxx::xxxx
Temporary IPv6 Address. . . . . . : 240x:xxxx:xxxx:xxxx::xxxx
Link-local IPv6 Address . . . . . : fe80::xxxx

其中 fe80::/10 属于 IPv6 链路本地地址,而公网 IPv6 地址通常来自上游网络分配的 IPv6 前缀。

总结

华为 AirEngine AP 开启 STA IPv6 服务实际上只需要在 WLAN 视图下执行:

system-view
wlan
sta-ipv6-service enable

然后保存配置:

quit
quit
save

需要注意的是,开启 AP 的 IPv6 服务并不等于整个网络已经具备 IPv6 Internet 访问能力。AP 只是允许无线终端使用 IPv6,最终能否获得全球单播 IPv6 地址以及访问 IPv6 Internet,还取决于上游路由器、IPv6 前缀分配、RA/DHCPv6 等网络配置。

华为 AP 开启 IPv6
https://blog.mxdyeah.com/post/huawei-ap-enable-ipv6
本文作者 mxdyeah
发布时间 2026-08-21
许可协议 CC BY-NC-SA 4.0
发表新评论