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

ipmcset -d gateway

返回总览 | 返回命令索引

命令功能

设置网关

命令格式

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

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
gatewayReqBodystring---
group_idReqBodyinteger---

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
IsIpv4AddressRspBody----
IsGroupIdValidRspBody----

后端处理流

StepTypePath/URIInterfaceField/MethodSourceDestination
1Method${Statements/PatchGroupID()/Ipv4/Path}${Statements/PatchGroupID()/Ipv4/Interface}${Statements/PatchGroupID()/Ipv4/SetDefaultGateway}--

使用示例

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

输出样例

ScenarioOutputSource
失败Input parameter format error.interface_config/cli/echoes/ipmcset/_gateway
成功Set GATEWAY successfully.interface_config/cli/echoes/ipmcset/_gateway

来源信息

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