Identifying MZ912 Ports in the OS
- Identify the ports in the MZ912 Ethernet part in Linux.
- Run the lspci | grep eth command on the Linux CLI to view the PCIe functions of the MZ912 Ethernet part. See Figure 4-36.
- Run the ifconfig –a command to view the two NIC ports, which are displayed in the format of eth[num]. See eth14 and eth15 in Figure 4-37.
- Run the ethtool –i command to view the values of bus-info for the two NIC ports. See Figure 4-38.
eth14 maps to Port0, which is the first physical port of the NIC, and uses the MAC address 00:1E:00:00:00:04. eth15 maps to Port1, which is the other physical port of the NIC, and uses the MAC address 00:1E:00:00:00:05. The MZ912 Ethernet part uses two MAC addresses. Table 4-2 shows the MAC address assignment.
- Identify the ports in the MZ912 storage part in Linux.
- Run the lspci | grep emulex command on the Linux CLI to view the PCIe functions of the MZ912 Ethernet and storage parts. Figure 4-39 shows the PCI devices in FCoE mode. 05:00.0 and 05:00.2 are two logical ports of one physical FCoE port. 05:00.1 and 05:00.3 are two logical ports of the other physical FCoE port.
05:00.0 and 05:00.1 are the FCoE ports used for connecting to the storage network.
- The preceding information indicates that the MZ912 uses the Lancer chip.Figure 4-40 shows information about two ports when the MZ912 operates in NIC+FC mode. 05:00.0 and 05:00.1 are two physical FC ports.
- Run the ifconfig –a command. When the MZ912 operates in FCoE mode, the command output contains two NIC ports. The two ports are FCoE logical NIC ports and cannot be used as Ethernet ports.
As shown in Figure 4-41, eth16 and eth17 are the NIC logical channels of two FCoE ports.
The ifconfig command displays only NIC ports (or NIC logical channels), but does not display FC or FCoE logical channels because they are for storage.
When NICs are replaced or added, the port numbers eth[num] displayed in the OS are changed accordingly. This is because the OS still saves the original port numbers.
In Figure 4-41, eth17 corresponds to port 0, which is the NIC channel of one physical FCoE port, and uses the MAC address 14:12:29:15:47:30; eth16 corresponds to port 1, which is the NIC channel of the other physical FCoE port and uses the MAC address 14:12:29:15:47:31. The FCoE logical channels require MAC addresses for generating World Wide Port Names (WWPNs). The MZ912 requires four MAC addresses in total. Table 4-3 shows the assignment of its MAC addresses.The ifconfig command does not display NIC ports when the MZ912 operates in FC mode.
Table 4-4 MZ912 MAC address assignment (FC mode)Port
Attribute
Mode
MAC Address
Port0
Physical port
FC
14:12:29:15:47:30
Port1
Physical port
FC
14:12:29:15:47:31
- Run the lspci | grep emulex command on the Linux CLI to view the PCIe functions of the MZ912 Ethernet and storage parts. Figure 4-39 shows the PCI devices in FCoE mode. 05:00.0 and 05:00.2 are two logical ports of one physical FCoE port. 05:00.1 and 05:00.3 are two logical ports of the other physical FCoE port.