LACP juniper ex3300 mikrotik CCR

Материал из xapmc.net
Перейти к: навигация, поиск
Задача
Настроить агрегирование физических каналов между juniper ex3300 и mikrotik CCR
Решение
Воспользуемся протоколом LACP для объединения физических портов в один логический порт с балансировкой по MAC.
Оборудование, которым располагаем
Вендор Модель
1. juniper ex 3300
2. mikrotik CCR1036-8G-2S+EM
Схема сети

LACP juniper ex 3300 mikrotik CCR.png

Настройка
juniper ex 3300
set vlans vlan3 vlan-id 3
set vlans vlan3 l3-interface vlan.3
set interfaces vlan unit 3 family inet address 192.168.1.2/24
set interfaces ae2 description mikrotik_CCR
set interfaces ae2 mtu 1522
set interfaces ae2 aggregated-ether-options lacp active
set interfaces ae2 aggregated-ether-options lacp periodic fast
set interfaces ae2 unit 0 family ethernet-switching port-mode trunk
set interfaces ae2 unit 0 family ethernet-switching vlan members vlan3

delete interfaces ge-0/0/4 unit 0
set interfaces ge-0/0/4 ether-options 802.3ad ae2
delete interfaces ge-0/0/5 unit 0
set interfaces ge-0/0/5 ether-options 802.3ad ae2
commit
mikrotik CCR1036-8G-2S+EM
/interface bonding
add mode=802.3ad mtu=1522 name=lacp_eth2_eth3 slaves=ether2,ether3
/interface vlan
add interface=lacp_eth2_eth3 name=vlan3 vlan-id=3
/ip address
add address=192.168.1.66/24 interface=vlan3 network=192.168.1.0
Проверка
juniper ex 3300
run show lacp statistics interfaces ae2
Aggregated interface: ae2
    LACP Statistics:       LACP Rx     LACP Tx   Unknown Rx   Illegal Rx
      ge-0/0/4                1319         266            0            0
      ge-0/0/5                1318         260            0            0
run show lacp interfaces ae2
Aggregated interface: ae2
    LACP state:       Role   Exp   Def  Dist  Col  Syn  Aggr  Timeout  Activity
      ge-0/0/4       Actor    No    No   Yes  Yes  Yes   Yes     Fast    Active
      ge-0/0/4     Partner    No    No   Yes  Yes  Yes   Yes     Slow    Active
      ge-0/0/5       Actor    No    No   Yes  Yes  Yes   Yes     Fast    Active
      ge-0/0/5     Partner    No    No   Yes  Yes  Yes   Yes     Slow    Active
    LACP protocol:        Receive State  Transmit State          Mux State
      ge-0/0/4                  Current   Slow periodic Collecting distributing
      ge-0/0/5                  Current   Slow periodic Collecting distributing
run ping 192.168.1.66
PING 192.168.1.66 (192.168.1.66): 56 data bytes
64 bytes from 192.168.1.66: icmp_seq=0 ttl=64 time=7.074 ms
64 bytes from 192.168.1.66: icmp_seq=1 ttl=64 time=1.419 ms
64 bytes from 192.168.1.66: icmp_seq=2 ttl=64 time=1.401 ms
^C
--- 192.168.1.66 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.401/3.298/7.074/2.670 ms
Готово