# Write or review a network switch configuration change

A vendor-aware switch config for your requirement, plus a pre-change review, rollback steps, and verification commands.

- Topic: Software Development
- Framework: Few-Shot
- Level: Advanced
- Tags: Write, Analyze, Fill-in Template
- Source: https://www.thinkwithprompt.com/prompts/write-or-review-a-network-switch-configuration-change

## Prompt

```text
Help me write or review a network switch configuration change.

**Platform and OS version:** [e.g. "Arista EOS 4.x", "Cisco IOS-XE", "Juniper Junos"]
**What I need to achieve:** [e.g. "add VLAN 120 to the access layer", "set up MLAG between two leaf switches", "add a BGP peer"]
**Current setup:** [topology, relevant interfaces, VLANs, routing, or paste the running-config section - remove passwords, keys, and SNMP communities first]
**Constraints:** [change window, redundancy requirements, naming standards, security policy]
**Mode:** [write a new config / review my proposed config]

Do this:
1. Restate the goal and list any assumptions or missing details that would change the config. Mark guesses with [CONFIRM].
2. Give the configuration in the correct syntax for my platform, in a code block, grouped and commented by purpose.
3. Review it (or my draft) against these checks: spanning-tree and loop risk, VLAN and trunk allowed lists, MTU consistency, LACP/MLAG peer consistency, routing filters and route leaks, management-plane access (ACLs, AAA, SSH only), logging and NTP, and anything that could cut off my own access.
4. A pre-change checklist: backups, commands to capture the before-state, and peer or upstream dependencies.
5. Rollback steps I can run quickly if it goes wrong (use config sessions or commit-confirm if the platform supports them).
6. Verification commands with what a healthy result looks like.

If a command or feature differs between OS versions, say so and tell me what to check in the vendor documentation. Recommend testing in a lab or on a single device first.
```

## What to fill in

- e.g. "Arista EOS 4.x", "Cisco IOS-XE", "Juniper Junos"
- write a new config / review my proposed config
- CONFIRM

Free to copy and use. From ThinkWithPrompt (https://www.thinkwithprompt.com/), a library of 2,663 curated AI prompts.
