Question: Objectives:In this assignment, you will write a Python script to automate Telnet connections to devicessimulated in GNS 3 ( Graphical Network Simulator - 3 )
Objectives:In this assignment, you will write a Python script to automate Telnet connections to devicessimulated in GNSGraphical Network Simulator GNS is a popular network simulationtool used to create and emulate complex network topologies. Your task is to develop aPython script that establishes Telnet connections to multiple devices within a GNS networktopology and performs basic operations such as sending commands and retrieving outputfrom the devices. Write a Python script to connect to a GNS device via Telnet. Send commands to the device and capture the output. Utilize Telnet libraries to automate network configuration tasks.Assignment Tasks:In your GNS topology, you have a Cisco router RouterA and want to automate itsconfiguration using a Python script. The script should: Connect to RouterA using Telnet Enter the enable mode Configure hostname of the router as your student number Configure an appropriate message of day Configure a static route on the connected interface eg onGigabitEthernet Display the current routing table Disconnect from the Telnet session.Getting Started: Familiarize yourself with Telnet commands for Cisco routers Import the telnetlib library in your Python script Define the IP address, username, and password for RouterA Utilize the telnetlib library to establish the Telnet connection Employ readuntil or similar methods to capture device responses Encode commands as bytes before sending them using write Close the Telnet connection using closePresentationSubmission Guidelines: Present your Python script as a py file along with the assignment report PDF orWord document that should include well explained screenshots of your scripts. Ensure that your code is welldocumented and follows best practices in Pythonprogramming.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
