链路聚合是指将多条物理链路合成为一条逻辑链路,以提高网络带宽和可靠性的技术。常用于服务器、交换机、路由器等设备的部署
在链路聚合中,有三种实现方式,包括静态 LAG(Link Aggregation Group)、LACP(Link Aggregation Control Protocol)和 PAGP(Port Aggregation Protocol)。静态 LAG 方式是根据管理员手动配置实现链路聚合的。LACP 和 PAGP 方式是通过协议实现动态链路聚合的。 静态 LAG 的配置比较简单,先创建聚合组,然后添加需要聚合的物理接口,最后进行各项参数的配置
配置如下:
#set protocols rstp bridge-priority 12288
#set protocol rstp interface all
#delete interfaces ge-0/0/46 unit 0 family ethernet-switching vlan members vlan46
#delete interfaces ge-0/0/46 unit 0 family ethernet-switching interface-mode trunk
#delete interfaces ge-0/0/46 unit 0
#delete protocols rstp interface ge-0/0/46
#delete interfaces ge-1/0