Connect Python to GNS3 for Automation in Win10

5 min read

This walkthrough shows how to use Python 3 on Windows 10 to telnet into a router running in GNS3 and run configuration commands on it automatically — exactly the kind of network automation task covered on the ENCOR exam.

Topology

The lab topology is simple: a single router, R1, connected to a Cloud node in GNS3. That Cloud node is what represents the real Windows laptop or desktop the lab is being run from — but it shouldn’t actually be created in GNS3 until after a loopback adapter has been set up on Windows, which is the first step below.

Topology with R1 connected to a GNS3 Cloud node
R1 connects to a Cloud node representing the real Windows machine.
// members only

The rest of this article is for members

The full walkthrough, configuration examples and verification steps are available exclusively to paid members.

View membership plans Log in