H3C switch link aggregation configuration

Introduction

Switches SW1 and SW2 are connected to each other through G1/0/1~G1/0/3, creating VLAN10 and VLAN20, dividing the interface GE1/0/4 connecting host PC_3 and PC_5 to VLAN10, connecting host PC_4 and host PC_5 The interface is divided into VLAN20, the gateway is respectively set to 1.1.1.254, 2.2.2.254, the mask is 24 bits (255.255.255.0), and SW1 is used as a DHCP server (used as a global DHCP server).

Networking requirements

  1. Use static LACP link aggregation to improve link bandwidth and reliability
  2. Realize the entire network interoperability, PC_3 and PC_5 of the same VLAN can communicate, and PC_3 and PC_6 of different VLANs must also communicate
  3. Use DHCP server to assign IP address to virtual host

Network topology diagram

Insert picture description here
How to configure each host, take PC_4 as an example, as shown in the following figure; Takeover management: enable, IPv4 configuration is: DHCP mode (the interface-status-IP address at the top of the figure has already displayed IP, indicating that the DHCP server configuration is successful)
Insert picture description here

Static aggregation and dynamic aggregation configuration

Switch SW1 configuration

system-view
sysname SW1
vlan 10
port gigabitethernet 1/0/4
quit
vlan 20
port gigabitethernet 1/0/5
quit
interface bridge-aggregation 1 # Create Layer 2 static aggregation interface 1
(inter bridge aggregation mode dynamic) #Configure dynamic aggregation mode If you create a static state, ignore this sentence
quit
interface range g1/0/1 to g1/0/3 # Add ports GigabitEthernet1/0/1~GigabitEthernet1/0/3 to aggregation group 1
port link-aggregation group 1
quit
interface bridge-aggregation 1
port link-type trunk # Configure the Layer 2 aggregation interface 1 as a trunk port,
port trunk permit vlan 10 20 # and allow the packets of VLAN 10 and VLAN 20 to pass.
quit
dhcp enable #Enable DHCP service
inter vlan-interface 10
ip add 1.1.1.254 24
quit
inter vlan-inter 20
ip add 2.2.2.254 24
quit
dhcp server ip-pool 10
gateway-list 1.1.1.254
network 1.1.1.0 24
quit
dhcp server ip-pool 20
gatework 2.2.2.254
network 2.2.2.0 24
quit

SW2 configuration

system-view
sysname SW2
vlan 10
port g1/0/4
vlan 20
port g1/0/5
interface bridge-aggregation 1
interface range g1/0/1 to g1/0/3
port link-aggregation group 1
quit
interface bridge-aggregation 1
(inter bridge aggregation mode dynamic) #Configure dynamic aggregation mode "If static aggregation is created, ignore this sentence configuration".
quit
interface bridge-aggregation 1
port link-type trunk
port trunk permit vlan 10 20

Verify static link aggregation

The display link-aggregation verbose
Insert picture description here
result shows: The member ports added to the static aggregation group at the local end are all in the Selected state, regardless of whether the corresponding port on the opposite end is in the Selected state.

Dynamic link aggregation verification

display link-aggregation verbose
adopts dynamic aggregation mode link aggregation configuration information
Insert picture description here

The member ports in the aggregation group on the local and peer devices are in the Selected state. The reason is that in dynamic link aggregation through LACP protocol message interaction, the selected state of the member ports in the aggregation group at both ends can be agreed, and the user data can be forwarded smoothly.

View the DHCP server arp cache table

display arp (4 devices have obtained IP), you can test whether PC_4ping 1.1.1.1, 2.2.2.2, 1.1.1.2 can communicate with the gateway normally
Insert picture description here

Test the interoperability of the entire network

The IP obtained by PC_4 is 2.2.2.1, ping 1.1.1.2 is normal, and so on, ping every host except this machine
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_39689711/article/details/106708557