当前位置:网站首页>Link aggregation experiment

Link aggregation experiment

2020-12-08 13:23:15 osc_ j9bz63ep

Link aggregation experiment

 Link aggregation experiment

The topology
 Link aggregation experiment
chart 1-1

notes : If there is no special instruction , Description of the R1 or SW1 The number at the end of the device name in the corresponding topology is 1 The equipment , R2 or SW2 The number at the end of the device name in the corresponding topology is 2 The equipment , And so on

The experimental requirements

Configure... As shown PC3 and PC4 Of IP Address
stay SW1 and SW2 Two direct link aggregation , Achieve link redundancy , And can increase the transmission bandwidth
SW1 and SW2 The direct link between them should be configured as Trunk type , Allow all vlan adopt
interrupt SW1 and SW2 A direct link between , test PC3 and PC4 Whether you can still visit


Experimental solution

1 、PC To configure IP The address is omitted The address is omitted

2、 stay stay SW1 and and SW2 Link aggregation is configured on the direct link of

analysis :SW1 and SW2 Through between g1/0/1 and g1/0/2 Interface direct connection , You need to create... On both switches Aggregate interface , And put g1/0/1 and g1/0/2 Interface added to aggregate interface , Form link aggregation . Of the aggregated physical interface vlan The configuration and interface type should be consistent , So before configuring link aggregation , Do not do any other configuration for the physical port , Protect Hold the default state

step 1 : stay SW1 To create a Bridge-Aggregation 1 Aggregation interface No


[SW1]interface Bridge-Aggregation 1

step 2 : Get into g1/0/1 and g1/0/2 Interface view of the interface , Join two interfaces separately

[SW1]interface g1/0/1
[SW1-GigabitEthernet1/0/1]port link-aggregation group 1
[SW1]interface g1/0/2
[SW1-GigabitEthernet1/0/2]port link-aggregation group 1

step 3 : View link aggregation status , Discovery has run successfully

[SW1]display link-aggregation verbose
……
Port Status Priority Oper-Key
GE1/0/1 S 32768 1
GE1/0/2 S 32768 1

step 4 :SW2 Order and SW1 It's exactly the same , It is omitted here 3 、SW1 and and SW2 The direct link between them should be configured as Trunk type , Allow all vlan adopt

analysis : After the physical interface is added to the aggregate interface , Will automatically inherit the aggregate interface vlan Related configuration , So no need Configure the physical interface separately Trunk , You only need to configure it under the aggregation interface Trunk that will do

step 1 : stay SW1 Of Bridge-Aggregation 1 Interface in the interface view , Configure the aggregation interface as Trunk , and Allow all vlan adopt . After the command is executed , It will show that the configuration is already in g1/0/1 and g1/0/2 It's done automatically on the interface


[SW1]interface Bridge-Aggregation 1
[SW1-Bridge-Aggregation1]port link-type trunk
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[SW1-Bridge-Aggregation1]port trunk permit vlan all
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.

4、 SW2 Order and SW1 It's exactly the same , The interruption is omitted here SW1 and SW2 A direct link between , test PC3 and PC4 Whether you can still visit

analysis : Link aggregation will automatically put SW1 and SW2 Load balance between traffic , A link is disconnected after , There is still another link that can continue to communicate , therefore PC3 and PC4 You can continue to visit

step 1 : Get into SW1 Of g1/0/1 Interface view of the interface , Use shutdown Command to close the interface


[SW1]interface g1/0/1
[SW1-GigabitEthernet1/0/1]shutdown

step 2 : test result , PC3 Still can Ping through PC4

<H3C>ping 192.168.1.2
Ping 192.168.1.2 (192.168.1.2): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.2: icmp_seq=0 ttl=255 time=0.000 ms
56 bytes from 192.168.1.2: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.2: icmp_seq=2 ttl=255 time=0.000 ms
56 bytes from 192.168.1.2: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.2: icmp_seq=4 ttl=255 time=0.000 ms

版权声明
本文为[osc_ j9bz63ep]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/20201208132216371r.html