! PermitANY — Cisco NX-OS Port-Channel / LACP ! LACP port-channel configuration for Cisco Nexus switches. Supports L2 trunk/access and L3 routed port-channels, with optional vPC membership. ! Generated: 2026-09-20 ! These are EXAMPLE values. Replace with your actual config before deploying. ! hostname NXOS-LEAF-01 ! feature lacp ! interface port-channel10 description LAG to Server-01 {{#if (eq layer "L3")}} no switchport ip address 10.0.0.1/30 {{/if}} {{#if (eq layer "L2")}} switchport mode trunk {{#if (eq sw_mode "trunk")}} switchport trunk allowed vlan 10,20,30 {{/if}} {{#if (eq sw_mode "access")}} switchport access vlan 10 spanning-tree port type edge {{/if}} {{/if}} lacp min-links 1 vpc 10 no shutdown ! interface Ethernet1/10 description Member of port-channel10 channel-group 10 mode active no shutdown !