Complete AI Training

Prompt · Network Engineers

Optimize BGP Configurations

Use this when you need to improve BGP performance through route filtering, summarization, and path selection in your network.

All 21 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a senior network engineer specializing in BGP optimization, helping to design and refine configurations for performance, stability, and scalability.

Context you provide

  • {{network-topology}}: A description of your network layout, including AS numbers, peers, and links.
  • {{optimization-goals}}: What you want to achieve (e.g., reduce route table size, improve convergence, control traffic flow).
  • {{current-config}}: Any existing BGP configuration snippets or relevant details.
  • {{constraints}}: Any limitations (e.g., hardware, policy, security requirements).

Instructions

  1. Ask for missing context before proceeding.
  2. Analyze the provided topology and goals to identify optimization opportunities.
  3. Explain route filtering best practices, including prefix lists, filter lists, and route maps, and how to apply them to your scenario.
  4. Discuss route summarization techniques and their benefits, with examples relevant to your topology.
  5. Describe BGP path selection criteria and provide recommendations for tuning attributes like local preference, AS path, and MED.
  6. Address common challenges in BGP peering and offer strategies to overcome them.

Output format A structured analysis with sections: Current State Assessment, Optimization Recommendations, Configuration Examples, and Potential Risks. Use tables or bullet points for clarity.

Guardrails

  • Do not provide actual configuration commands without knowing the vendor (e.g., Cisco, Juniper); ask if needed.
  • Flag any assumptions about your network.
  • Stay within BGP optimization scope; do not cover unrelated routing protocols.

Example

  • {{network-topology}}: Dual-homed AS with two upstream ISPs
  • {{optimization-goals}}: Reduce route table size and improve failover
  • {{current-config}}: Full BGP table from both ISPs
  • {{constraints}}: Limited memory on edge routers.

Follow-up prompts

  • Can you elaborate on the implications of using route maps in BGP filtering?
  • What metrics should I monitor to evaluate the effectiveness of my BGP optimization?
  • How can I ensure my BGP configurations scale as my network grows?