Skip to content

daniadrian/static-routing-mininet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

static-routing-mininet

static-routing-mininet is a repository designed to help users learn about networking, focusing on traditional static routing and programmable networks using the Mininet environment. This repository includes scripts and configurations for setting up static routing between two routers (R1 and R2), demonstrating fundamental IP forwarding and routing principles.

Features

  • Static Routing Setup: Easy-to-follow scripts that establish static routing between routers.
  • Networking Basics: Learn core networking concepts, including IP forwarding, subnetting, and routing tables.
  • Programmable Networks: Utilize the capabilities of Mininet to simulate real-world networking scenarios in a virtual environment.

Usage

To run the static routing simulation, execute the following command in your terminal:

sudo python3 static_routing_2rtr.py

This command will start the Mininet environment and set up the static routing between the two routers as defined in the script.

Static Routing

This project demonstrates static routing between hosts and routers, visualized using the following network topology:

Static Routing Topology

graph LR;
%%Colors

classDef host fill:#fffb05, stroke:#000000;
classDef switch fill:#1fd655, stroke:#000000;
classDef router fill:#ffa500, stroke:#000000;

%%element
h1(H1):::host
r1(((R1))):::router
r2(((R2))):::router
h2(H2):::host


%%connectivity

h1 -- 192.168.1.0/24 --- r1
r1 -- 10.10.1.0/30 --- r2
r2 -- 192.168.2.0/24 --- h2

Loading

Testing

After running the script, you can use the ping command to test connectivity between the routers and connected hosts. For example:

pingall

The results should be displayed as follows:

*** Ping: testing ping reachability
r1 -> r2 h1 h2
r2 -> r1 h1 h2
h1 -> r1 r2 h2
h2 -> r1 r2 h1
*** Results: 0% dropped (12/12 received)

Contributing

Contributions to the static-routing-mininet repository are welcome! If you have suggestions for improvements, bug fixes, or additional features, please open an issue or submit a pull request.

Licencse

This project is licensed under the Creative Commons Legal Code CC0 1.0 Universal. See the LICENSE file for details.

Acknowledgements

  • Mininet developers for creating an excellent platform for network simulation.
  • Open vSwitch for providing robust virtual switching capabilities.

For any further questions or issues, feel free to open an issue on this repository.

Let me know if you need any more adjustments or additions!

Project Report

For more detailed information on the project setup, configuration, and results, refer to the full report:

Static Routing.pdf

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages