faq обучение настройка
Текущее время: Сб авг 09, 2025 07:56

Часовой пояс: UTC + 3 часа




Начать новую тему Ответить на тему  [ Сообщений: 11 ] 
Автор Сообщение
СообщениеДобавлено: Вт окт 26, 2010 19:08 
Не в сети

Зарегистрирован: Вс мар 13, 2005 00:14
Сообщений: 46
Откуда: St.Petersburg
Device Type DES-3526 Fast-Ethernet Switch
Boot PROM Version 5.00.009
Firmware Version 6.00.B43
Hardware Version 3A1

Со свича идет в среднем 3к пакетов, всплесками до 5к. Периодически пинги становятся большими:
Код:
Ответ от 10.25.4.3: число байт=32 время=50мс TTL=29
Ответ от 10.25.4.3: число байт=32 время=64мс TTL=29
Ответ от 10.25.4.3: число байт=32 время=8мс TTL=29
Ответ от 10.25.4.3: число байт=32 время=58мс TTL=29
Ответ от 10.25.4.3: число байт=32 время=23мс TTL=29
Ответ от 10.25.4.3: число байт=32 время=66мс TTL=29
Ответ от 10.25.4.3: число байт=32 время=96мс TTL=29

иногда до 100+мс

И иногда он вообще перестает пинговаться, потом восстанавливается.
Но восстанавливается ИМХО хитро: мы используем IMPB + DHCP snoop, на одном из портов этого свича живет роутер TP-Link, который при стухании лизы от ДХЦП сервера почему-то пытается ее обновить, но с другого ИП, а именно такая картина в логах всплывает:
Код:
Unauthenticated IP-MAC address and discarded by ip mac port binding (IP: 192.168.1.100, MAC: 00-23-CD-DA-5B-F7, port: 1)

соответственно на какое-то время порт блочится и ~2к пакетов с этого порта перестают проходить через свич (ему становится легче) и и свич начинает пинговатся. Незнаю плохо ли хорошо, но бывает так, что его интерфейс восстанавливается не сразу и следовательно абонентский роутер продолжает висеть в blocked (так же как и остальные абоненты с этого свича потом постепенно блочатся), ибо свич достучатся до DHCP сервера не может (включен DHCP Relay).

В чем косяк? В том, что свичу не нравится PPS или в IMPB+DHCP Snooping+DHCP Relay?

Конфиг свича:
Код:
#-------------------------------------------------------------------
#                       DES-3526 Configuration
#
#                       Firmware: Build 6.00.B43
#        Copyright(C) 2008 D-Link Corporation. All rights reserved.
#-------------------------------------------------------------------

# BASIC
config serial_port baud_rate 9600 auto_logout 10_minutes
enable telnet 23
enable web 80
config terminal_line default
enable clipaging
debug error_log auto_reboot enabled

# ACCOUNT LIST
create account admin admin encrypt sha_1 *@&kwv3AcM2rIj/L24iI1bju1232YAAO+

# PASSWORD ENCRYPTION
enable password encryption

# BNR
config command_prompt default

# STORM
config traffic control_trap none
config traffic control 1-5 broadcast disable multicast disable unicast disable action drop threshold 128000

# LOOP_DETECT
enable loopdetect
config loopdetect recover_timer 60
config loopdetect interval 10
config loopdetect mode port-based
config loopdetect ports 1-26 state enabled

# GM
config sim candidate
disable sim
config sim dp_interval 30
config sim hold_time 100

# SYSLOG
disable syslog
config system_severity trap information
config system_severity log information

# QOS
config scheduling 0 max_packet 0 max_latency 0
config scheduling 1 max_packet 0 max_latency 0
config scheduling 2 max_packet 0 max_latency 0
config scheduling 3 max_packet 0 max_latency 0
config 802.1p user_priority 0  1
config 802.1p user_priority 1  0
config 802.1p user_priority 2  0
config 802.1p user_priority 3  1
config 802.1p user_priority 4  2
config 802.1p user_priority 5  2
config 802.1p user_priority 6  3
config 802.1p user_priority 7  3
config 802.1p default_priority 1-26 0
config bandwidth_control 1-26 rx_rate no_limit tx_rate no_limit

# MIRROR
disable mirror

# TRAF-SEGMENTATION
config traffic_segmentation 1-26 forward_list 1-26

# PORT
config ports 1-24 speed auto flow_control enable mdix auto learning enable state enable trap enable
config ports 25-26 medium_type copper speed auto flow_control disable mdix auto learning enable state enable trap enable
config ports 25-26 medium_type fiber speed auto flow_control disable learning enable state enable trap enable

