configs
This commit is contained in:
commit
b1b3085668
3 changed files with 77 additions and 0 deletions
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2024 Zachary Duncan
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
30
Readme.md
Normal file
30
Readme.md
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# MikroTik GNS Configuration Script for CCR2004-1G-12S+2XS
|
||||||
|
|
||||||
|
**Author:** Zachary Duncan
|
||||||
|
**Date:** 2025-06-02
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
This script configures a MikroTik Cloud Hosted Router (CHR) instance to simulate the interface naming scheme of the **CCR2004-1G-12S+2XS** router model in GNS3 or similar virtual environments.
|
||||||
|
|
||||||
|
It renames the default ethernet interfaces to match the physical ports naming conventions found on the actual CCR2004-1G-12S+2XS hardware, including SFP+ and SFP28 ports, and configures the serial port name accordingly.
|
||||||
|
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Renames Ethernet interfaces `ether1` through `ether15` to appropriate SFP+, SFP28, and Ethernet port names.
|
||||||
|
- Sets serial port to `serial0`.
|
||||||
|
- Disables the login note display.
|
||||||
|
- Sets system identity to `GNS-CCR2004-1G-12S+2XS` for easy identification.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Create a CHR instance in GNS3 with 15 interfaces, and then import and run `init.rsc`
|
||||||
|
|
||||||
|
If you use automation scripts or an exported configuration file, **replace any usage of** `default-name=` with `name=` for interfaces.
|
||||||
|
|
||||||
|
Later there will be a appliance file created for this.
|
26
init.rsc
Normal file
26
init.rsc
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# MikroTik RouterOS CHR configuration script for CCR2004-1G-12S+2XS
|
||||||
|
# Written by Zachary Duncan
|
||||||
|
# Date: 2025-06-02
|
||||||
|
# Description: Configuration for CHR Routers in GNS3 to simulate a CCR2004-1G-12S+2XS
|
||||||
|
# Instructions: Import this script into your MikroTik CHR instance to set up the interfaces to be named as per the CCR2004-1G-12S+2XS model.
|
||||||
|
# If you are using an script to further automate the configuration, such as an exported config file, please adjust the script to remove `default-name=` checks.
|
||||||
|
# and replace them with just `name=` to avoid issues with the default names being used in the script.
|
||||||
|
/interface ethernet
|
||||||
|
set [ find default-name=ether1 ] disable-running-check=no name=sfp-sfpplus1
|
||||||
|
set [ find default-name=ether2 ] disable-running-check=no name=sfp-sfpplus2
|
||||||
|
set [ find default-name=ether3 ] disable-running-check=no name=sfp-sfpplus3
|
||||||
|
set [ find default-name=ether4 ] disable-running-check=no name=sfp-sfpplus4
|
||||||
|
set [ find default-name=ether5 ] disable-running-check=no name=sfp-sfpplus5
|
||||||
|
set [ find default-name=ether6 ] disable-running-check=no name=sfp-sfpplus6
|
||||||
|
set [ find default-name=ether7 ] disable-running-check=no name=sfp-sfpplus7
|
||||||
|
set [ find default-name=ether8 ] disable-running-check=no name=sfp-sfpplus8
|
||||||
|
set [ find default-name=ether9 ] disable-running-check=no name=sfp-sfpplus9
|
||||||
|
set [ find default-name=ether10 ] disable-running-check=no name=sfp-sfpplus10
|
||||||
|
set [ find default-name=ether11 ] disable-running-check=no name=sfp-sfpplus11
|
||||||
|
set [ find default-name=ether12 ] disable-running-check=no name=sfp-sfpplus12
|
||||||
|
set [ find default-name=ether13 ] disable-running-check=no name=ether1
|
||||||
|
set [ find default-name=ether14 ] disable-running-check=no name=sfp28-1
|
||||||
|
set [ find default-name=ether15 ] disable-running-check=no name=sfp28-2
|
||||||
|
/port set 0 name=serial0
|
||||||
|
/system note set show-at-login=no
|
||||||
|
/system identity set name=GNS-CCR2004-1G-12S+2XS
|
Loading…
Reference in a new issue