25.5. Configuring a Fibre Channel over Ethernet Interface
Setting up and deploying a Fibre Channel over Ethernet (FCoE) interface requires two packages:
fcoe-utilslldpad
Once these packages are installed, perform the following procedure to enable FCoE over a virtual LAN (VLAN):
Procedure 25.10. Configuring an Ethernet Interface to Use FCoE
- To configure a new VLAN, make a copy of an existing network script, for example
/etc/fcoe/cfg-eth0, and change the name to the Ethernet device that supports FCoE. This provides you with a default file to configure. Given that the FCoE device isethX, run:cp /etc/fcoe/cfg-ethx /etc/fcoe/cfg-ethX
# cp /etc/fcoe/cfg-ethx /etc/fcoe/cfg-ethXCopy to Clipboard Copied! Toggle word wrap Toggle overflow Modify the contents ofcfg-ethXas needed. Notably, setDCB_REQUIREDtonofor networking interfaces that implement a hardware Data Center Bridging Exchange (DCBX) protocol client. - If you want the device to automatically load during boot time, set
ONBOOT=yesin the corresponding/etc/sysconfig/network-scripts/ifcfg-ethXfile. For example, if the FCoE device is eth2, edit/etc/sysconfig/network-scripts/ifcfg-eth2accordingly. - Start the data center bridging daemon (
dcbd) by running:systemctl start lldpad
# systemctl start lldpadCopy to Clipboard Copied! Toggle word wrap Toggle overflow - For networking interfaces that implement a hardware DCBX client, skip this step.For interfaces that require a software DCBX client, enable data center bridging on the Ethernet interface by running:
dcbtool sc ethX dcb on
# dcbtool sc ethX dcb onCopy to Clipboard Copied! Toggle word wrap Toggle overflow Then, enable FCoE on the Ethernet interface by running:dcbtool sc ethX app:fcoe e:1
# dcbtool sc ethX app:fcoe e:1Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note that these commands only work if thedcbdsettings for the Ethernet interface were not changed. - Load the FCoE device now using:
ip link set dev ethX up
# ip link set dev ethX upCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Start FCoE using:
systemctl start fcoe
# systemctl start fcoeCopy to Clipboard Copied! Toggle word wrap Toggle overflow The FCoE device appears soon if all other settings on the fabric are correct. To view configured FCoE devices, run:fcoeadm -i
# fcoeadm -iCopy to Clipboard Copied! Toggle word wrap Toggle overflow
After correctly configuring the Ethernet interface to use FCoE, Red Hat recommends that you set FCoE and the
lldpad service to run at startup. To do so, use the systemctl utility:
systemctl enable lldpad
# systemctl enable lldpad
systemctl enable fcoe
# systemctl enable fcoe
Note
Running the
# systemctl stop fcoe command stops the daemon, but does not reset the configuration of FCoE interfaces. To do so, run the # systemctl -s SIGHUP kill fcoe command.
As of Red Hat Enterprise Linux 7, Network Manager has the ability to query and set the DCB settings of a DCB capable Ethernet interface.