# PORT_LOCK
disable port_security trap_log
config port_security ports 1-26 admin_state disable max_learning_addr 1 lock_address_mode DeleteOnReset

# 8021X
disable 802.1x
config 802.1x auth_protocol radius_eap
config 802.1x capability ports 1-26 none
config 802.1x auth_parameter ports 1-26 direction both port_control auto quiet_period 60 tx_period 30 supp_timeout 30 server_timeout 30 max_req 2 reauth_period 3600 enable_reauth disable

# SNMPv3
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
config snmp engineID 800000ab0300179a05659f
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 v1 read_view CommunityView notify_view CommunityView
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 v1 read_view CommunityView write_view CommunityView notify_view CommunityView
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 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 community private view CommunityView read_write
create snmp community public view CommunityView read_only
create snmp user initial initial

# MANAGEMENT
enable snmp traps
enable snmp authenticate traps
config snmp system_name Derpski-011
disable rmon

# VLAN
disable asymmetric_vlan
config vlan default delete 1-26
config vlan default add untagged 1-26
config vlan default advertisement enable
disable gvrp
config gvrp 1-26 state disable ingress_checking enable acceptable_frame admit_all pvid 1

# FDB
config fdb aging_time 300
config multicast port_filtering_mode 1-26 forward_unregistered_groups

# MAC_ADDRESS_TABLE_NOTIFICATION
config mac_notification interval 1 historysize 1
disable mac_notification
config mac_notification ports 1-26 disable

# STP
config stp version rstp
config stp maxage 20 maxhops 20 forwarddelay 15 txholdcount 6 fbpdu enable
config stp priority 32768 instance_id 0
config stp hellotime 2
config stp mst_config_id name 00:17:9A:05:65:9F revision_level 0
disable stp
config stp ports 1-26 externalCost auto edge false p2p auto state enable
config stp ports 1-26 fbpdu disable
config stp ports 1-26 restricted_role false
config stp ports 1-26 restricted_tcn false
config stp mst_ports 1-26 instance_id 0 internalCost auto priority 128

# SSH
config ssh server maxsession 8
config ssh server contimeout 300
config ssh server authfail 2
config ssh server rekey never
config ssh server port 22
disable ssh

# SSL
disable ssl
enable ssl ciphersuite RSA_with_RC4_128_MD5
enable ssl ciphersuite RSA_with_3DES_EDE_CBC_SHA
enable ssl ciphersuite DHE_DSS_with_3DES_EDE_CBC_SHA
enable ssl ciphersuite RSA_EXPORT_with_RC4_40_MD5
config ssl cachetimeout timeout 600

# SAFE_GUARD
config safeguard_engine state enable cpu_utilization rising_threshold 100 falling_threshold 20 trap_log disable

# TIMERANGE

# security_ACL
create access_profile ip udp src_port_mask 0xFFFF profile_id 20
config access_profile profile_id 20 add access_id 1 ip udp src_port 67 port 1 deny
config access_profile profile_id 20 add access_id 2 ip udp src_port 67 port 2 deny
config access_profile profile_id 20 add access_id 3 ip udp src_port 67 port 3 deny
config access_profile profile_id 20 add access_id 4 ip udp src_port 67 port 4 deny
config access_profile profile_id 20 add access_id 5 ip udp src_port 67 port 5 deny
config access_profile profile_id 20 add access_id 6 ip udp src_port 67 port 6 deny
config access_profile profile_id 20 add access_id 7 ip udp src_port 67 port 7 deny
config access_profile profile_id 20 add access_id 8 ip udp src_port 67 port 8 deny
config access_profile profile_id 20 add access_id 9 ip udp src_port 67 port 9 deny
config access_profile profile_id 20 add access_id 10 ip udp src_port 67 port 10 deny
config access_profile profile_id 20 add access_id 11 ip udp src_port 67 port 11 deny
config access_profile profile_id 20 add access_id 12 ip udp src_port 67 port 12 deny
config access_profile profile_id 20 add access_id 13 ip udp src_port 67 port 13 deny
config access_profile profile_id 20 add access_id 14 ip udp src_port 67 port 14 deny
config access_profile profile_id 20 add access_id 15 ip udp src_port 67 port 15 deny
config access_profile profile_id 20 add access_id 16 ip udp src_port 67 port 16 deny
config access_profile profile_id 20 add access_id 17 ip udp src_port 67 port 17 deny
config access_profile profile_id 20 add access_id 18 ip udp src_port 67 port 18 deny
config access_profile profile_id 20 add access_id 19 ip udp src_port 67 port 19 deny
config access_profile profile_id 20 add access_id 20 ip udp src_port 67 port 20 deny
config access_profile profile_id 20 add access_id 21 ip udp src_port 67 port 21 deny
config access_profile profile_id 20 add access_id 22 ip udp src_port 67 port 22 deny
config access_profile profile_id 20 add access_id 23 ip udp src_port 67 port 23 deny
config access_profile profile_id 20 add access_id 24 ip udp src_port 67 port 24 deny
config access_profile profile_id 20 add access_id 25 ip udp src_port 67 port 25 permit
config access_profile profile_id 20 add access_id 26 ip udp src_port 67 port 26 permit

