NPAR
Figure 5-1 shows the network topology in which MZ520s work with CX320s.
In Figure 5-1, CH121 V3 (1) is installed in slot Blade1 in the E9000 chassis, and CH121 V3 (2) is in slot Blade2. An MZ520 is installed in slot Mezz1 on each CH121 V3. The two physical ports on each MZ520 connect to two CX320 switch modules respectively. CX320 (1) is installed in slot 2X in the E9000 chassis, and CX320 (2) is in slot 3X.
After NPAR is enabled, each physical port supports four PFs. Each PF is configured with an IP address.
For details about how to configure NPAR, see Configuring NPAR. In Windows, open the network management window, and configure an IP address for the NIC. In Linux, find the eth[num] of each PF by referring to Identifying MZ520 Ports in the OS, and then run the following command to configure a temporary IP address (which is not saved in case of reset or power failures), or open the network management window to set an IP address (which is saved even if power failures occur).
#ifconfig eth[num] [IP address] netmask [Mask]
A PF can be configured with or without a VLAN. For details about how to configure a VLAN, see Configuring VLANs for the MZ520 in the OS. The following provide configuration examples.
The following lists VLAN and IP address configurations of each PF:
MZ520(1):
Port0: PF0: 192.168.10.10 (VLAN10) PF2: 192.168.20.10 (VLAN20) PF4: 192.168.30.10 (VLAN30) PF6: 192.168.40.10 (VLAN40) Port1: PF1: 192.168.11.10 (VLAN11) PF3: 192.168.21.10 (VLAN21) PF5: 192.168.31.10 (VLAN31) PF7: 192.168.41.10 (VLAN41)
MZ520(2):
Port0: PF0: 192.168.10.20 (VLAN10) PF2: 192.168.20.20 (VLAN20) PF4: 192.168.30.20 (VLAN30) PF6: 192.168.40.20 (VLAN40) Port1: PF1: 192.168.11.20 (VLAN11) PF3: 192.168.21.20 (VLAN21) PF5: 192.168.31.20 (VLAN31) PF7: 192.168.41.20 (VLAN41)
Configure the mode of the CX320 port connected to the MZ520 to hybrid or trunk (the following uses hybrid as an example), and add VLANs used by the MZ520 ports. The following list the specific configurations:
CX320(1):
[HUAWEI]vlan 10 [HUAWEI]vlan 20 [HUAWEI]vlan 30 [HUAWEI]vlan 40 [HUAWEI] interface 10GE2/1/1 [HUAWEI-10GE2/1/1] port link-type hybrid [HUAWEI-10GE2/1/1] port hybrid tagged vlan 10 [HUAWEI-10GE2/1/1] port hybrid tagged vlan 20 [HUAWEI-10GE2/1/1] port hybrid tagged vlan 30 [HUAWEI-10GE2/1/1] port hybrid tagged vlan 40 [HUAWEI] interface 10GE2/2/1 [HUAWEI-10GE2/2/1] port link-type hybrid [HUAWEI-10GE2/2/1] port hybrid tagged vlan 10 [HUAWEI-10GE2/2/1] port hybrid tagged vlan 20 [HUAWEI-10GE2/2/1] port hybrid tagged vlan 30 [HUAWEI-10GE2/2/1] port hybrid tagged vlan 40
CX320(2):
[HUAWEI]vlan 11 [HUAWEI]vlan 21 [HUAWEI]vlan 31 [HUAWEI]vlan 41 [HUAWEI] interface 10GE3/1/1 [HUAWEI-10GE3/1/1] port link-type hybrid [HUAWEI-10GE3/1/1] port hybrid tagged vlan 11 [HUAWEI-10GE3/1/1] port hybrid tagged vlan 21 [HUAWEI-10GE3/1/1] port hybrid tagged vlan 31 [HUAWEI-10GE3/1/1] port hybrid tagged vlan 41 [HUAWEI] interface 10GE3/2/1 [HUAWEI-10GE3/2/1] port link-type hybrid [HUAWEI-10GE3/2/1] port hybrid tagged vlan 11 [HUAWEI-10GE3/2/1] port hybrid tagged vlan 21 [HUAWEI-10GE3/2/1] port hybrid tagged vlan 31 [HUAWEI-10GE3/2/1] port hybrid tagged vlan 41
After the configuration, the same PFs on MZ520 (1) and MZ520 (2), such as PF 0 on Port 0 of MZ520 (1) and PF 0 on Port 0 of MZ520 (2), can communicate with each other because the PFs are on the network segment and VLAN. Different PFs on the two MZ520s, such as PF 0 on Port 0 of and PF 0 on Port 1, are isolated from each other based on VLANs. If the CX320 uplink ports are connected to an external network, the PFs on the MZ520s can communicate with the devices on the same network segment and the same VLAN on the external network.
The following lists the IP address configuration of each PF:
MZ520(1):
Port0: PF0: 192.168.10.10 PF2: 192.168.20.10 PF4: 192.168.30.10 PF6: 192.168.40.10 Port1: PF1: 192.168.11.10 PF3: 192.168.21.10 PF5: 192.168.31.10 PF7: 192.168.41.10
MZ520(2):
Port0: PF0: 192.168.10.20 PF2: 192.168.20.20 PF4: 192.168.30.20 PF6: 192.168.40.20 Port1: PF1: 192.168.11.20 PF3: 192.168.21.20 PF5: 192.168.31.20 PF7: 192.168.41.20
Configure the mode of the CX320 port connected to the MZ520 to access, trunk, or hybrid (the following uses access as an example). The following list the specific configurations:
CX320(1):
[HUAWEI] interface 10GE2/1/1 [HUAWEI-10GE2/1/1] port link-type access [HUAWEI] interface 10GE2/2/1 [HUAWEI-10GE2/2/1] port link-type access
CX320(2):
[HUAWEI] interface 10GE3/1/1 [HUAWEI-10GE3/1/1] port link-type access [HUAWEI] interface 10GE3/2/1 [HUAWEI-10GE3/2/1] port link-type access
After the configuration, the same PFs on MZ520 (1) and MZ520 (2), such as PF 0 on Port 0 of MZ520 (1) and PF 0 on Port 0 of MZ520 (2), can communicate with each other because the PFs are on the network segment. Because no VLAN is configured, the PFs are not isolated. If the CX320 uplink ports are connected to an external network, the PFs on the MZ520s can communicate with the devices on the same network segment on the external network.