From 4e88898e5872a594b508b31624c749f18db9f576 Mon Sep 17 00:00:00 2001 From: Vladimir Vitkov Date: Thu, 19 Oct 2017 21:24:56 +0300 Subject: [PATCH] initial switch configs --- switch-configs/mrvocsw.cfg | 180 +++++++++++++++++++++ switch-configs/nocsw.cfg | 276 +++++++++++++++++++++++++++++++++ switch-configs/receptionsw.cfg | 177 +++++++++++++++++++++ switch-configs/srvocsw.cfg | 181 +++++++++++++++++++++ 4 files changed, 814 insertions(+) create mode 100644 switch-configs/mrvocsw.cfg create mode 100644 switch-configs/nocsw.cfg create mode 100644 switch-configs/receptionsw.cfg create mode 100644 switch-configs/srvocsw.cfg diff --git a/switch-configs/mrvocsw.cfg b/switch-configs/mrvocsw.cfg new file mode 100644 index 0000000..2245c41 --- /dev/null +++ b/switch-configs/mrvocsw.cfg @@ -0,0 +1,180 @@ +!TL-SG3210 +##################################################################### +# +# MRVOCSW for OpenFest 2017 +# +# HW: TL-SG3210 1.0 +# SW: 1.9.2 Build 20130527 Rel.59782 +# +# 2017.10.19 - Initial +# +##################################################################### +# +vlan 2,10,20-25 +# +vlan 2 +name "initlab" +# +vlan 10 +name "of-ext" +# +vlan 20 +name "of-mgmt" +# +vlan 21 +name "of-wired" +# +vlan 22 +name "of-wifi" +# +vlan 23 +name "of-video" +# +vlan 24 +name "of-overflow" +# +vlan 25 +name "of-phones" +# +# +# +hostname "mrvocsw" +# +mac address-table aging-time 300 +# +logging buffer 6 +no logging file flash +# +enable password @PW@ +# +system-time ntp UTC+02:00 10.20.0.1 79.98.105.18 4 +# +spanning-tree +spanning-tree mode mstp +spanning-tree mst configuration +name openfest +exit +# +# +# +# +# +# +# +# +snmp-server +snmp-server engineID local 80002e5703c46e1f44c0e8 +snmp-server community @SNMP_PW@ read-only viewDefault +# +snmp-server host 10.20.0.1 161 monitoring smode v2c slev noAuthNoPriv type trap +snmp-server traps flash +snmp-server traps spanning-tree topologychange +snmp-server traps cpu +snmp-server traps vlan create +snmp-server traps vlan delete +# +interface gigabitEthernet 1/0/1 + switchport access vlan 25 + description "phone" + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/2 + switchport access vlan 23 + description "streamer" + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/3 + switchport mode trunk + switchport trunk allowed vlan 21,23 + spanning-tree + spanning-tree common-config portfast enable + description "control/1" + +# +interface gigabitEthernet 1/0/4 + switchport mode trunk + switchport trunk allowed vlan 21,23 + spanning-tree + spanning-tree common-config portfast enable + description "control/2" + +# +interface gigabitEthernet 1/0/5 + switchport mode trunk + switchport trunk allowed vlan 21,23 + spanning-tree + spanning-tree common-config portfast enable + description "intercom/1" + +# +interface gigabitEthernet 1/0/6 + switchport mode trunk + switchport trunk allowed vlan 21,23 + spanning-tree + spanning-tree common-config portfast enable + description "intercom/2" + +# +interface gigabitEthernet 1/0/7 + switchport mode trunk + switchport trunk allowed vlan 21,23 + spanning-tree + spanning-tree common-config portfast enable + description "intercom/3" + +# +interface gigabitEthernet 1/0/8 + switchport mode trunk + switchport trunk allowed vlan 20,23,25 + description "uplink/trunk" + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/9 + speed 1000 + shutdown + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/10 + speed 1000 + shutdown + spanning-tree + spanning-tree common-config portfast enable + +# +ip management-vlan 20 +interface vlan 20 +ip address 10.20.0.21 255.255.255.0 10.20.0.1 +# +line vty 0 0 +password @PW@ +login +# +line vty 1 1 +password @PW@ +login +# +line vty 2 2 +password @PW@ +login +# +line vty 3 3 +password @PW@ +login +# +line vty 4 4 +password @PW@ +login +# +line vty 5 5 +password @PW@ +login +# +end diff --git a/switch-configs/nocsw.cfg b/switch-configs/nocsw.cfg new file mode 100644 index 0000000..e23c7a4 --- /dev/null +++ b/switch-configs/nocsw.cfg @@ -0,0 +1,276 @@ +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +! +! NOCSW for OpenFest 2017 +! +! HW: WS-C3750G-24TS +! SW: c3750-ipservicesk9-mz.122-55.SE6.bin +! +! 2017.10.19 - initial +! +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +! +version 12.2 +no service pad +service timestamps debug datetime msec +service timestamps log datetime msec +no service password-encryption +! +hostname nocsw +! +boot-start-marker +boot-end-marker +! +enable password @PW@ +! +! +! +no aaa new-model +switch 1 provision ws-c3750g-24ts +system mtu routing 1546 +vtp mode transparent +ip name-server 10.20.0.1 +! +! +! +! +! +! +! +! +! +spanning-tree mode mst +spanning-tree extend system-id +! +vlan internal allocation policy ascending +! +vlan 10 + name external +! +vlan 20 + name of-mgmt +! +vlan 21 + name of-wired +! +vlan 22 + name of-wireless +! +vlan 23 + name of-video +! +vlan 24 + name of-overflow +! +vlan 25 + name of-phone +! +! +! +interface GigabitEthernet1/0/1 + description phone/1 + switchport trunk encapsulation dot1q + switchport access vlan 25 + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/2 + description phone/2 + switchport trunk encapsulation dot1q + switchport access vlan 25 + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/3 + description ext/1 + switchport access vlan 10 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/4 + description ext/2 + switchport access vlan 10 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/5 + description of-mgmt/1 + switchport access vlan 20 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/6 + description of-mgmt/2 + switchport access vlan 20 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/7 + description of-wired/1 + switchport access vlan 21 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/8 + description of-wired/2 + switchport access vlan 21 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/9 + description of-wireless/1 + switchport access vlan 22 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/10 + description of-wireless/2 + switchport access vlan 22 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/11 + description of-video/1 + switchport access vlan 23 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/12 + description of-video/2 + switchport access vlan 23 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/13 + description of-video/3 + switchport access vlan 23 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/14 + description of-video/4 + switchport access vlan 23 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/15 + description of-overflow/1 + switchport access vlan 24 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/16 + description of-overflow/2 + switchport access vlan 24 + switchport mode access + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/17 + description shutdown + shutdown + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/18 + description shutdown + shutdown + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/19 + description shutdown + shutdown + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/20 + description shutdown + shutdown + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/21 + description shutdown + shutdown + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/22 + description shutdown + shutdown + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/23 + description uplink/2 + switchport trunk encapsulation dot1q + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/24 + description uplink/1 + switchport trunk encapsulation dot1q + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/25 + shutdown + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/26 + shutdown + spanning-tree portfast trunk +! +interface GigabitEthernet1/0/27 + shutdown +! +interface GigabitEthernet1/0/28 + shutdown +! +interface Vlan1 + no ip address + shutdown +! +interface Vlan20 + ip address 10.20.0.23 255.255.255.0 +! +ip classless +no ip http server +no ip http secure-server +! +! +! +snmp-server community @SNMP_PW@ RO +snmp-server trap-source Vlan20 +snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart +snmp-server enable traps transceiver all +snmp-server enable traps tty +snmp-server enable traps fru-ctrl +snmp-server enable traps entity +snmp-server enable traps cpu threshold +snmp-server enable traps vtp +snmp-server enable traps vlancreate +snmp-server enable traps vlandelete +snmp-server enable traps flash insertion removal +snmp-server enable traps port-security +snmp-server enable traps auth-framework sec-violation +snmp-server enable traps envmon fan shutdown supply temperature status +snmp-server enable traps license +snmp-server enable traps config-copy +snmp-server enable traps config +snmp-server enable traps config-ctid +snmp-server enable traps event-manager +snmp-server enable traps hsrp +snmp-server enable traps ipmulticast +snmp-server enable traps isis +snmp-server enable traps msdp +snmp-server enable traps pim neighbor-change rp-mapping-change invalid-pim-message +snmp-server enable traps vstack +snmp-server enable traps bridge newroot topologychange +snmp-server enable traps stpx inconsistency root-inconsistency loop-inconsistency +snmp-server enable traps syslog +snmp-server enable traps rtr +snmp-server enable traps mac-notification change move threshold +snmp-server enable traps vlan-membership +snmp-server enable traps errdisable +snmp-server host 10.20.0.1 version 2c @SNMP_PW@ +! +! +line con 0 +line vty 0 4 + password @PW@ + login +line vty 5 15 + password @PW@ + login +! +end diff --git a/switch-configs/receptionsw.cfg b/switch-configs/receptionsw.cfg new file mode 100644 index 0000000..14d78b8 --- /dev/null +++ b/switch-configs/receptionsw.cfg @@ -0,0 +1,177 @@ +!TL-SG3210 +##################################################################### +# +# RECEPTIONSW for OpenFest 2017 +# +# HW: TL-SG3210 1.0 +# SW: 1.9.2 Build 20130527 Rel.59782 +# +# 2017.10.19 - Initial config +# +##################################################################### +# +vlan 2,10,20-25 +# +vlan 2 +name "initlab" +# +vlan 10 +name "of-ext" +# +vlan 20 +name "of-mgmt" +# +vlan 21 +name "of-wired" +# +vlan 22 +name "of-wifi" +# +vlan 23 +name "of-video" +# +vlan 24 +name "of-overflow" +# +vlan 25 +name "of-phones" +# +# +# +hostname "receptionsw" +# +mac address-table aging-time 300 +# +logging buffer 6 +no logging file flash +# +enable password @PW@ +# +system-time ntp UTC+02:00 10.20.0.1 79.98.105.18 4 +# +spanning-tree +spanning-tree mode mstp +spanning-tree mst configuration +name openfest +exit +# +# +# +# +# +# +# +# +snmp-server +snmp-server engineID local 80002e5703c46e1f44c0e8 +snmp-server community @SNMP_PW@ read-only viewDefault +# +snmp-server host 10.100.0.1 161 monitoring smode v2c slev noAuthNoPriv type trap +snmp-server host 10.20.0.1 161 monitoring smode v2c slev noAuthNoPriv type trap +snmp-server traps flash +snmp-server traps spanning-tree topologychange +snmp-server traps cpu +snmp-server traps vlan create +snmp-server traps vlan delete +# +interface gigabitEthernet 1/0/1 + switchport access vlan 25 + description "phone" + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/2 + switchport access vlan 25 + description "printer" + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/3 + switchport mode trunk + switchport trunk allowed vlan 21,25 + spanning-tree + spanning-tree common-config portfast enable + description "reception/pc1" + +# +interface gigabitEthernet 1/0/4 + switchport mode trunk + switchport trunk allowed vlan 21,25 + spanning-tree + spanning-tree common-config portfast enable + description "reception/pc2" + +# +interface gigabitEthernet 1/0/5 + switchport mode trunk + switchport trunk allowed vlan 21,25 + spanning-tree + spanning-tree common-config portfast enable + description "reception/pc3" + +# +interface gigabitEthernet 1/0/6 + shutdown + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/7 + shutdown + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/8 + switchport mode trunk + switchport trunk allowed vlan 20,21,25 + description "uplink/trunk" + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/9 + speed 1000 + shutdown + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/10 + speed 1000 + shutdown + spanning-tree + spanning-tree common-config portfast enable + +# +ip management-vlan 20 +interface vlan 20 +ip address 10.20.0.26 255.255.255.0 10.20.0.1 +# +line vty 0 0 +password @PW@ +login +# +line vty 1 1 +password @PW@ +login +# +line vty 2 2 +password @PW@ +login +# +line vty 3 3 +password @PW@ +login +# +line vty 4 4 +password @PW@ +login +# +line vty 5 5 +password @PW@ +login +# +end diff --git a/switch-configs/srvocsw.cfg b/switch-configs/srvocsw.cfg new file mode 100644 index 0000000..4b40d8b --- /dev/null +++ b/switch-configs/srvocsw.cfg @@ -0,0 +1,181 @@ +!TL-SG3210 +##################################################################### +# +# MRVOCSW for OpenFest 2017 +# +# HW: TL-SG3210 1.0 +# SW: 1.9.2 Build 20130527 Rel.59782 +# +# 2017.10.19 - Initial +# +##################################################################### +# +vlan 2,10,20-25 +# +vlan 2 +name "initlab" +# +vlan 10 +name "of-ext" +# +vlan 20 +name "of-mgmt" +# +vlan 21 +name "of-wired" +# +vlan 22 +name "of-wifi" +# +vlan 23 +name "of-video" +# +vlan 24 +name "of-overflow" +# +vlan 25 +name "of-phones" +# +# +# +hostname "srvocsw" +# +mac address-table aging-time 300 +# +logging buffer 6 +no logging file flash +# +enable password @PW@ +# +system-time ntp UTC+02:00 10.20.0.1 79.98.105.18 4 +# +spanning-tree +spanning-tree mode mstp +spanning-tree mst configuration +name openfest +exit +# +# +# +# +# +# +# +# +snmp-server +snmp-server engineID local 80002e5703c46e1f44c0e8 +snmp-server community @SNMP_PW@ read-only viewDefault +# +snmp-server host 10.100.0.1 161 monitoring smode v2c slev noAuthNoPriv type trap +snmp-server host 10.20.0.1 161 monitoring smode v2c slev noAuthNoPriv type trap +snmp-server traps flash +snmp-server traps spanning-tree topologychange +snmp-server traps cpu +snmp-server traps vlan create +snmp-server traps vlan delete +# +interface gigabitEthernet 1/0/1 + switchport access vlan 25 + description "phone" + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/2 + switchport access vlan 23 + description "streamer" + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/3 + switchport mode trunk + switchport trunk allowed vlan 21,23 + spanning-tree + spanning-tree common-config portfast enable + description "control/1" + +# +interface gigabitEthernet 1/0/4 + switchport mode trunk + switchport trunk allowed vlan 21,23 + spanning-tree + spanning-tree common-config portfast enable + description "control/2" + +# +interface gigabitEthernet 1/0/5 + switchport mode trunk + switchport trunk allowed vlan 21,23 + spanning-tree + spanning-tree common-config portfast enable + description "intercom/1" + +# +interface gigabitEthernet 1/0/6 + switchport mode trunk + switchport trunk allowed vlan 21,23 + spanning-tree + spanning-tree common-config portfast enable + description "intercom/2" + +# +interface gigabitEthernet 1/0/7 + switchport mode trunk + switchport trunk allowed vlan 21,23 + spanning-tree + spanning-tree common-config portfast enable + description "intercom/3" + +# +interface gigabitEthernet 1/0/8 + switchport mode trunk + switchport trunk allowed vlan 20,23,25 + description "uplink/trunk" + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/9 + speed 1000 + shutdown + spanning-tree + spanning-tree common-config portfast enable + +# +interface gigabitEthernet 1/0/10 + speed 1000 + shutdown + spanning-tree + spanning-tree common-config portfast enable + +# +ip management-vlan 20 +interface vlan 20 +ip address 10.20.0.22 255.255.255.0 10.20.0.1 +# +line vty 0 0 +password @PW@ +login +# +line vty 1 1 +password @PW@ +login +# +line vty 2 2 +password @PW@ +login +# +line vty 3 3 +password @PW@ +login +# +line vty 4 4 +password @PW@ +login +# +line vty 5 5 +password @PW@ +login +# +end