ipmcset -d ipaddr6
更新时间: 2026/07/16
在Gitcode上查看源码

ipmcset -d ipaddr6

返回总览 | 返回命令索引

命令功能

设置 IPv6 地址

命令格式

text
ipmcset -d ipaddr6 -v <ipaddr6/prefixlen(0~128)> [gateway6] [groupid]

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
value1ReqBodystring---
value2ReqBodystring---
group_idReqBodyinteger---

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
value2RspBody----
Value1ValidRspBody----
PrefixlenValidRspBody----
IsGroupIdValidRspBody----
ErrorMsgRspBody----

后端处理流

StepTypePath/URIInterfaceField/MethodSourceDestination
1Property${Statements/PatchGroupID()/Ipv6/Path}${Statements/PatchGroupID()/Ipv6/Interface}--{"${Statements/PatchGroupID()/Ipv6/SetDefaultGateway}": "DefaultGateway"}

使用示例

text
ipmcset -d ipaddr6 -v <ipaddr6/prefixlen(0~128)> [gateway6] [groupid]

输出样例

ScenarioOutputSource
其他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

来源信息

ItemValue
命令类型ipmcset
target_
dataitemipaddr6
URI/cli/v1/_/ipaddr6
Interface TypePatch
配置来源interface_config/cli/ipmcset/network.json
请求版本26.06_2026.06.30
源码提交5606349e
生成时间2026-07-16T01:48:37