config address_binding ip_mac ports 1-24 state enable
enable address_binding dhcp_snoop
enable dhcp_local_relay
enable address_binding acl_mode
config pppoe circuit_id_insertion state disable

# ACL
disable cpu_interface_filtering

# SNTP
enable sntp
config time_zone operator + hour 3 min 0
config sntp primary 192.168.0.222 secondary 192.168.0.223 poll-interval 720
config dst disable

# IPBIND
config address_binding ip_mac ports 1-24 allow_zeroip enable
enable address_binding trap_log
config address_binding dhcp_snoop inactive_ageout_time 1
config address_binding dhcp_snoop max_entry ports 1-26 limit 5

# FILTER

# PPPoE_Circuit_ID_Insertion
config pppoe circuit_id_insertion ports 1-26 state enable circuit_id ip

# ROUTE
create iproute default 10.25.4.1 1

# SNOOP
enable igmp_snooping
create igmp_snooping multicast_vlan IPTV 2000
config igmp_snooping multicast_vlan IPTV state enable replace_source_ip 10.255.255.105 member_port 1-24 source_port 25-26
config igmp_snooping IPTV host_timeout 260 router_timeout 260 leave_timer 2 state enable
config igmp_snooping querier IPTV query_interval 125 max_response_time 10 robustness_variable 2
config igmp_snooping querier IPTV last_member_query_interval 1 state disable
config router_ports default add 26
config router_ports_forbidden default add 1-25
create multicast_range iptv_all from 224.200.202.0 to 224.200.202.255
config limited_multicast_addr ports 1-26 add multicast_range iptv_all
config limited_multicast_addr ports 1-26 access permit state enable

# LACP
config link_aggregation algorithm mac_source
config lacp_port 1-26 mode passive

# GVLAN

# IP
config ipif System vlan default ipaddress 10.25.4.3/24 state enable
disable autoconfig
config autoconfig timeout 50
config ipif System dhcp_option12 state disable

# ARP
config arp_aging time 20
config gratuitous_arp send ipif_status_up enable
config gratuitous_arp send dup_ip_detected enable
config gratuitous_arp learning enable

# LLDP
disable lldp
config lldp message_tx_interval 30
config lldp tx_delay 2
config lldp message_tx_hold_multiplier 4
config lldp reinit_delay 2
config lldp notification_interval 5
config lldp ports 1-26 notification disable
config lldp ports 1-26 admin_status tx_and_rx

# ACCESS_AUTHENTICATION_CONTROL
config authen_login default method local
config authen_enable default method local_enable
config authen application console login default
config authen application console enable default
config authen application telnet login default
config authen application telnet enable default
config authen application ssh login default
config authen application ssh enable default
config authen application http login default
config authen application http enable default
config authen parameter response_timeout 0
config authen parameter attempt 3
config authen enable_admin all state enable
disable authen_policy

# DHCP_RELAY
enable dhcp_relay
config dhcp_relay hops 4 time 0
config dhcp_relay option_82 state enable
config dhcp_relay option_82 check disable
config dhcp_relay option_82 policy keep
config dhcp_relay option_82 remote_id default
config dhcp_relay option_60 state disable
config dhcp_relay option_60 default mode drop
config dhcp_relay option_61 state disable
config dhcp_relay option_61 default drop
config dhcp_relay add ipif System 192.168.0.10

# DHCP_LOCAL_RELAY
config dhcp_local_relay option_82 ports 1-26 policy replace

З.Ы. IPTV пока не работает, т.е. влиять не может. И все PPS, которые я писал - это unicast


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Вт окт 26, 2010 20:21 
Не в сети

Зарегистрирован: Сб ноя 03, 2007 15:24
Сообщений: 164
а Safeguard Engine Status включено?

