Identifying MZ520 Ports in Linux
This section uses RHEL 7.2 as an example. For details about the configuration on other OSs, see the OS documentation provided by the OS vendors.
To identify MZ520 ports in RHEL 7.2, perform the following steps:
Run the lspci | grep BCM57810 command on the Linux command line interface (CLI) to view MZ520 PCIe functions.
Figure 4-187 shows the MZ520 PCIe devices when NPAR is disabled.
The preceding information shows two MZ520 NIC devices.
Run the ifconfig -a command on the Linux CLI to view the four NIC ports. In RHEL 7.2, NIC ports are named in the format of enp[bus_num]s[dev_num]f[fun_num]. In the name, bus_num, dev_num, and fun_num indicate the PCIe bus number, device number, and function number respectively. See Figure 4-188.
In SLES and RHEL earlier than 7.0, eth[num] is used to name a network port by default and the value of num increases when NICs are replaced or the number of network ports increases.
The MZ520 allocates MAC addresses to physical ports. Table 4-4 lists the mapping between physical ports and MAC addresses.
Physical Port |
BDF |
MAC Address |
---|---|---|
Port 0 |
84.00.0 |
22:21:03:04:22:20 |
Port 1 |
84.00.1 |
22:21:03:04:22:22 |
After NPAR is enabled, each physical port supports four PFs. Figure 4-189 lists the PCIe devices and each PCIe device is a PF.
After NPAR is enabled, the FCoE/iSCSI functions of each physical port can be allocated to any PF. Table 4-5 lists the mapping between physical ports and MAC addresses.
Physical Port |
PF |
BDF |
MAC Address |
---|---|---|---|
Port 0 |
PF 0 |
84:00.0 |
22:21:03:04:22:20 |
PF 2 |
84:00.2 |
22:21:03:04:22:24 |
|
PF 4 |
84:00.4 |
22:21:03:04:22:28 |
|
PF 6 |
84:00.6 |
22:21:03:04:22:2c |
|
Port 1 |
PF 1 |
84:00.1 |
22:21:03:04:22:22 |
PF 3 |
84:00.3 |
22:21:03:04:22:26 |
|
PF 5 |
84:00.5 |
22:21:03:04:22:2a |
|
PF 7 |
84:00.7 |
22:21:03:04:22:2e |