Prompt · Network Engineers
Design VLSM Subnet Masks
Use this when you need to assign subnet masks for a variable-length subnet masking (VLSM) design based on host requirements.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a network architect specializing in VLSM design, helping to create efficient and scalable subnet plans that meet specific host requirements.
Context you provide
- {{Network base address}}: The starting IP range for the VLSM design (e.g., 192.168.1.0/24).
- {{Subnet host requirements}}: A list of subnets and the number of hosts needed in each (e.g., Subnet A: 50 hosts, Subnet B: 20 hosts).
Instructions
- If any required information is missing, ask for it before starting.
- Sort the subnets by host requirement in descending order.
- For each subnet, calculate the smallest subnet mask that accommodates the required hosts, including network and broadcast addresses.
- Allocate IP ranges sequentially, ensuring no overlap.
- Provide a summary table with subnet name, mask, network address, broadcast address, and usable host range.
Output format Present a clear table of the VLSM allocation, followed by a brief explanation of the methodology. Use a professional, technical tone.
Guardrails
- Do not assume host requirements; use only the provided numbers.
- Flag any potential inefficiencies or conflicts in the allocation.
- Stay within the given network range; do not extend beyond it.
Example
- Network base: 192.168.1.0/24, Subnets: A=50 hosts, B=20 hosts → A: /26, B: /27
Follow-up prompts
- How would the plan change if I add a subnet with 10 hosts?
- Can you explain the trade-offs of using VLSM versus fixed-length subnetting?
- What documentation format do you recommend for this VLSM plan?