链路聚合配置

一、配置基本模式的链路聚合示例

     

操作步骤:
在SwitchA创建Eth-Trunk接口并加入成员接口。SwitchB配置与SwitchA类似,不再赘述。

  1.  
    <HUAWEI> system-view
  2.  
    [HUAWEI] sysname SwitchA
  3.  
    [SwitchA] interface eth-trunk 1
  4.  
    [SwitchA-Eth-Trunk1] trunkport gigabitethernet 0/0/1 to 0/0/3
  5.  
    [SwitchA-Eth-Trunk1] quit

创建VLAN并将接口加入VLAN。SwitchB配置与SwitchA类似,不再赘述。

  1.  
    <HUAWEI> system-view
  2.  
    [HUAWEI] sysname SwitchB
  3.  
    [SwitchB] interface eth-trunk 1
  4.  
    [SwitchB-Eth-Trunk1] trunkport gigabitethernet 0/0/1 to 0/0/3
  5.  
    [SwitchB-Eth-Trunk1] quit

# 创建VLAN10和VLAN20并分别加入接口。

  1.  
    [SwitchA] vlan batch 10 20
  2.  
    [SwitchA] interface gigabitethernet 0/0/4
  3.  
    [SwitchA-GigabitEthernet0/0/4] port link-type trunk
  4.  
    [SwitchA-GigabitEthernet0/0/4] port trunk allow-pass vlan 10
  5.  
    [SwitchA-GigabitEthernet0/0/4] quit
  6.  
    [SwitchA] interface gigabitethernet 0/0/5
  7.  
    [SwitchA-GigabitEthernet0/0/5] port link-type trunk
  8.  
    [SwitchA-GigabitEthernet0/0/5] port trunk allow-pass vlan 20
  9.  
    [SwitchA-GigabitEthernet0/0/5] quit

# 配置Eth-Trunk1接口允许VLAN10和VLAN20通过。

  1.  
    [SwitchA] interface eth-trunk 1
  2.  
    [SwitchA-Eth-Trunk1] port link-type trunk
  3.  
    [SwitchA-Eth-Trunk1] port trunk allow-pass vlan 10 20

配置Eth-Trunk1的负载均衡分担方式。SwitchB配置与SwitchA类似,不再赘述。

    1.  
      [SwitchA-Eth-Trunk1] load-balance src-dst-mac
    2.  [SwitchA-Eth-Trunk1] quit

仅供参考

posted @ 2019-11-28 13:36  通信IPP  阅读(1083)  评论(0编辑  收藏  举报