В данной статье разобран пример конфигурации MC-LAG между R2 и R4 в сторону R1 , использована следующая схема сети:
На маршрутизаторе R1 создаем bundle-ether интерфейс и включим в него tengigabitethernet 0/0/1 (линк в сторону R2) и tengigabitethernet 0/0/4 (линк в сторону R4) и назначаем на него ip адрес.
interface bundle-ether 1 ipv4 address 10.0.0.0/31 exit lacp interface bundle-ether 1 exit interface tengigabitethernet 0/0/1 bundle id 1 bundle mode active exit interface tengigabitethernet 0/0/4 bundle id 1 bundle mode active exit exit
На маршрутизаторах R2 и R4 необходимо настроить redundancy-group и создать bundle-ether
Интерфейсы tengigabitethernet 0/0/32 будут использованы для согласования маршрутизаторов R2 и R4
interface bundle-ether 1 ipv4 address 10.0.0.1/31 exit interface tengigabitethernet 0/0/32 ipv4 address 10.0.0.10/31 exit lacp interface bundle-ether 1 mclag-base-priority 10 mclag-rg-id 1 <-----------Привязка bundle-ether к redundancy-groups exit interface tengigabitethernet 0/0/1 bundle id 1 bundle mode active port-priority 1000 exit redundancy-groups redundancy-group 1 <----------- Номер группы. Должен быть одинаковым между двумя устройствами. node-id 1 <-----------Уникальный ID в пределах redundancy-group, должен отличаться от node-id указанного на R4 system-mac-addr 0a:1b:2c:3d:4e:12 <----------- Команда позволяет сменить системный mac-адрес для LACPDU на произвольный, mac-адреса должны совпадать на обоих маршрутизаторах. system-priority 10 exit exit redundancy-groups redundancy-group 1 <----------- Номер группы. Должен быть одинаковым между двумя устройствами. member-id 10000001 redundancy-group-member-list redundancy-group-member 10000002 <-----------member-id R2 local-port 20000 <----------- Произвольный свободный порт remote-address 10.0.0.11 <-----------Адрес tengigabitethernet 0/0/32 R4 remote-port 20000 <----------- Local-port указанный на маршрутизаторе R4 exit exit
interface bundle-ether 1 ipv4 address 10.0.0.1/31 exit interface tengigabitethernet 0/0/32 ipv4 address 10.0.0.11/31 exit lacp interface bundle-ether 1 mclag-base-priority 20 mclag-rg-id 1 <-----------Привязка bundle-ether к redundancy-groups exit interface tengigabitethernet 0/0/1 bundle id 1 bundle mode active port-priority 1000 exit redundancy-groups redundancy-group 1 <----------- Номер группы. Должен быть одинаковым между двумя устройствами. node-id 2 <-----------Уникальный ID в пределах redundancy-group, должен отличаться от node-id указанного на R2 system-mac-addr 0a:1b:2c:3d:4e:12 <----------- Команда позволяет сменить системный mac-адрес для LACPDU на произвольный, mac-адреса должны совпадать на обоих маршрутизаторах. system-priority 100 exit exit redundancy-groups redundancy-group 1 <----------- Номер группы. Должен быть одинаковым между двумя устройствами. member-id 10000002 redundancy-group-member-list redundancy-group-member 10000001 <-----------member-id R4 local-port 20000 <----------- Произвольный свободный порт remote-address 10.0.0.10 <-----------Адрес tengigabitethernet 0/0/32 R2 remote-port 20000 <----------- Local-port указанный на маршрутизаторе R2 exit exit
Проверка состояния:
На R2 командой 'show lacp bundle-ether 1' проверить состояние LAG, при этом:
0/ME5100:R2# show lacp bundle-ether 1 Tue Oct 25 04:14:42 2022 Bundle-Ether 1, up Bundle OS index 65 Bundle MAC 0a:1b:2c:3d:4e:12 Aggregation status up Load balance type hash MC-LAG information: Redundancy group 1 Current port priority 10 Role of device active (local-best) BFD Information: Status disabled Source IP none Destination IP none Multiplier 2 Tx interval 100 ms Rx interval 100 ms Local information: Port State Port ID System ID ------------------- -------------------------- ------------- -------------------------- te0/0/1 collecting-distributing 10.36866 32768.e0:d9:e3:ff:60:c0 Flags: A - Port is in active mode. P - Port is in passive mode. S - Port sends PDUs at slow rate. F - Port sends PDUs at fast rate. U - Port is aggregated. Y - Port is synchronized C - Port is collecting. D - Port is distributing T - Port is using default values for partner information E - Information about partner has expired Partner's information: Port TX state Port ID System ID ------------------- --------- ------------- -------------------------- te0/0/1 PUYCD 32768.2 32768.e0:d9:e3:ff:60:a0 MC-LAG: Mbr-id Bundle MAC Partner MAC Bundle info Partner info Group/Bundle Status --------- ----------------------- ----------------------- ------------ ------------- -------------------- 10000002 0a:1b:2c:3d:4e:12 e0:d9:e3:ff:60:a0 rcvd rcvd synchronized/synchronized Aggregation status table: Port Aggregation ------------------- ------------ te0/0/1 on
Роль "Role of device" узла должна быть - "active (local-best)", означает что R2 выбран "мастером" в redundancy-group.
Состояние локального порта (Local information) te0/0/1 должно быть "collecting-distributing",
Получена информация от порта-партнёра (Partner's information) - te0/0/1 R1,
Получена информация от R4, партнёра по redundancy-group (MC-LAG):
- Bundle info = rcvd
- Partner info = rcvd
- Status = synchronized
Статус аггрегирования порта (Aggregation status table) te0/0/1 должен быть "on".
На R4 командой 'show lacp bundle-ether 1' проверить состояние LAG, при этом:
0/ME5200:R4_Pseudo_ME5100# show lacp bundle-ether 1 Tue Oct 25 10:37:21 2022 Bundle-Ether 1, up Bundle OS index 87 Bundle MAC 0a:1b:2c:3d:4e:12 Aggregation status mc-lag-standby Load balance type hash MC-LAG information: Redundancy group 1 Current port priority 20 Role of device standby (remote-best) BFD Information: Status disabled Source IP none Destination IP none Multiplier 2 Tx interval 100 ms Rx interval 100 ms Local information: Port State Port ID System ID ------------------- -------------------------- ------------- -------------------------- te0/0/1 waiting 20.40962 32768.e0:d9:e3:ff:47:00 Flags: A - Port is in active mode. P - Port is in passive mode. S - Port sends PDUs at slow rate. F - Port sends PDUs at fast rate. U - Port is aggregated. Y - Port is synchronized C - Port is collecting. D - Port is distributing T - Port is using default values for partner information E - Information about partner has expired Partner's information: Port TX state Port ID System ID ------------------- --------- ------------- -------------------------- te0/0/4 PUY 32768.5 32768.e0:d9:e3:ff:60:a0 MC-LAG: Mbr-id Bundle MAC Partner MAC Bundle info Partner info Group/Bundle Status --------- ----------------------- ----------------------- ------------ ------------- -------------------- 10000001 0a:1b:2c:3d:4e:12 e0:d9:e3:ff:60:a0 rcvd rcvd synchronized/synchronized Aggregation status table: Port Aggregation ------------------- ------------ te0/0/1 off
Роль "Role of device" узла должна быть - "standby (remote-best)", означает что R4 выбран "подчинённым" в redundancy-group
Состояние локального порта (Local information) te0/0/32 должно быть "waiting",
Получена информация от порта-партнёра (Partner's information) - te0/0/4 R1,
Получена информация от R2, партнёра по redundancy-group (MC-LAG):
- Bundle info = rcvd
- Partner info = rcvd
- Status = synchronized
Статус аггрегирования порта te0/0/1 должен быть "off".