Setting a VLAN ID for a Network Port (vlan)
Function
The vlan command is used to set a VLAN ID for a network controller sideband interface (NC-SI) port of the iBMC. NC-SI allows a network port to serve as an iBMC port.
Format
ipmcset -d vlan -v <off | id>
Parameters
Parameter |
Description |
Value |
---|---|---|
off |
Disables VLAN. |
- |
vlanid |
Identifies the VLAN to which the network port belongs. |
1 to 4094 |
Usage Guidelines
None
Example
#Set the VLAN ID of the iBMC management network port to 405.
iBMC:/->ipmcset -d vlan -v 405 Set vlan state successfully.
# Query VLAN information of the iBMC management network port.
iBMC:/->ipmcget -d ipinfo EthGroup ID : 1 Net Mode : Manual Net Type : Dedicated IPv4 Information : IP Mode : dhcp IP Address : 192.168.0.12 Subnet Mask : 255.255.0.0 Default Gateway : 192.168.0.25 Backup IP Address : 192.168.0.144 (Activated) Backup Subnet Mask : 255.255.255.0 (Activated) MAC Address : IPv6 Information : IPv6 Mode : static IPv6 Address : fc00::65 Default Gateway IPv6 : fc00::1 Link-Local Address : fe80::218:e1ff:fec5:d866/64 VLAN Information : VLAN State : enabled VLAN ID : 405