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

ipmcset -d ipversion

返回总览 | 返回命令索引

命令功能

设置 IP 协议版本

命令格式

text
ipmcset -d ipversion -v <ipversion> [groupid]

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
ipversionReqBodyinteger-[{"Type": "Enum", "Formula": [0, 1, 2]}]0 IPv4 1 IPv6 2 IPv4AndIPv6
group_idReqBodyinteger---

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
IpVersionRspBody----
IsGroupIdValidRspBody----

后端处理流

StepTypePath/URIInterfaceField/MethodSourceDestination
1Property${Statements/PatchGroupID()/EthernetInterfaces/Path}${Statements/PatchGroupID()/EthernetInterfaces/Interface}-{"IpVersion": "${Statements/IpVersion()}"}-

使用示例

text
ipmcset -d ipversion -v <ipversion> [groupid]

输出样例

输出样例来源: interface_config/cli/echoes/ipmcset/_ipversion, interface_config/cli/echoes/

来源信息

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