CloudEngine 16800, 12800, 9800, 8800, 7800, 6800, and 5800 Series Switches Interoperation Configuration Guide (V100 and V200)
Example for Configuring Interoperation Between CE Series Switches and a Server Using Broadcom Network Adapters (IEEE 802.3ad Mode)
Applicable Products and Versions
This example applies to CE series switches running V200R005C10 or later versions.
Networking Requirements
In Figure 2-8, a server uses Broadcom network adapters and needs to connect to CE series switches in link aggregation mode to implement load balancing.
Configuration Roadmap
- Configure the two CE series switches to establish an M-LAG, create Eth-Trunk interfaces, and configure the Eth-Trunk interfaces to work in static LACP mode.
- Set the network adapter group type to dynamic link aggregation (IEEE 802.3ad) to improve link reliability, increase the interface bandwidth, and implement link load balancing.
Procedure
- Configure CE series switches to establish an M-LAG and create Eth-Trunk interfaces for connecting to the server.
<HUAWEI> system-view [~HUAWEI] sysname SwitchA [*HUAWEI] commit [~SwitchA] ip vpn-instance DAD [*SwitchA-vpn-instance-DAD] ipv4-family [*SwitchA-vpn-instance-DAD-af-ipv4] route-distinguisher 1:1 [*SwitchA-vpn-instance-DAD-af-ipv4] quit [*SwitchA-vpn-instance-DAD] quit [*SwitchA] interface eth-trunk 10 //Deploy an independent Layer 3 interconnection link as the M-LAG heartbeat link. [*SwitchA-Eth-Trunk10] trunkport 10ge 1/0/10 [*SwitchA-Eth-Trunk10] trunkport 10ge 1/0/11 [*SwitchA-Eth-Trunk10] mode lacp-static [*SwitchA-Eth-Trunk10] undo portswitch [*SwitchA-Eth-Trunk10] ip binding vpn-instance DAD [*SwitchA-Eth-Trunk10] ip address 10.10.10.1 255.255.255.0 [*SwitchA-Eth-Trunk10] quit [*SwitchA] stp tc-protection [*SwitchA] stp bpdu-protection [*SwitchA] stp mode rstp [*SwitchA] stp bridge-address 00e0-fc12-3411 //Select the system MAC address of one device as the bridge MAC address of the two devices. [*SwitchA] stp v-stp enable [*SwitchA] dfs-group 1 //Configure DFS. [*SwitchA-dfs-group-1] priority 150 [*SwitchA-dfs-group-1] source ip 10.10.10.1 vpn-instance DAD peer 10.10.10.2 [*SwitchA-dfs-group-1] dual-active detection enhanced enable [*SwitchA-dfs-group-1] quit [*SwitchA] interface eth-trunk 10 [*SwitchA-Eth-Trunk10] m-lag unpaired-port reserved //Configure the DAD interface not to enter the Error-Down state if the peer-link fails. [*SwitchA-Eth-Trunk10] quit [*SwitchA] interface eth-trunk 0 //Configure the peer-link. [*SwitchA-Eth-Trunk0] trunkport 40ge 1/0/1 [*SwitchA-Eth-Trunk0] trunkport 40ge 1/0/2 [*SwitchA-Eth-Trunk0] mode lacp-static [*SwitchA-Eth-Trunk0] peer-link 1 [*SwitchA-Eth-Trunk0] port vlan exclude 1 [*SwitchA-Eth-Trunk0] quit [*SwitchA] vlan batch 10 [*SwitchA] interface eth-trunk 1 //Configure an Eth-Trunk interface connecting the switch to the server. [*SwitchA-Eth-Trunk1] trunkport 10ge 1/0/1 [*SwitchA-Eth-Trunk1] port default vlan 10 [*SwitchA-Eth-Trunk1] mode lacp-static [*SwitchA-Eth-Trunk1] stp edged-port enable [*SwitchA-Eth-Trunk1] dfs-group 1 m-lag 1 [*SwitchA-Eth-Trunk1] quit [*SwitchA] commit
<HUAWEI> system-view [~HUAWEI] sysname SwitchB [*HUAWEI] commit [~SwitchB] ip vpn-instance DAD [*SwitchB-vpn-instance-DAD] ipv4-family [*SwitchB-vpn-instance-DAD-af-ipv4] route-distinguisher 2:2 [*SwitchB-vpn-instance-DAD-af-ipv4] quit [*SwitchB-vpn-instance-DAD] quit [*SwitchB] interface eth-trunk 10 [*SwitchB-Eth-Trunk10] trunkport 10ge 1/0/10 [*SwitchB-Eth-Trunk10] trunkport 10ge 1/0/11 [*SwitchB-Eth-Trunk10] mode lacp-static [*SwitchB-Eth-Trunk10] undo portswitch [*SwitchB-Eth-Trunk10] ip binding vpn-instance DAD [*SwitchB-Eth-Trunk10] ip address 10.10.10.2 255.255.255.0 [*SwitchB-Eth-Trunk10] quit [*SwitchB] stp tc-protection [*SwitchB] stp bpdu-protection [*SwitchB] stp mode rstp [*SwitchB] stp bridge-address 00e0-fc12-3411 [*SwitchB] stp v-stp enable [*SwitchB] dfs-group 1 [*SwitchB-dfs-group-1] priority 100 [*SwitchB-dfs-group-1] source ip 10.10.10.2 vpn-instance DAD peer 10.10.10.1 [*SwitchB-dfs-group-1] dual-active detection enhanced enable [*SwitchB-dfs-group-1] quit [*SwitchB] interface eth-trunk 10 [*SwitchB-Eth-Trunk10] m-lag unpaired-port reserved [*SwitchB-Eth-Trunk10] quit [*SwitchB] interface eth-trunk 0 [*SwitchB-Eth-Trunk0] trunkport 40ge 1/0/1 [*SwitchB-Eth-Trunk0] trunkport 40ge 1/0/2 [*SwitchB-Eth-Trunk0] mode lacp-static [*SwitchB-Eth-Trunk0] peer-link 1 [*SwitchB-Eth-Trunk0] port vlan exclude 1 [*SwitchB-Eth-Trunk0] quit [*SwitchB] vlan batch 10 [*SwitchB] interface eth-trunk 1 [*SwitchB-Eth-Trunk1] trunkport 10ge 1/0/1 [*SwitchB-Eth-Trunk1] port default vlan 10 [*SwitchB-Eth-Trunk1] mode lacp-static [*SwitchB-Eth-Trunk1] stp edged-port enable [*SwitchB-Eth-Trunk1] dfs-group 1 m-lag 1 [*SwitchB-Eth-Trunk1] quit [*SwitchB] commit
- Configure a network adapter group on the server.
Verifying the Configuration
- Run the display eth-trunk [ trunk-id ] command in any view to check the Eth-Trunk status. Check whether the Eth-Trunk status is normal based on key information in Table 2-15.
<SwitchA> display eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1 Working Mode: Static Preempt Delay: Disabled Hash Arithmetic: profile default System Priority: 32768 System ID: 00e0-fc12-3411 Least Active-linknumber: 1 Max Active-linknumber: 8 Operating Status: up Number Of Up Ports In Trunk: 1 Timeout Period: Slow -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight 10GE1/0/1 Selected 10GE 32768 1 321 10100010 1
Table 2-15 Eth-Trunk statusCheck Item
Normal State
Working Mode
Static.
Operating Status
up: The Eth-Trunk is Up.
Number Of Up Ports In Trunk
Number of Up member interfaces in the Eth-Trunk. If the value is the same as the number of member interfaces, the Eth-Trunk is normal.
Status
Selected: The member interface is selected as an active interface.
Weight
Weight of a member interface. If all member interfaces have the same weight, the Eth-Trunk is normal.
Ping the gateway address on the server. The ping is successful.
Check properties of the created network adapter group Team 1. On the Network Connections page, right-click the created network adapter group Team 1 and choose Properties. In the displayed window, click Config and select the Settings tab page. Check the network adapter group status based on the information in Table 2-16.
Configuration Files
- SwitchA configuration file
# sysname SwitchA # dfs-group 1 priority 150 source ip 10.10.10.1 vpn-instance DAD peer 10.10.10.2 dual-active detection enhanced enable # vlan batch 10 # stp bridge-address 00e0-fc12-3411 stp mode rstp stp v-stp enable stp bpdu-protection stp tc-protection # ip vpn-instance DAD ipv4-family route-distinguisher 1:1 # interface Eth-Trunk0 mode lacp-static peer-link 1 port vlan exclude 1 # interface Eth-Trunk1 port default vlan 10 mode lacp-static stp edged-port enable dfs-group 1 m-lag 1 # interface Eth-Trunk10 undo portswitch ip binding vpn-instance DAD ip address 10.10.10.1 255.255.255.0 mode lacp-static m-lag unpaired-port reserved # interface Eth-Trunk1 port default vlan 2 mode lacp-static # interface 10GE1/0/1 eth-trunk 1 # interface 10GE1/0/210 eth-trunk 10 # interface 10GE1/0/11 eth-trunk 10 # interface 40GE1/0/1 eth-trunk 0 # interface 40GE1/0/2 eth-trunk 0 # return
- SwitchB configuration file
# sysname SwitchB # dfs-group 1 source ip 10.10.10.2 vpn-instance DAD peer 10.10.10.1 dual-active detection enhanced enable # vlan batch 10 # stp bridge-address 00e0-fc12-3411 stp mode rstp stp v-stp enable stp bpdu-protection stp tc-protection # ip vpn-instance DAD ipv4-family route-distinguisher 2:2 # interface Eth-Trunk0 mode lacp-static peer-link 1 port vlan exclude 1 # interface Eth-Trunk1 port default vlan 10 mode lacp-static stp edged-port enable dfs-group 1 m-lag 1 # interface Eth-Trunk10 undo portswitch ip binding vpn-instance DAD ip address 10.10.10.2 255.255.255.0 mode lacp-static m-lag unpaired-port reserved # interface 10GE1/0/1 eth-trunk 1 # interface 10GE1/0/10 eth-trunk 10 # interface 10GE1/0/11 eth-trunk 10 # interface 40GE1/0/1 eth-trunk 0 # interface 40GE1/0/2 eth-trunk 0 # return