要求聚合的端口工作在全双工,速度一致,在同一槽口且连续。 参数:ingress:源MAC, both:源和目的MAC 对于SwitchA: [SwitchA]interface ethernet0/1 [SwitchA-Ethernet0/1]duplex full #设置以太口全双工状态 [SwitchA-Ethernet0/1]speed 100 [SwitchA-Ethernet0/1]mdi across#(连接网线为交叉网线)/normal #为连接网线类型为平行网线. [SwitchA-Ethernet0/1]flow_control #开启流量控制 [SwitchA-Ethernet0/1]broadcast_suppression 10 #广播风暴仰制比 [SwitchA-Ethernet0/1]port link_type access #端口连接类型 [SwitchA-Ethernet0/1]int e0/2 [SwitchA-Ethernet0/2]duplex full [SwitchA-Ethernet0/2]speed 100 对于SwitchB: [SwitchB]interface ethernet0/1 [SwitchB-Ethernet0/1]duplex full [SwitchB-Ethernet0/1]speed 100 [SwitchB-Ethernet0/1]int e0/2 [SwitchB-Ethernet0/2]duplex full [SwitchB-Ethernet0/2]speed 100 聚合操作: [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
时间: 2024-01-04 21:03:13 浏览: 144
端口聚合详解
根据您的要求,以下是SwitchA和SwitchB的配置和聚合操作:
对于SwitchA:
```
[SwitchA]interface ethernet0/1
[SwitchA-Ethernet0/1]duplex full
[SwitchA-Ethernet0/1]speed 100
[SwitchA-Ethernet0/1]mdi normal
[SwitchA-Ethernet0/1]flow_control
[SwitchA-Ethernet0/1]broadcast_suppression 10
[SwitchA-Ethernet0/1]port link_type access
[SwitchA]interface ethernet0/2
[SwitchA-Ethernet0/2]duplex full
[SwitchA-Ethernet0/2]speed 100
[SwitchA]link-aggregation ethernet0/1 to ethernet0/2 both
```
对于SwitchB:
```
[SwitchB]interface ethernet0/1
[SwitchB-Ethernet0/1]duplex full
[SwitchB-Ethernet0/1]speed 100
[SwitchB]interface ethernet0/2
[SwitchB-Ethernet0/2]duplex full
[SwitchB-Ethernet0/2]speed 100
[SwitchB]link-aggregation ethernet0/1 to ethernet0/2 both
```
在聚合操作之后,您可以使用以下命令在SwitchA上查看聚合接口的状态:
```
[SwitchA]display link-aggregation ethernet0/1
```
最后,如果您需要撤销所有聚合操作,可以使用以下命令:
```
[SwitchA]undo link-aggregation all
[SwitchB]undo link-aggregation all
```
阅读全文