"Configuration options have been added to support IEEE 802.1q VLAN (virtual LAN) headers for IPMI over IP sessions on IEEE 802.3 Ethernet."
The below example is configuration on the Ubuntu OS.
Install VLAN on Ubuntu
$ sudo apt-get install vlan
Configure VLAN on Ubuntu, VLAN id 9 is used in this example
$ sudo modprobe 8021q
$ sudo vconfig add eth0 9
Added VLAN with VID == 9 to IF -:eth0:-
$ ifconfig eth0.9 192.168.1.4
$ ifconfig eth0.9 up
$ ifconfig
eth0 Link encap:Ethernet HWaddr 40:61:86:00:bd:55
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::4261:86ff:fe00:bd55/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:397 errors:0 dropped:0 overruns:0 frame:0
TX packets:437 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:115542 (115.5 KB) TX bytes:40398 (40.3 KB)
Interrupt:41 Base address:0x6000
eth0.9 Link encap:Ethernet HWaddr 40:61:86:00:bd:55
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::4261:86ff:fe00:bd55/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:2804 (2.8 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:706 errors:0 dropped:0 overruns:0 frame:0
TX packets:706 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:48892 (48.8 KB) TX bytes:48892 (48.8 KB)
IPMI commands for VLAN setup:
ipmitool -I lanplus -H <ip addr> -U <user> -P <PWD> lan set <channel> vlan id <id>
ipmitool -I lanplus -H <ip addr> -U <user> -P <PWD> lan set <channel> vlan id off
ipmitool -I lanplus -H <ip addr> -U <user> -P <PWD> lan set <channel> vlan priority <priority>
Use IPMI commans configure VLAN to BMC:
$ ipmitool -I lanplus -H 192.168.1.5 -U <user> -P <PWD> lan set 0x01 vlan id 9
$ ipmitool -I lanplus -H 192.168.1.5 -U <user> -P <PWD> lan print
Set in Progress : Set Complete
Auth Type Support : NONE MD2 MD5 PASSWORD OEM
Auth Type Enable : Callback : NONE MD2 MD5 PASSWORD OEM
: User : NONE MD2 MD5 PASSWORD OEM
: Operator : NONE MD2 MD5 PASSWORD OEM
: Admin : NONE MD2 MD5 PASSWORD OEM
: OEM :
IP Address Source : Static Address
IP Address : 192.168.1.5
Subnet Mask : 255.255.255.0
MAC Address : 8c:89:a5:15:ad:b8
SNMP Community String : AMI
IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl : 0.0 seconds
Default Gateway IP : 0.0.0.0
Default Gateway MAC : 00:00:00:00:00:00
Backup Gateway IP : 0.0.0.0
Backup Gateway MAC : 00:00:00:00:00:00
802.1q VLAN ID : 9
802.1q VLAN Priority : 0
RMCP+ Cipher Suites : 0,1,2,3,6,7,8,11,12
Cipher Suite Priv Max : caaaXXaaaXXaaXX
: X=Cipher Suite Unused
: c=CALLBACK
: u=USER
: o=OPERATOR
: a=ADMIN
: O=OEM
$ ipmitool -I lanplus -H 192.168.1.5 -U <user> -P <PWD> lan print
Set in Progress : Set Complete
Auth Type Support : NONE MD2 MD5 PASSWORD OEM
Auth Type Enable : Callback : NONE MD2 MD5 PASSWORD OEM
: User : NONE MD2 MD5 PASSWORD OEM
: Operator : NONE MD2 MD5 PASSWORD OEM
: Admin : NONE MD2 MD5 PASSWORD OEM
: OEM :
IP Address Source : Static Address
IP Address : 192.168.1.5
Subnet Mask : 255.255.255.0
MAC Address : 8c:89:a5:15:ad:b8
SNMP Community String : AMI
IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl : 0.0 seconds
Default Gateway IP : 0.0.0.0
Default Gateway MAC : 00:00:00:00:00:00
Backup Gateway IP : 0.0.0.0
Backup Gateway MAC : 00:00:00:00:00:00
802.1q VLAN ID : 9
802.1q VLAN Priority : 0
RMCP+ Cipher Suites : 0,1,2,3,6,7,8,11,12
Cipher Suite Priv Max : caaaXXaaaXXaaXX
: X=Cipher Suite Unused
: c=CALLBACK
: u=USER
: o=OPERATOR
: a=ADMIN
: O=OEM
Notice the configuration steps:
1. Configure BMC VLAN
$ ipmitool -I lanplus -H 192.168.1.5 -U <user> -P <PWD> lan set 0x01 vlan id 9
2. Configure Ubuntu VLAN$ ifconfig eth0.9 up
3. Off BMC VLAN
$ ipmitool -I lanplus -H 192.168.1.5 -U <user> -P <PWD> lan set 0x01 vlan id off
4. Off Ubuntu VALN$ ifconfig eth0.9 down
Reference
[1] "Intelligent Platform Management Interface Specification Second Generation v2.0"
[2] "vlan" Ubuntu Wiki https://wiki.ubuntu.com/vlan
[3] "IPMItool" http://ipmitool.sourceforge.net/
[4] "IPMI Command Test Tool" http://www.intel.com/design/servers/ipmi/ipmi_tool.htm
[3] "IPMItool" http://ipmitool.sourceforge.net/
[4] "IPMI Command Test Tool" http://www.intel.com/design/servers/ipmi/ipmi_tool.htm
No comments:
Post a Comment