! PermitANY — Cisco IOS Port-Channel / LACP ! LACP EtherChannel (802.3ad) port-channel configuration for Cisco IOS/IOS-XE switches and routers. Supports L2 (trunk/access) and L3 (routed) port-channels. ! Generated: 2026-09-20 ! These are EXAMPLE values. Replace with your actual config before deploying. ! hostname SW-CORE-01 ! port-channel load-balance src-dst-mac ! interface Port-channel1 description LAG to SW-CORE-02 port-channel min-links 1 {{#if (eq layer "L3")}} no switchport ip address 10.0.0.1 255.255.255.252 {{/if}} {{#unless (eq layer "L3")}} switchport mode trunk {{#if (eq sw_mode "trunk")}} switchport trunk encapsulation dot1q switchport trunk allowed vlan 10,20,30 switchport trunk native vlan 999 {{/if}} {{#if (eq sw_mode "access")}} switchport access vlan 10 spanning-tree portfast {{/if}} {{/unless}} no shutdown ! interface GigabitEthernet1/0/1 description Member of Port-channel1 channel-group 1 mode active no shutdown !