Here is a quick guide shows how to setup FCoE on Linux.
Setting up and deploying a Fibre Channel over Ethernet (FCoE) interface requires two packages:
Once these packages are installed, perform the following procedure to enable FCoE over a virtual LAN (VLAN):
Configuring an Ethernet interface to use FCoE
1. Configure a new VLAN by copying an existing network script (e.g. /etc/fcoe/cfg-eth0 ) to the name of the Ethernet device that supports FCoE. This will provide you with a default file to configure. Given that the FCoE device is ethX, run:
# cp /etc/fcoe/cfg-eth0 /etc/fcoe/cfg-ethX
Modify the contents of cfg -ethX as necessary. Of note, DCB_REQUIRED should be set to no for networking interfaces that implement a hardware DCBX client.
2. If you want the device to automatically load during boot time,
set ONBOOT = yes in the corresponding /etc/sysconfig /network-scripts/ifcfg-ethX file.
For example, if the CoE device is eth2, then edit /etc/sysconfig/network-scripts/ifcfg-eth2 accordingly.
3. Start the data center bridging daemon (dcbd) using the following command:
# /etc/init.d/lldpad start
4. For networking interfaces that implement a hardware DCBX client, skip this step and move on to the next.
For interfaces that require a software D CBX client, enable data center bridging on the
Ethernet interface using the following commands:
# dcbtool sc ethX dcb on
Then, enable FCoE on the Ethernet interface by running:
# dcbtool sc ethX app:fcoe e:1
These commands will only work if the d cbd settings for the Ethernet interface were not changed.
5. Load the FCoE device now using:
# ifconfig ethX up
6. Start FCoE using:
# service fcoe start
The FCoE device should appear shortly, assuming all other settings on the fabric are correct.
To view configured FCoE devices, run:
# fcoeadm -i
After correctly configuring the Ethernet interface to use FCoE, Red Hat recommends that you set FCoE and lldpad to run at startup. To do so, use chkconfig , as in:
# chkconfig lldpad on
# chkconfig fcoe on