Dear IPMI Experts,

Need your help in understanding what should be value of VLAN ID value during 
VLAN disable.

The spec doesn't clearly call out what should be value of VLAN ID when VLAN ID 
enable bit is zero.

As per spec...
data 1
[7:0] - Least significant 8-bits of the VLAN ID. 00h if VLAN ID not used.
data 2
[7] - VLAN ID enable.
0b = disabled, 1b = enabled. If enabled, the BMC will only accept packets for 
this
channel if they have 802.1q fields and their VLAN ID matches the VLAN ID value
given in this parameter.
[6:4] - reserved
[3:0] - most significant four bits of the VLAN ID


I'm trying to disable the vlan id using the command "ipmitool lan set 1 vlan id 
off"
I get the below error.
LAN Parameter Data does not match!  Write may have failed.

When I checked in code ipmi_lanp.c the ipmitool is sending the vlan id as "0 0" 
which is NOT accepted by the BMC.

ipmi_lan_set_vlan_id(struct ipmi_intf *intf, uint8_t chan, char *string)
{
uint8_t data[2];
int rc;
if (string == NULL)
{ data[0] = 0; data[1] = 0; }

But when I replace the VLAN ID  value with 1-4094 along with VLAN ID enable bit 
= 0. I.e,

Data[0] = xxxx xxxx
Data[1] = 0xxx xxxx

Then VLAN ID got disable successfully.

So, my query is what is the expected value of the VLAN ID when VLAN ID enable 
bit is zero as per the spec? should be zero or 1 to 4094 range?

Regards
Balaji Singh

------------------------------------------------------------------------------
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to