ipmcset -d ipaddr
更新时间: 2026/07/28
在Gitcode上查看源码Command Function
Set ip address
Command Format
ipmcset -d ipaddr -v <ipaddr> <mask> [gateway] [groupid]
Command type
ipmcset
Parameters
| Name | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|
ipaddr | string | Yes | - | Regex | - |
mask | string | Yes | - | Regex | - |
gateway | string | No | - | Regex | - |
group_id | integer | No | - | - | - |
Regex正则表达式
ipaddr
^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$mask
^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$gateway
^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$Output Examples
Set IP address successfully.
Set MASK address successfully.
Set GATEWAY successfully.