configurar_etherchannel
Configure EtherChannel link aggregation on Cisco switches by grouping multiple ports into a channel group using LACP, PAgP, or static mode.
Instructions
Configura EtherChannel (Link Aggregation) en un switch Cisco.
Modos: active/passive — LACP (IEEE 802.3ad, recomendado) desirable/auto — PAgP (Cisco propietario) on — Sin negociación (ambos lados deben ser 'on')
puertos: lista de interfaces a agrupar, ej: ['FastEthernet0/1', 'FastEthernet0/2']
channel_group: número del port-channel (1-48)
Ejemplo: configurar_etherchannel('SW1', ['FastEthernet0/1', 'FastEthernet0/2'], 1, 'active')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modo | No | active | |
| switch | Yes | ||
| puertos | Yes | ||
| channel_group | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |