Сообщения

JunOS MPLS over GRE

Два маршрутизатора R1 и R2, между ними DWDM, иногда, в последнее время часто, падает из-за действий третьих лиц. Оба R1 и R2 подключены к MSK-IX, организуем GRE-туннель через общий VLAN в MSK-IX). R1> show configuration chassis fpc 0 {     pic 0 {         tunnel-services {             bandwidth 10g;         }     } } network-services enhanced-ip; R1> show configuration interfaces gr-0/0/0 unit 0 {     clear-dont-fragment-bit;     reassemble-packets;     tunnel {         source 195.208.209.321;         destination 195.208.208.123;         allow-fragmentation;     }     family inet {         mtu 9000;  ...

using pg_partman to help partitioning postgresql for zabbix

WARNINGS: PostgreSQL partitioning is not supported by Zabbix SIA technical support Changing partition configuration on existing datasets requires a great deal of care and is not recommended for newbies. The Zabbix server and web server should be stopped when making changes to DB. There are some solutions in Internet, but I have used my own with help of pg_partman - pg_partman is an extension to create and manage both time-based and serial-based table partition sets. These scripts cater for partitioning any Zabbix tables that include the clock column. Partitioning is recommended for large tables such as history* , trends* and events where the data size might exceed total physical RAM. When selecting a partitioning interval, try find a balance between minimising the number of partitions (e.g. use yearly or monthly), preventing empty partitions and preventing partition size from exceeding total physical RAM. For current version of pg_partman (>= 3.0.0): -- Create m...

JunOS BNG SCU

Занимался задачей "переезда" с устаревших juniper e-series (E120/E320) на новые mx480. На Е-шках были реализованы тарифы с дифференцированными скоростями доступа к локальным ресурсам и в сеть Интернет. Реализация немного необычная - маршруты, которые BRAS получает по BGP с бордера считаются внутренними ресурсами,  нет никаких статических prefix-list или acl! Реализовано это следующим образом: внутренний трафик "красится" в user-packet-class 5 на входном интерфейсе, эта метка используется в service-management профилях route-map "RM-localAS-bgp" permit 10 match ip address prefix-list "DEFAULT_ROUTE" set route-class 0 ! route-map "RM-localAS-bgp" permit 20 set route-class 50 ! router bgp 65500 table-map "RM-localAS-bgp" ! ... ip classifier-list "CL-local_AS-src" source-route-class 50 ip any any ! ip policy-list " POL-uplink " classifier-group " CL-local_AS-src " precedence 1000 ...

Junos OS EZQoS on EX Series switches

Коммутаторы Juniper EX поставляются с готовым достаточно удобными шаблоном CoS, предусмотренны классы для:VoIP, video и data. Но шаблон не активирован, а активировать просто: configure load merge /etc/config/ezqos-voip.conf set apply-groups ezqos-voip # применяем настройки качества обслуживания к портам set class-of-service interfaces ge-0/0/* scheduler-map ezqos-voip-sched-maps set class-of-service interfaces ge-0/0/* unit * classifiers dscp ezqos-dscp-classifier Пример фильтра для приоритезаци и трафика видеонаблюдения set firewall family ethernet-switching filter FL-VIDEO_SURVEILLANCE term video_surveillance then forwarding-class ezqos-video-fc set firewall family ethernet-switching filter FL-VIDEO_SURVEILLANCE term video_surveillance then loss-priority low set vlans VIDEO_SURVEILLANCE vlan-id 102 # применяем фильтр к VLAN'у  set vlans VIDEO_SURVEILLANCE filter input FL-VIDEO_SURVEILLANCE  

Скрипт для удаления зависших сессий на BRAS Juniper E-Series

На  Juniper E-Series постоянно зависают сессии, естественно, что они потребляют ресурсы - память и т.д. Когда их становится много, сервисная плата может перезагрузиться. Поэтому я написал скрипт, который заходит telnet'ом на BRAS'ы и удаляет зависшие сессии, запускается из cron. Странно, почему в Juniper не сделали это автоматом.

Соответствие MPLS-терминов Cisco и Juniper

Cisco Affinities <> Juniper Admin-Groups Cisco Autoroute Announce <> Juniper TE Shortcuts Cisco Forwarding Adjacency <> Juniper LSP-Advertise Cisco Tunnel <> Juniper LSP Cisco Make-Before-Break <> Juniper Adaptive Cisco Application-Window <> Juniper Adjust-Interval Cisco Shared Risk Link Groups <> Juniper Fate-Sharing