Configuring FCoE for the MZ522 in RHEL
To configure FCoE in RHEL 7.2, perform the following steps:
- If NPAR is enabled, set the working mode of the PFs that need to use the FCoE function to FCoE (NIC+FCoE). For details, see Configuring NPAR. After the configuration, check and record the NIC MAC address of the PF in NIC+FCoE mode.
If NPAR is disabled, skip this step.
- Install the Ethernet driver and the FCoE driver in RHEL 7.2. For details, see Installing and Uninstalling the MZ522 Drivers in Linux.
- Enable automatic start of lldpad and fcoe services upon server startup.
# chkconfig lldpad on # chkconfig fcoe on
- Upload FCoE drivers.
# modprobe bnx2x # modprobe cnic # modprobe bnx2fc
- Create the file /etc/fcoe /cfg-<nic_port_name> and write FCoE configurations into the file. nic_port_name in the file name indicates the name of the NIC port (or example, enp133s0f0) with FCoE enabled. If NPAR is enabled, nic_port_name is the name of the port for the PF in NIC+FCoE mode. You can identify the NIC port name from the NIC MAC address recorded in Step 1.
# echo FCOE_ENABLE=\"yes\" > /etc/fcoe/cfg-enp133s0f0 # echo DCB_REQUIRED=\"no\" >> /etc/fcoe/cfg-enp133s0f0 # echo AUTO_VLAN=\"yes\" >> /etc/fcoe/cfg-enp133s0f0 # echo MODE=\"fabric\" >> /etc/fcoe/cfg-enp133s0f0
- Enable the NIC port.
# ifconfig enp133s0f0 up
- Restart the lldpad and fcoe services.
# service lldpad restart # service fcoe restart
- Run the fcoeadm -i command to query FCoE port information in the current system.Figure 4-280 Querying FCoE port information
Before running the fcoeadm -i command, ensure that an FCoE connection has been established between the MZ522 and the switch module to which the MZ522 is connected.
- Run the ifconfig command to query information of the NIC port corresponding to the FCoE port and obtain the FCoE VLAN ID (1002) allocated by the FCF.Figure 4-281 Querying information of the NIC port corresponding to the FCoE port