International Journal Of Computer, Network Security and Information System (IJCONSIST)
Vol 8 No 1 (2026): September

Implementation of OSPF and Static Routing Using Python Scripts in Cisco Packet Tracer Network Simulation

Ananda Syafika (State University of Medan)
Dedy Kiswanto (State University of Medan)
Benedict Sandi Pangestu Rosa (State University of Medan)
Nayla Luthfiah Hanan (State University of Medan)



Article Info

Publish Date
01 Sep 2026

Abstract

The increasing complexity of computer networks demands a faster and more accurate process of configuring network devices. Manually configuring routers is time-consuming and prone to configuration inconsistencies, requiring a more efficient approach. This study aims to implement static routing and dynamic routing configurations based on the OSPF (Open Shortest Path First) protocol using the Python programming language in a simulation of the Cisco Packet Tracer network. The network topology consists of three routers, three switches, and three PCs with predefined IP addressing. Python scripts are designed to generate router interface configurations, static routing, and OSPF based on topological data, as well as store the results into .txt files. The test is performed using ping commands, show ip route, and show ip ospf neighbor to verify inter-network connectivity. The test results showed that both routing methods successfully connected three different subnets with 0% packet loss under stable network conditions. Python-based scripts have been shown to speed up the configuration preparation process as well as produce more consistent and structured configurations compared to manual methods.

Copyrights © 2026






Journal Info

Abbrev

ijconsist

Publisher

Subject

Computer Science & IT

Description

Focus and Scope The Journal covers the whole spectrum of intelligent informatics, which includes, but is not limited to : • Artificial Immune Systems, Ant Colonies, and Swarm Intelligence • Autonomous Agents and Multi-Agent Systems • Bayesian Networks and Probabilistic Reasoning • ...