ipmcset -d ipaddr6
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -d ipaddr6
命令功能
设置 IPv6 地址
命令格式
text
ipmcset -d ipaddr6 -v <ipaddr6/prefixlen(0~128)> [gateway6] [groupid]参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
value1 | ReqBody | string | 是 | - | - | - |
value2 | ReqBody | string | 否 | - | - | - |
group_id | ReqBody | integer | 否 | - | - | - |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
value2 | RspBody | - | 否 | - | - | - |
Value1Valid | RspBody | - | 否 | - | - | - |
PrefixlenValid | RspBody | - | 否 | - | - | - |
IsGroupIdValid | RspBody | - | 否 | - | - | - |
ErrorMsg | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Property | ${Statements/PatchGroupID()/Ipv6/Path} | ${Statements/PatchGroupID()/Ipv6/Interface} | - | - | {"${Statements/PatchGroupID()/Ipv6/SetDefaultGateway}": "DefaultGateway"} |
使用示例
text
ipmcset -d ipaddr6 -v <ipaddr6/prefixlen(0~128)> [gateway6] [groupid]输出样例
| Scenario | Output | Source |
|---|---|---|
| 其他 | Usage: ipmcset -d ipaddr6 -v <ipaddr6/prefixlen(0~128)> [gateway6] [groupid] | interface_config/cli/echoes/ipmcset/_ipaddr6 |
| 失败 | Set failed, IPv6 address is duplicated. | interface_config/cli/echoes/ipmcset/_ipaddr6 |
| 成功 | Set IPV6 address successfully. | interface_config/cli/echoes/ipmcset/_ipaddr6 |
| 成功 | Set IPV6 prefix successfully. | interface_config/cli/echoes/ipmcset/_ipaddr6 |
| 成功 | Set GATEWAY6 successfully. | interface_config/cli/echoes/ipmcset/_ipaddr6 |
| 成功 | Set IPV6 address successfully. | interface_config/cli/echoes/ipmcset/_ipaddr6 |
| 成功 | Set IPV6 prefix successfully. | interface_config/cli/echoes/ipmcset/_ipaddr6 |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | _ |
| dataitem | ipaddr6 |
| URI | /cli/v1/_/ipaddr6 |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/network.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |