Documentation 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.
pt_plan_topology is the core planning tool in MCP Packet Tracer. Given a set of parameters describing the desired network, it runs the full orchestration pipeline — creating devices, assigning /24 LAN subnets and /30 inter-router links, generating DHCP pools, computing routing tables (static, OSPF, EIGRP, or RIP), and packaging everything into a single machine-readable TopologyPlan JSON object. The output can be fed directly into pt_validate_plan, pt_fix_plan, pt_generate_script, pt_generate_configs, and pt_live_deploy.
Parameters
Number of routers to place in the topology. Accepts 1 to 20. Each router gets its own LAN subnet.
Number of PCs (
PC-PT) to connect to each LAN switch. Applied uniformly to all LANs.Number of laptops (
Laptop-PT) to connect to each LAN switch, in addition to PCs.Number of access switches per router. Accepts 0 to 4. Each switch connects directly to its router.
Number of server hosts (
Server-PT) to add to the topology. Servers are attached to the first switch.Number of wireless access points (
AccessPoint-PT) to add — one per LAN at most.When
true, adds a Cloud-PT node connected to the last router to simulate a WAN uplink.When
true, generates one DHCP pool per LAN. PCs and laptops receive IPs automatically. The gateway address (.1) is excluded from the pool.Routing protocol to configure. One of:
static, ospf, eigrp, rip, none.static— generates bidirectionalip routecommands on every router.ospf— generatesrouter ospf,router-id, andnetwork ... area 0commands.eigrp— generatesrouter eigrp {AS},network ... wildcard,no auto-summary.rip— generatesrouter rip,version 2,network,no auto-summary.none— no routing configuration is generated.
Cisco router model to use. Supported:
1941, 2901, 2911, ISR4321. The 2911 is the default because it has 3 GigabitEthernet ports, which accommodates most multi-router topologies without requiring expansion modules.Cisco switch model to use. Supported:
2960-24TT, 3560-24PS. The 3560-24PS supports Layer 3 routing.Topology template that guides the orchestrator’s structure. One of:
single_lan, multi_lan, multi_lan_wan, star, hub_spoke, branch_office, router_on_a_stick, three_router_triangle, custom. Use pt_list_templates to see all templates with descriptions and default parameters.When
true and routing is static, generates backup static routes with administrative distance 254 via alternate paths. Requires a topology with multiple paths between routers (e.g. a triangle or ring).OSPF process ID to use when
routing is ospf. Accepts 1 to 65535.EIGRP autonomous system number to use when
routing is eigrp. Accepts 1 to 65535.Returns
pt_plan_topology returns the TopologyPlan serialized as a JSON string. The top-level fields are:
Topology name, defaults to
"topology".List of
DevicePlan objects. Each device has: name, model, category, role, canvas coordinates x/y, an interfaces map of { interface_name: "IP/prefix" }, and an optional gateway.List of
LinkPlan objects. Each link has: device_a, port_a, device_b, port_b, and cable (e.g. "straight", "cross", "serial").List of
ModulePlan objects specifying expansion modules to install. Each has: device, slot, and module (e.g. "HWIC-2T").List of
DHCPPool objects, one per LAN when dhcp is true. Each has: router, pool_name, network, mask, gateway, dns, excluded_start, excluded_end.List of
StaticRoute objects. Each has: router, destination, mask, next_hop, admin_distance. Floating routes have admin_distance set to 254.List of
OSPFConfig objects (populated when routing is ospf). Each has: router, process_id, router_id, networks.List of
RIPConfig objects (populated when routing is rip). Each has: router, version, networks, no_auto_summary.List of
EIGRPConfig objects (populated when routing is eigrp). Each has: router, as_number, networks, no_auto_summary.List of error message strings detected during planning. An empty list means the plan is valid.
List of non-fatal warning strings (e.g. DHCP gateway mismatches).
Example
Request — a 3-router OSPF topology with DHCP and one laptop per LAN:TopologyPlan will contain:
- 3 routers (
R1,R2,R3) each with a/24LAN subnet and a/30inter-router link - 3 switches (
SW1,SW2,SW3) connected to their respective routers - 6 PCs (
PC1–PC6) and 3 laptops (LT1–LT3) - 3 DHCP pools on R1, R2, and R3
- OSPF process 1 configured on all three routers with
network ... area 0for every subnet
The output of
pt_plan_topology is machine-readable JSON. Pass the raw JSON string directly to pt_validate_plan, pt_fix_plan, pt_generate_script, pt_generate_configs, or pt_live_deploy as the plan_json parameter.