From 26ef282a55e5cafe1c1b42da8d5a3ba5655aa8fc Mon Sep 17 00:00:00 2001 From: Vladimir Vitkov Date: Fri, 21 Oct 2016 23:54:28 +0300 Subject: [PATCH] vocsw - add snmp/stp --- switch-configs/vocsw.cfg | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/switch-configs/vocsw.cfg b/switch-configs/vocsw.cfg index 54b24e3..6a7cd85 100644 --- a/switch-configs/vocsw.cfg +++ b/switch-configs/vocsw.cfg @@ -22,7 +22,7 @@ name "video" # vlan 104 name "overflow" -# +# # # # @@ -37,56 +37,86 @@ enable password @PW@ # system-time ntp UTC+08:00 133.100.9.2 139.78.100.163 12 # +spanning-tree +spanning-tree mode mstp +# # user name admin privilege admin password 0 @PW@ # # +no ip http server # # # # # -interface gigabitEthernet 1/0/1 +snmp-server +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 traps flash +snmp-server traps cpu +snmp-server traps memory +# +interface gigabitEthernet 1/0/1 switchport mode trunk switchport trunk allowed vlan 2,50,100-104 description "coresw/trunk" + spanning-tree + spanning-tree common-config portfast enable # interface gigabitEthernet 1/0/2 switchport mode trunk switchport trunk allowed vlan 100-104 description "f2sw/trunk" + spanning-tree # interface gigabitEthernet 1/0/3 switchport mode trunk switchport trunk allowed vlan 2,50,100-104 description "nocsw/trunk" + spanning-tree # interface gigabitEthernet 1/0/4 shutdown + spanning-tree + spanning-tree common-config portfast enable # interface gigabitEthernet 1/0/5 switchport mode trunk switchport trunk allowed vlan 100,102-103 + spanning-tree + spanning-tree common-config portfast enable # interface gigabitEthernet 1/0/6 shutdown -# + spanning-tree + spanning-tree common-config portfast enable +# interface gigabitEthernet 1/0/7 switchport access vlan 103 description "video/bulgaria" + spanning-tree + spanning-tree common-config portfast enable # interface gigabitEthernet 1/0/8 shutdown + spanning-tree + spanning-tree common-config portfast enable # interface gigabitEthernet 1/0/9 speed 1000 duplex full shutdown + spanning-tree + spanning-tree common-config portfast enable # interface gigabitEthernet 1/0/10 speed 1000 duplex full shutdown + spanning-tree + spanning-tree common-config portfast enable # ip management-vlan 100 interface vlan 100 @@ -94,7 +124,7 @@ ip address 10.100.0.12 255.255.255.0 # # line vty 0 0 -password @PW@ +password @PW@ login # line vty 1 1