воскресенье, 7 апреля 2013 г.

LSI под VMware

Для управления RAID контроллерами LSI под VMware надо юзать утилиту MegaCli (StorCli). Ставить пакет vib прямо на хост - другие методы либо не работают, либо обрезан функционал - MegaRAID Storage Manager удалось запустить только с прокси по этой схеме http://alex-at.ru/it/lsi-vmware-esxi-1 и его функционал довольно обрезан :(

воскресенье, 24 марта 2013 г.

D-Link DES-3200-26 A1 startup config

create account admin admin


enable password encryption
config terminal_line default
disable clipaging
disable command logging
disable password_recovery


config traffic control_trap both
config traffic control 1-24 broadcast enable multicast enable unicast enable action drop threshold 64 countdown 0 time_interval 5
config traffic control 25-26 broadcast disable multicast disable unicast disable action drop threshold 64 countdown 0 time_interval 5


enable loopdetect
config loopdetect recover_timer 60
config loopdetect interval 10
config loopdetect mode port-based
config loopdetect trap both
config loopdetect ports 1-24 state enabled
config loopdetect ports 25-26 state disabled


enable syslog
create syslog host 1 ipaddress 192.168.3.9 severity all facility local0 udp_port 514 state enable
config log_save_timing on_demand



#PRAVIT!!!

enable jumbo_frame
config ports 1-26 speed auto flow_control disable state enable clear_description
config ports 1-26 learning enable
config ports 1-26 mdix auto
config ports 25-26 medium_type fiber speed auto flow_control disable state enable clear_description
config ports 25-26 medium_type fiber learning enable


# OAM POSMOTRI!!!


config ddm trap enable
config ddm log enable
config ddm ports 25-26 state enable shutdown alarm





enable snmp traps
enable snmp authenticate_traps
enable snmp linkchange_traps
config snmp linkchange_traps ports 25-26 enable
config snmp linkchange_traps ports 1-24 disable
config snmp system_name SCV
config snmp system_location
config snmp system_contact core
disable rmon



delete snmp community public
delete snmp community private
delete snmp user initial
delete snmp group initial
delete snmp view restricted all
delete snmp view CommunityView all
delete snmp group public
delete snmp group private
delete snmp group ReadGroup
delete snmp group WriteGroup
create snmp view test 1 view_type included
create snmp view test 1.3.6.1.4.1.171.12.1.2.1.1 view_type included
create snmp view restricted 1.3.6.1.2.1.1 view_type included
create snmp view restricted 1.3.6.1.2.1.11 view_type included
create snmp view restricted 1.3.6.1.6.3.10.2.1 view_type included
create snmp view restricted 1.3.6.1.6.3.11.2.1 view_type included
create snmp view restricted 1.3.6.1.6.3.15.1.1 view_type included
create snmp view CommunityView 1 view_type included
create snmp view CommunityView 1.3.6.1.6.3 view_type excluded
create snmp view CommunityView 1.3.6.1.6.3.1 view_type included
create snmp group public v2c read_view CommunityView notify_view CommunityView
create snmp group initial v3 noauth_nopriv read_view restricted notify_view restricted
create snmp group private v2c read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp group ReadGroup v1 read_view CommunityView notify_view CommunityView
create snmp group ReadGroup v2c read_view CommunityView notify_view CommunityView
create snmp group COMMUNITY!!! v1 read_view CommunityView notify_view CommunityView
create snmp group COMMUNITY!!! v2c read_view CommunityView notify_view CommunityView
create snmp group WriteGroup v1 read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp group WriteGroup v2c read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp group my_community v1 read_view test write_view test notify_view test
create snmp group my_community v2c read_view test write_view test notify_view test
create snmp community COMMUNITY!!! view CommunityView read_only
create snmp user initial initial
create snmp host 192.168.3.4 v2c COMMUNITY!!!
disable community_encryption


config vlan default delete 1-26
config vlan default advertisement enable
create vlan admins2 tag 508
config vlan admins2 add tagged 25-26
create vlan IPOE-GUEST-Z60 tag 2202
config vlan IPOE-GUEST-Z60 add tagged 25
config vlan IPOE-GUEST-Z60 add untagged 4-7,16,21
!!!create vlan IPOE-Z60-6 tag 3025
!!!config vlan IPOE-Z60-6 add tagged 25
!!!config vlan IPOE-Z60-6 add untagged 1-3,8-15,17-20,22-24
disable qinq
disable gvrp

# BPDU_PROTECTION

enable bpdu_protection
config bpdu_protection recovery_timer 300
config bpdu_protection ports 1-24 state enable
config bpdu_protection ports 1-26 mode drop



# SAFEGUARD_ENGINE !!!

config safeguard_engine state disable utilization rising 30 falling 20 trap_log disable mode fuzzy




enable dhcp_local_relay
config dhcp_local_relay option_82 circuit_id default
config dhcp_local_relay option_82 remote_id default
config dhcp_local_relay vlan vlanid 2202 state enable
config dhcp_local_relay vlan vlanid 3025 state enable
config dhcp_local_relay option_82 ports 1-24 policy replace
config dhcp_local_relay option_82 ports 25-26 policy keep




create iproute default 192.168.4.5 1