25.5. Configuring a Fibre Channel over Ethernet Interface
Setting up and deploying a Fibre Channel over Ethernet (FCoE) interface requires two packages:
fcoe-utils
lldpad
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:Copy to Clipboard Copied! Toggle word wrap Toggle overflow cp /etc/fcoe/cfg-ethx /etc/fcoe/cfg-ethX
# cp /etc/fcoe/cfg-ethx /etc/fcoe/cfg-ethX
Modify the contents ofcfg-ethX
as needed. Notably, setDCB_REQUIRED
tono
for 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=yes
in the corresponding/etc/sysconfig/network-scripts/ifcfg-ethX
file. For example, if the FCoE device is eth2, edit/etc/sysconfig/network-scripts/ifcfg-eth2
accordingly. - Start the data center bridging daemon (
dcbd
) by running:Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl start lldpad
# 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:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow dcbtool sc ethX dcb on
# dcbtool sc ethX dcb on
Then, enable FCoE on the Ethernet interface by running:Copy to Clipboard Copied! Toggle word wrap Toggle overflow dcbtool sc ethX app:fcoe e:1
# dcbtool sc ethX app:fcoe e:1
Note that these commands only work if thedcbd
settings for the Ethernet interface were not changed. - Load the FCoE device now using:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow ip link set dev ethX up
# ip link set dev ethX up
- Start FCoE using:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl start fcoe
# systemctl start fcoe
The FCoE device appears soon if all other settings on the fabric are correct. To view configured FCoE devices, run:Copy to Clipboard Copied! Toggle word wrap Toggle overflow fcoeadm -i
# 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 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.