Skip to content

Test your first change

This walkthrough uses NetSimLab end to end to test one change safely in a lab before you’d make it in production.

The change: in a 3-tier campus, VLAN 10’s default gateway (HSRP) is active on DIST-01. You want to move it to DIST-02 and prove that users keep their gateway while it moves.

You’ll need: a GNS3 server connected to NetSimLab (Connect a GNS3 server) with IOSv, IOSvL2 and VPCS templates, and the operator role.

  1. Open the Lab builder and pick Enterprise campus (3-tier) and your GNS3 server.
  2. Keep the defaults: Build level “Full lab”, 2 access switches, and campus VLAN 10 USERS.
  3. Map the templates, tick Start all nodes after building and Push generated configs once devices have booted, and click Build.
  4. The build opens on its own page in a new browser tab, with its progress and log. When it finishes, click Open project in NetSimLab.

If you already have a lab in GNS3, import it instead.

Record how the network behaves before the change, so you have something to compare against.

  1. On the project’s Devices & images tab, click Fetch all running configs, then Download all (.txt). Keep this file: it’s your “before” config.

  2. In GNS3, open the console of DIST-01 and run:

    show standby brief

    VLAN 10 (group 10) shows Active on DIST-01, priority 110.

  3. Open the console of PC1-1 (a user in VLAN 10) and check it can reach its gateway:

    ping 10.10.10.1
  4. Paste these outputs into the project’s Notes tab under a “Baseline” heading, and save.

  1. On Devices & images, find DIST-02 in Device configurations and click Push….

  2. Set Configuration to Blank — type or paste commands and enter:

    interface Vlan10
    standby 10 priority 120
  3. Leave Push method on Direct console and send it.

NetSimLab enters configuration mode, sends the lines, reports any line the switch rejects, and saves the config. Because the generated configs already include standby 10 preempt, DIST-02 takes over as soon as its priority is higher.

  1. On DIST-02’s console, run show standby brief. Group 10 is now Active on DIST-02.
  2. On PC1-1, run ping 10.10.10.1 again. The gateway address didn’t change, so it still answers. (Run a continuous ping, ping 10.10.10.1 -t, while you push, to see whether any packets are lost during the move.)
  3. Click Refresh on DIST-02 to fetch its new running config, then compare it with the “before” file from step 2, for example with diff or your editor’s compare view. The only difference should be the new priority line.

Add an “After” section to the project’s Notes with the new show standby brief output, the ping results and your conclusion. Export → Download .md turns the whole project, including these notes, into a document you can attach to a change request.

Push the reverse change to DIST-02:

interface Vlan10
standby 10 priority 90

DIST-01 takes the gateway back, because it has the higher priority and preempt is on.

  • Practice building a layer yourself: rebuild the lab with Build level “Core + distribution” and configure the access switches by hand. Each device’s intended config is kept as a solution to compare against.
  • Try the VXLAN BGP EVPN fabric lab type in the Lab builder.
  • Practice troubleshooting: inject faults into the running lab, then find and fix them.