логи покажите.


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Вт окт 26, 2010 21:35 
Не в сети

Зарегистрирован: Вс мар 13, 2005 00:14
Сообщений: 46
Откуда: St.Petersburg
(из конфига, приведенного выше)
Цитата:
# SAFE_GUARD
config safeguard_engine state enable cpu_utilization rising_threshold 100 falling_threshold 20 trap_log disable


Или Safeguard Engine Status это не то? В любом случае я привел полный вывод команды show config current_config, так что все, что может быть включено/выключено в нем отражено.

в логах только такие сообщения:
Код:
Unauthenticated IP-MAC address and discarded by ip mac port binding (IP: 192.168.1.100, MAC: 00-23-CD-DA-5B-F7, port: 1)


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Вт окт 26, 2010 21:44 
Не в сети

Зарегистрирован: Вт июн 17, 2008 18:59
Сообщений: 1203
Откуда: Минск, Беларусь
загрузка ЦПУ какая?

выносите управление в отдельный vlan?..

_________________
Это текст, который можно добавлять к размещаемым вами сообщениям. Длина его ограничена 255 символами.


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Вт окт 26, 2010 22:53 
Не в сети

Зарегистрирован: Сб ноя 03, 2007 15:24
Сообщений: 164
пардон, не заметил :(


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Ср окт 27, 2010 10:15 
Не в сети

Зарегистрирован: Вс мар 13, 2005 00:14
Сообщений: 46
Откуда: St.Petersburg
Загрузку к сожалению не смотрел, сегодня как симптомы повторятся - обязательно посмотрю. И попробую в отдельный vlan вынести управление


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Ср окт 27, 2010 10:33 
Не в сети

Зарегистрирован: Сб ноя 03, 2007 15:24
Сообщений: 164
ты не пробуй, а сделай. все равно рано или поздно это будет необходимо.


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Ср окт 27, 2010 17:02 
Не в сети

Зарегистрирован: Вс мар 13, 2005 00:14
Сообщений: 46
Откуда: St.Petersburg
С выносом управления в отдельный влан решил повременить (других дел было море). Но кое какую доп. инфу я собрал:

Изображение

Изображение

Изображение

Как оказалось, сообщение в логах от некоего рутера, который криво делает Renew отношения к делу не имеют, ибо он на другом порту свича (не доглядел вчера).

Вобщем как на 4м порту растут "Drop Pkts" сразу имеем проседание по пингам и по загрузке свича, а так же по кол-во PPS на выходе из свича (26 порт). Но, абонент с первого порта продолжает замечательно пинговаться, как ни в чем не бывало. Скажите - "Drop Pkts" - эткуда они растут? Косячное железа у абонента?

Так же в логах вижу теперь (т.к. включил логирование safeguard'а):
Код:
88   2010/10/27 17:28:40   SafeGuard Engine enters EXHAUSTED mode
87   2010/10/27 17:28:20   SafeGuard Engine enters NORMAL mode


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Ср окт 27, 2010 18:06 
Не в сети

Зарегистрирован: Вс мар 13, 2005 00:14
Сообщений: 46
Откуда: St.Petersburg
Вариант косячности именно этого свича отпадает - то же самое замечано и на другом свиче, только тут не появляются дропы на порту. Значит как только кто-то с этого свича решает отпраить команду DHCP серверу - тут же проявляется 100% загрузка процессора этого же свича.


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Чт окт 28, 2010 11:15 
Не в сети

Зарегистрирован: Сб ноя 03, 2007 15:24
Сообщений: 164
отложил вариант с управляющим вланом, теперь мучайся.
загрузка свича растет потому что пакетики доходят до ЦПУ, перестанут долетать до него и не будет такой загрузки и пинги будут нормальные.

выноси управление в отдельный влан!!!


Вернуться наверх
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Чт окт 28, 2010 17:00 
Не в сети

Зарегистрирован: Вс мар 13, 2005 00:14
Сообщений: 46
Откуда: St.Petersburg
Ну вроде все устаканилось :) Спасибо!
Вынес интерфейс управляющий в отдельный влан + понял, что IMPB с DHCP Relay были настроены криво. Теперь и на DHCP сервер запросы не плодятся, а четко по одному приходит. Вобщем все куль!


Вернуться наверх
 Профиль  
 
Показать сообщения за:  Сортировать по:  
Начать новую тему Ответить на тему  [ Сообщений: 11 ] 

Часовой пояс: UTC + 3 часа


Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 8


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
Создано на основе phpBB® Forum Software © phpBB Group
Русская поддержка phpBB