generates cisco IOS commands to setup subnets, DHCP, and RIP
- ideal for lazy students who don't want to go through this tedious process manually, and would rather edit and debug a script
- automatically calculates subnet, network address, and ip addresses based on number of hosts needed
- generates cisco IOS commands to setup subnets, DHCP, and RIP
- download the project
git clone https://github.com/meow-d/cisco-IOS-command-generator
- install required packages
pip install -r requirements.txt
- or
pip install lxml Markdown pandas
- manually edit the python if your questions demand something specific
- fill in the input table
- use whatever tool you want to fill in the markdown table
- for example: VScode, with the
markdown all in one
andMarkdown Table
extensions
- for example: VScode, with the
- fill in the table
name
- name of each networktype
- if the network is between routers, or for a group of computers connected through a switchhosts
- the number of hosts neededin/out_port/device
- the devices and ports. onlyrouter
networks needin_port/device
- use whatever tool you want to fill in the markdown table
- run
- example:
python -u main.py input_table.md
- example:
- manually edit the generated script yourself. see limitations below
- copy and paste into each device
- protip: if you can't use
ctrl-v
, userightclick+uparrow
. super fast if you have a right click key on your keyboard
- protip: if you can't use
will probably never fix because i'm done with this module
- switch and router sections are seperate, meaning there are two subsections for each device. ideally each device should get one subsection with all of its commands
- lack of flexibility. your question will almost always require you to do something different, which often requires you to change the commands manually.
- duplicate code between the two sections
- inefficient RIP configuration
- it's not very effieient to keep exiting
- in the example, routerABC doesn't have any rip configuration in the router section
- no ipv6 support
Distributed under the MIT license. See LICENSE
for more information.
Don't know why would anyone contribute, but do it if you want.
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request