- Create a dedicated iSCSI VLAN and add appropriate ports to the VLAN.
- Turn on the iSCSI Auto-Configuration feature this will enable Jumbo Frames, set the Spanning-Tree Port-Fast feature, disable the Unicast Storm Control and enable Flow Control.
- Set the Speed of the ports in the iSCSI VLAN to gigabit connection.
Here is a quick how-to of the configuration.
Create a dedicated VLAN for iSCSI traffic
- Login to the switch en go to the configuration mode.
- Enter VLAN database: Switch(config)# vlan database
- Create VLAN: Switch(config-vlan)# vlan 2
- Back to config mode: Switch(config-vlan)# exit
- Enter VLAN 2 interface config: Switch(config)# interface vlan 2
- Name the VLAN: Switch(config-if)# name iSCSI
- Back to enable mode: Switch(config-if)# end
- Verify: Switch# show vlan
Enable iSCSI Auto-Configuration
- Enter the configuration mode and type: Switch(config): iscsi enable
- You will be asked if you want to continue and the Flow Control will be enabled on all interfaces. Answer with Yes.
- Now you need save your settings and reload the switch: Switch# write memory
- Reload the switch: Switch# reload
- After the reload, verify iSCSI settings with Switch# show iscsi
Assign the interfaces to the iSCSI VLAN
In this case port 1 to 10 on switch 1.
- Select multiple interfaces: Switch(config)# interface range gigabitethernet 1/0/1-10
- Add interfaces to VLAN 2: Switch(config-if-range)# switchport access vlan 2
- Force gigabit connection for all iSCSI ports:
- Switch(config-if-range)# no negotiation
- Switch(config-if-range)# speed 1000
- Save your settings: Switch# write memory
- You view the configuration with: Switch# show run
Repeat the steps above for the interfaces on switch 2, use interface range gigabitethernet 2/0/1-10 command to select port 1 to 10 on switch 2. It’s also a good idea to shutdown the unused ports on the switches for security reasons.
That’s it, you’re done! 🙂
All you have to do now is connect the cables to the switch, storage array and servers and you’re good to go.
Cheers!
– Marek.Z