Topology planning in MCP Packet Tracer is the process of translating a plain-English prompt — such as “create a network with 3 routers, OSPF, and DHCP” — into a fully validatedDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Mats2208/MCP-Packet-Tracer/llms.txt
Use this file to discover all available pages before exploring further.
TopologyPlan object containing every device, cable, IP address, DHCP pool, routing config, and expansion module required to deploy the network. The planning engine handles subnet allocation, cable inference, port assignment, and protocol configuration automatically, so neither the LLM nor the user needs to think about any of those details.
How Planning Works
Every topology starts as aTopologyRequest and ends as a TopologyPlan. The orchestrator pipeline looks like this:
TopologyPlan that comes back contains:
- Devices — model, category, canvas coordinates, and role for every node
- Links — inferred or explicit cable types between every pair of devices
- IP addressing — fully assigned interface IPs on every router, PC, and server
- DHCP pools — one pool per LAN with gateway excluded
- Static routes / OSPF / EIGRP / RIP config — complete IOS command blocks per router
- Expansion modules —
HWIC-2TorNIM-2Tentries when serial links are needed
Topology Templates
Templates are hints that guide the orchestrator’s topology-building logic. Each template sets sensible defaults for router count, PC distribution, switches, and routing protocol.| Template | Description | Default Routing |
|---|---|---|
single_lan | 1 router + 1 switch + N PCs — simplest local network | static |
multi_lan | N routers in a chain, each with their own LAN | static |
multi_lan_wan | Multi-LAN topology with a WAN Cloud node attached | static |
star | 1 central router connected to N switches (hub-and-spoke variant) | static |
hub_spoke | 1 hub router + N spoke routers, each spoke with its own LAN | static |
branch_office | Headquarters + branch sites connected through a WAN cloud | static |
router_on_a_stick | 1 router + 1 switch for inter-VLAN routing via subinterfaces | static |
three_router_triangle | 3 routers in a triangle with route redundancy | ospf |
custom | Free-form — all parameters are set manually, no enforced structure | none |
Template selection is a hint, not a hard constraint. You can override any default by specifying fields explicitly in the request — for example, setting
routing: "ospf" on a single_lan template.pt_full_build vs pt_plan_topology
Both tools plan a topology, but they serve different purposes.
pt_full_build
All-in-one pipeline: plan + validate + fix + generate + explain in a single call.
Returns a human-readable report describing every decision. Best for interactive
prompts where you want an immediate overview.
pt_plan_topology
Returns machine-readable JSON (
TopologyPlan). Use this when you need the plan
as structured input for downstream tools like pt_generate_script,
pt_generate_configs, or pt_export.Using pt_plan_topology
Example Request
pt_plan_topology accepts individual named parameters — not a JSON string. Pass each option directly. The tool picks sensible defaults for anything you omit.
Example Response (excerpt)
Prompt Tips
Be specific about device counts
Be specific about device counts
Say “3 routers, 2 PCs per LAN” rather than “a few routers with some PCs.” The planner
uses explicit numbers to determine subnet count, port allocation, and route generation.
Name the routing protocol
Name the routing protocol
Include “OSPF,” “EIGRP,” “RIP,” or “static routing” in your prompt. Without it, the
planner defaults to
static for most templates. For redundant topologies, say
“OSPF with floating static backup routes.”Mention DHCP explicitly
Mention DHCP explicitly
DHCP pool generation is on by default, but stating “with DHCP” makes the intent clear
and avoids the LLM accidentally passing
dhcp: false.Specify serial links when needed
Specify serial links when needed
No router has Serial ports by default — they require HWIC or NIM modules. Say
“connect routers via serial links” or “use serial WAN connections” and the planner
will automatically select and install the right module (e.g.,
HWIC-2T on a 2911).Use a template for common patterns
Use a template for common patterns
Saying “hub-and-spoke topology” will pick the
hub_spoke template with 4 routers by
default. Add routing="eigrp" to get EIGRP — a popular choice for hub-and-spoke labs.Next Steps
pt_plan_topology
Full parameter reference for the planning tool
pt_full_build
All-in-one build + explain pipeline