要求聚合的端口工作在全双工,速度一致,在同一槽口且连续。 参数:ingress:源MAC, both:源和目的MAC
对于SwitchA: [Quidway]sysname SwitchA [SwitchA]interface ethernet0/1 [SwitchA-Ethernet0/1]duplex full 配置端口工作状态为全双工 [SwitchA-Ethernet0/1]speed 100 配置端口工作速率为100 [SwitchA-Ethernet0/1]port link-type trunk 设置端口工作模式为truck [SwitchA-Ethernet0/1]port trunk permit vlan all 设trunk允许的VLAN为全部/不是全部则all改为VLANid
[SwitchA-Ethernet0/1]int e0/2 [SwitchA-Ethernet0/2]duplex full [SwitchA-Ethernet0/2]speed 100 [SwitchA-Ethernet0/2]port link-type trunk [SwitchA-Ethernet0/2]port trunk permit vlan all
对于SwitchB: [Quidway]sysname SwitchB [SwitchB]interface ethernet0/1 [SwitchB-Ethernet0/1]duplex full [SwitchB-Ethernet0/1]speed 100 [SwitchB-Ethernet0/1]port link-type trunk [SwitchB-Ethernet0/1]port trunk permit vlan all
[SwitchB-Ethernet0/1]int e0/2 [SwitchB-Ethernet0/2]duplex full [SwitchB-Ethernet0/2]speed 100 [SwitchB-Ethernet0/2]port link-type trunk [SwitchB-Ethernet0/2]port trunk permit vlan all
聚合操作:
[SwitchA]link-aggregation ethernet0/1 to ethernet0/2 both [SwitchB]link-aggregation ethernet0/1 to ethernet0/2 both
配置端口聚合(H3C)要求聚合的端口工作在全双工,速度一致,在同一槽口且连续。
主要命令: [SwitchA]link-aggregation ethernet0/1 to ethernet0/2 both [SwitchB]link-aggregation ethernet0/1 to ethernet0/2 both [SwitchA]display link-aggregation ethernet0/1 [SwitchA]undo link-aggregation all 在端口下进行动态聚合
|