ipmcset -d vlan
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -d vlan
命令功能
设置带外 VLAN
命令格式
text
ipmcset -d vlan -v <off | id(1~4094)> [port type]参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
vlanid | ReqBody | - | 否 | - | - | - |
port_type | ReqBody | - | 否 | - | - | - |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
DedicatedVlanSupported | RspBody | - | 否 | - | - | - |
SetVlanParams | RspBody | - | 否 | - | - | - |
Result | RspBody | - | 否 | - | - | - |
MinVLANId | RspBody | - | 否 | - | - | - |
MaxVLANId | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Property | /bmc/kepler/Managers/1/EthernetInterfaces | bmc.kepler.Managers.MgmtPortCapability | - | - | {"DedicatedVlanSupported": "DedicatedVlanSupported"} |
| 2 | Method | /bmc/kepler/Managers/1/EthernetInterfaces | bmc.kepler.Managers.EthernetInterfaces | SetVLANConfig | - | {"Result": "Result"} |
| 3 | Property | /bmc/kepler/Managers/1/EthernetInterfaces | bmc.kepler.Managers.EthernetInterfaces | - | - | {"MinVLANId": "MinVLANId", "MaxVLANId": "MaxVLANId"} |
使用示例
text
ipmcset -d vlan -v <off | id(1~4094)> [port type]输出样例
| Scenario | Output | Source |
|---|---|---|
| 成功 | Set NCSI Port vlan successfully. | interface_config/cli/echoes/ipmcset/_vlan |
| 成功 | Set Dedicated Port vlan successfully. | interface_config/cli/echoes/ipmcset/_vlan |
| 失败 | Set NCSI Port vlan failed. | interface_config/cli/echoes/ipmcset/_vlan |
| 失败 | Set Dedicated Port vlan failed. | interface_config/cli/echoes/ipmcset/_vlan |
| 其他 | Usage: ipmcset -d vlan -v <off | id(<value>~<value>)> [port type] | interface_config/cli/echoes/ipmcset/_vlan |
| 其他 | Port types are: | interface_config/cli/echoes/ipmcset/_vlan |
| 其他 | 0 : NCSI shared port | interface_config/cli/echoes/ipmcset/_vlan |
| 其他 | 1 : Dedicated port | interface_config/cli/echoes/ipmcset/_vlan |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | _ |
| dataitem | vlan |
| URI | /cli/v1/_/vlan |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/network.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |