Quick introduction to network programmability with python’s telnet and ssh libraries using GNS3 network emulator.
This project shows a practical way to get started with network programmability in python using GNS3 network emulator.
GOAL: using python telnet and ssh scripts to configure loopback interfaces and Routing protocol (eigrp) on router, and configure switch vlans and interface loopback. Also shows a simple setup on GNS3.
NB: To better understand the GNS3 installation and lab setup used in this project, read:
What is Network programmabilty?
Network programmability means abstracting a computer network such that it appears as a single device that can be manipulated with specialized software, APIs or programming languages, or within existing software.
NB: The Python telnet library/package is called: telnetlib, while the Python ssh libraries are: paramiko and netmiko, but netmiko was used in this project, because it is more simpler and flexible than paramiko.
1. SETUP AND CONFIGURATION OF UBUNTU DOCKER LAPTOP, ROUTER AND CISCO-SWITCH.
2. PYTHON SCRIPTS TO CONFIGURE ROUTER AND SWITCH.
1. SETUP AND CONFIGURATION OF UBUNTU DOCKER LAPTOP, ROUTER AND CISCO SWITCH:
1.1 Connect devices in GNS3.
1.2 Configure the laptop running the ubuntu docker container, update and install , and run python telnet and ssh scripts to configure router and switch
1.3. on the cisco switch
1.4 on the router
2. Python Scripts to configure router and switch
2.1 Python telnet script to configure interface loopback and eigrp on router
2.2 Python telnet script to configure vlan on switch
2.3 Python ssh script to configure vlan and loopback interface on switch
I demonstrated Network programmabilty for automation and configuration of network devices with python telnet and ssh libraries using GNS3. This concept makes network administration more efficient.
WRITER: OLUYEDE SEGUN . A(jnr)
LINK TO GNS3 FILE: https://projectsss.s3.us-east-2.amazonaws.com/networkpythonprog.gns3
LINK TO PYTHON SCRIPTS: https://github.com/juniorboycoder/GNS3_NETWORK_PROGRAMMABILTY
twitter profile: https://twitter.com/oluyedejun1
TAGS: #NETWORKING #CISCO #ROUTER #SWITCH #GNS3 #NETWORKPROGRAMMABILITY #PYTHON