25.5. Configuring a Fibre Channel over Ethernet Interface
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):
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 is
# cp /etc/fcoe/cfg-ethx /etc/fcoe/cfg-ethXModify the contents of
cfg-ethXas needed. Notably, set
nofor 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
- Start the data center bridging daemon (
dcbd) by running:
# systemctl start lldpad
- 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 onThen, enable FCoE on the Ethernet interface by running:
# dcbtool sc ethX app:fcoe e:1Note that these commands only work if the
dcbdsettings for the Ethernet interface were not changed.
- Load the FCoE device now using:
# ip link set dev ethX up
- Start FCoE using:
# systemctl start fcoeThe FCoE device appears soon if 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 the
lldpad service to run at startup. To do so, use the systemctl utility:
systemctl enable lldpad
systemctl enable fcoe
# 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.