! PermitANY — Cisco NX-OS vPC Configuration ! Virtual Port-Channel (vPC) domain configuration for Cisco Nexus switches: peer-link, keepalive, peer-gateway, and vPC member port-channels. ! Generated: 2026-09-20 ! These are EXAMPLE values. Replace with your actual config before deploying. ! hostname NXOS-LEAF-01 ! feature vpc feature lacp ! ! ── vPC Domain ─────────────────────────────────────────────────────── vpc domain 10 role priority 100 peer-keepalive destination 10.0.0.2 source 10.0.0.1 vrf management peer-gateway auto-recovery reload-delay 360 ip arp synchronize delay restore 150 ! ! ── Peer-Link ──────────────────────────────────────────────────────── interface port-channel1 description vPC PEER-LINK switchport mode trunk switchport trunk allowed vlan 1-4094 spanning-tree port type network vpc peer-link no shutdown ! interface Ethernet1/49 description vPC Peer-Link Member channel-group {{../peer_link_po}} mode active no shutdown ! ! ── vPC Port-Channels ──────────────────────────────────────────────── interface port-channel10 description vPC to Server-01 switchport mode trunk {{#if (eq sw_mode "trunk")}} switchport trunk allowed vlan 10,20 {{/if}} {{#if (eq sw_mode "access")}} switchport access vlan 10 {{/if}} vpc 10 spanning-tree port type edge trunk no shutdown !