Конфигурация MC-LAG
Эта глава содержит полный пример настройки Multi-Chassis Link Aggregation (MC-LAG).
MC-LAG (также называемый DRNI, Distributed Resilient Network Interconnect) расширяет концепцию агрегации каналов, предоставляя отказоустойчивость на уровне узлов, позволяя двум или более узлам делить общий LAG-терминал. MC-LAG эмулирует несколько узлов, представляя их как единый логический узел для удаленного узла, использующего агрегацию каналов. В результате, даже если один из узлов выходит из строя, существует путь для достижения назначения через другие узлы.
Примечание: MC-LAG совместим только с RSTP VLAN-aware bridge или bridge с отключенным spanning tree.
Примечание: Все узлы MC-LAG должны иметь одинаковый размер MAC-таблицы, как указано в лимите профайла форвардинга ASIC каждого узла.
Динамическая конфигурация
Топология
Как показано на рисунке 8-43, коммутаторы 3 и 4 образуют домен MC-LAG. Коммутаторы 3 и 4 представляют собой единый логический коммутатор для коммутаторов 1 и 2. Даже если коммутатор 3 или 4 выходит из строя, существует путь для достижения других назначений.
Рисунок 8-43: Топология MC-LAG
Switch 1
(config)#bridge 1 protocol rstp vlan-bridge
(config)#vlan 2 bridge 1 state enable
(config)#interface po2
(config-if)#switchport
(config-if)#bridge-group 1
(config-if)#switchport mode trunk
(config-if)#switchport trunk allowed vlan all
(config-if)#exit
(config)#interface xe1
(config-if)#channel-group 2 mode active
(config-if)#exit
(config)#interface xe2
(config-if)#channel-group 2 mode active
(config-if)#exit
(config)#interface xe33
(config-if)#channel-group 2 mode active
(config-if)#exit
(config)#interface xe34
(config-if)#channel-group 2 mode active
(config-if)#exit
Switch 2
(config)#bridge 1 protocol rstp vlan-bridge
(config)#vlan 2 bridge 1 state enable
(config)#interface po1
(config-if)#switchport
(config-if)#bridge-group 1
(config-if)#switchport mode trunk
(config-if)#switchport trunk allowed vlan all
(config-if)#exit
(config)#interface xe5
(config-if)#channel-group 1 mode active
(config-if)#exit
(config)#interface xe6
(config-if)#channel-group 1 mode active
(config-if)#exit
(config)#interface xe7
(config-if)#channel-group 1 mode active
(config-if)#exit
(config)#interface xe8
(config-if)#channel-group 1 mode active
(config-if)#exit
Switch 3
(config)#bridge 1 protocol rstp vlan-bridge
(config)#vlan 2 bridge 1 state enable
(config)#interface po1
(config-if)#switchport
(config-if)#mlag 1
(config-if)#bridge-group 1
(config-if)#switchport mode trunk
(config-if)#switchport trunk allowed vlan all
(config-if)#exit
(config)#interface po2
(config-if)#switchport
(config-if)#mlag 2
(config-if)#bridge-group 1
(config-if)#switchport mode trunk
(config-if)#switchport trunk allowed vlan all
(config-if)#exit
(config)#interface xe9
(config-if)#channel-group 1 mode active
(config-if)#exit
(config)#interface xe57
(config-if)#channel-group 2 mode active
(config-if)#exit
(config)#interface xe58
(config-if)#channel-group 2 mode active
(config-if)#exit
(config)#interface xe10
(config-if)#channel-group 1 mode active
(config-if)#exit
(config)#mcec domain configuration
(config-mcec-domain)#domain-address 1111.2222.3333 <!---Адрес домена для домена mlag
(config-mcec-domain)#intra-domain link xe49 <!---Линия внутри домена между узлами mlag
(config-mcec-domain)#domain-system-number 1 <!---Номер для идентификации узла в домене
(config-mcec-domain)#exit
Switch 4
(config)#bridge 1 protocol rstp vlan-bridge
(config)#vlan 2 bridge 1 state enable
(config)#interface po1
(config-if)#switchport
(config-if)#mlag 1
(config-if)#bridge-group 1
(config-if)#switchport mode trunk
(config-if)#switchport trunk allowed vlan all
(config-if)#exit
(config)#interface po2
(config-if)#switchport
(config-if)#mlag 2
(config-if)#bridge-group 1
(config-if)#switchport mode trunk
(config-if)#switchport trunk allowed vlan all
(config-if)#exit
(config)#interface xe9
(config-if)#channel-group 1 mode active
(config-if)#exit
(config)#interface xe10
(config-if)#channel-group 1 mode active
(config-if)#exit
(config)#interface xe57
(config-if)#channel-group 2 mode active
(config-if)#exit
(config)#interface xe58
(config-if)#channel-group 2 mode active
(config-if)#exit
(config)#mcec domain configuration
(config-mcec-domain)#domain-address 1111.2222.3333
(config-mcec-domain)#intra-domain link xe49
(config-mcec-domain)#domain-system-number 2
(config-mcec-domain)#exit
Проверка
Switch 3
#sh mlag domain details
-----------------------------------
Domain Configuration
------------------------------------
Domain System Number : 1
Domain Address : 1111.2222.3333
Domain Priority : 1000
Intra Domain Interface : xe49
Hello RCV State : Current
Hello Periodic Timer State : Fast Periodic
Domain Sync : IN_SYNC
Neigh Domain Sync : IN_SYNC
Domain Adjacency : UP
------------------------------------
MLAG Configuration
------------------------------------
MLAG-1
Mapped Aggregator : po1
Admin Key : 16385
Oper Key : 16385
Physical properties Digest : dd 9c f 76 dd b6 5f 2f eb a1 d3 bb 8d 96 fc 82
Neigh Admin Key : 32769
Neigh Physical Digest : dd 9c f 76 dd b6 5f 2f eb a1 d3 bb 8d 96 fc 82
Info RCV State : Current
Info Periodic Time State : Standby
Mlag Sync : IN_SYNC
Mode : Active
MLAG-2
Mapped Aggregator : po2
Admin Key : 16386
Oper Key : 16386
Physical properties Digest : dd 9c f 76 dd b6 5f 2f eb a1 d3 bb 8d 96 fc 82
Neigh Admin Key : 32770
Neigh Physical Digest : dd 9c f 76 dd b6 5f 2f eb a1 d3 bb 8d 96 fc 82
Info RCV State : Current
Info Periodic Time State : Standby
Mlag Sync : IN_SYNC
Mode : Active
#sh etherchannel summary
% Aggregator po1 0
% Aggregator Type: Layer2
% Admin Key: 16385 - Oper Key 16385
% Link: xe57 (5057) sync: 1
% Link: xe58 (5058) sync: 1
% Aggregator po2 0
% Aggregator Type: Layer2
% Admin Key: 16386 - Oper Key 16386
% Link: xe9 (5009) sync: 1
% Link: xe10 (5010) sync: 1
#sh mlag 1 detail
MLAG-1
Mapped Aggregator : po1
Admin Key : 16385
Oper Key : 16385
Physical properties Digest : dd 9c f 76 dd b6 5f 2f eb a1 d3 bb 8d 96 fc 82
Neigh Admin Key : 32769
Neigh Physical Digest : dd 9c f 76 dd b6 5f 2f eb a1 d3 bb 8d 96 fc 82
Info RCV State : Current
Info Periodic Time State : Standby
Total Bandwidth : 20g
Mlag Sync : IN_SYNC
Mode : Active sh mcec statistics
Unknown MCCPDU received on the system : 0
------------------------------------
IDP xe49
------------------------------------
Valid RX Hello PDUs : 398
Valid TX Hello PDUs : 417
Valid RX Info PDUs : 16
Valid TX Info PDUs : 6
Valid RX Mac Sync PDUs : 3
Valid TX Mac Sync PDUs : 4
MLAG 1
Valid RX Info PDUs : 8
Valid TX Info PDUs : 3
MLAG 2
Valid RX Info PDUs : 8
Valid TX Info PDUs : 3
sh mlag domain summary
-----------------------------------
Domain Configuration
------------------------------------
Domain System Number : 1
Domain Address : 1111.2222.3333
Domain Priority : 1000
Intra Domain Interface : xe49
Domain Adjacency : UP
-----------------------------------
MLAG Configuration
------------------------------------
MLAG-1
Mapped Aggregator : po1
Physical properties Digest : dd 9c f 76 dd b6 5f 2f eb a1 d3 bb 8d 96 fc 82
Total Bandwidth : 40g
Mlag Sync : IN_SYNC
Mode : Active
MLAG-2
Mapped Aggregator : po2
Physical properties Digest : dd 9c f 76 dd b6 5f 2f eb a1 d3 bb 8d 96 fc 82
Total Bandwidth : 40g
Mlag Sync : IN_SYNC
Mode : Active
Статическая конфигурация
Статический MC-LAG предоставляет отказоустойчивость на уровне узлов, позволяя двум или более узлам в сети делить общий статический LAG-терминал.
Он эмулирует несколько узлов, представляя их как единый логический узел для удаленного узла, использующего статическую агрегацию каналов.
В результате, даже если один из узлов выходит из строя, существует путь для достижения назначения через другие узлы.
Топология
Рисунок 8-44: Топология статического MLAG
L2SW
(config)#hostname L2SW
(config)#bridge 1 protocol rstp vlan-bridge
(config)#vlan 2 bridge 1 state enable
(config)#interface sa1
(config-if)# bridge-group 1 spanning-tree disable
(config-if)#switchport mode hybrid
(config-if)#switchport hybrid allowed vlan all
(config-if)#exit
(config)#interface xe2
(config-if)# static-channel-group 1
(config-if)#exit
(config)#interface xe9
(config-if)# static-channel-group 1
(config-if)#exit
(config)#interface xe11
(config-if)# static-channel-group 1
(config-if)#exit
(config)#interface xe22
(config-if)# static-channel-group 1
(config-if)#exit
(config)#interface xe47
(config-if)#switchport
(config-if)# bridge-group 1 spanning-tree disable
(config-if)#switchport mode hybrid
(config-if)#switchport hybrid allowed vlan all
(config-if)#exit
TOR1
(config)#hostname TOR1
(config)#bridge 1 protocol provider-rstp edge <!---Создание provider-rstp edge bridge
(config)#vlan 2 bridge 1 state enable <!---Настройка VLAN для bridge
(config)# vlan 200 type service point-point bridge 1 state enable <!---Настройка SVLAN для bridge
(config)#cvlan registration table map1 bridge 1 <!---Настройка таблицы регистрации cvlan-svlan для bridge
(config-cvlan-registration)#cvlan 2 svlan 200 <!---Привязка CVLAN к SVLAN
(config-cvlan-registration)#exit
(config)#interface sa1
(config-if)#switchport
(config-if)#mlag 1
(config-if)#bridge-group 1
(config-if)# switchport mode providernetwork
(config-if)# switchport provider-network allowed vlan all
(config-if)#exit
(config)#interface sa2
(config-if)#switchport
(config-if)#mlag 2
(config-if)#bridge-group 1
(config-if)# switchport mode providernetwork
(config-if)# switchport provider-network allowed vlan all
(config-if)#exit
(config)#interface xe1
(config-if)# static-channel-group 2
(config-if)#exit
(config)#interface xe13
(config-if)# static-channel-group 2
(config-if)#exit
(config)#interface xe9
(config-if)# static-channel-group 1
(config-if)#exit
(config)#interface xe11
(config-if)# static-channel-group 1
(config-if)#exit
(config)#interface sa5
(config-if)#switchport
(config-if)#bridge-group 1
(config-if)#switchport mode provider-network
(config-if)#switchport provider-network allowed vlan all
(config)#interface xe3
(config-if)#static-channel-group 5
(config)#interface xe5
(config-if)#static-channel-group 5
(config-if)#exit
(config)#mcec domain configuration
(config-mcec-domain)#domain-address 1111.2222.3333
(config-mcec-domain)#domain-system-number 1
(config-mcec-domain)#intra-domain-link sa5
TOR2
(config)#hostname TOR2
(config)#bridge 1 protocol provider-rstp edge
(config)#vlan 2 bridge 1 state enable
(config)# vlan 200 type service point-point bridge 1 state enable
(config)#cvlan registration table map1 bridge 1
(config-cvlan-registration)#cvlan 2 svlan 200
(config-cvlan-registration)#exit
(config)#interface sa1
(config-if)#switchport
(config-if)#mlag 1
(config-if)#bridge-group 1
(config-if)# switchport mode providernetwork
(config-if)# switchport provider-network allowed vlan all
(config-if)#exit
(config)#interface sa2
(config-if)#switchport
(config-if)#mlag 2
(config-if)#bridge-group 1
(config-if)# switchport mode providernetwork
(config-if)# switchport provider-network allowed vlan all
(config-if)#exit
(config)#interface xe11
(config-if)# static-channel-group 2
(config-if)#exit
(config)#interface xe38
(config-if)# static-channel-group 2
(config-if)#exit
(config)#interface xe2
(config-if)# static-channel-group 1
(config-if)#exit
(config)#interface xe22
(config-if)# static-channel-group 1
(config-if)#exit
(config)#interface sa5
(config-if)#switchport
(config-if)#bridge-group 1
(config-if)#switchport mode provider-network
(config-if)#switchport provider-network allowed vlan all
(config)#interface xe3
(config-if)#static-channel-group 5
(config)#interface xe5
(config-if)#static-channel-group 5
(config-if)#exit
(config)#mcec domain configuration
(config-mcec-domain)#domain-address 1111.2222.3333
(config-mcec-domain)#domain-system-number 2
(config-mcec-domain)#intra-domain-link sa5
(config-if)#exit
LEAF
(config)#hostname LEAF
(config)#bridge 1 protocol provider-rstp edge
(config)#vlan 2 bridge 1 state enable
(config)# vlan 200 type service point-point bridge 1 state enable
(config)#cvlan registration table map1 bridge 1
(config-cvlan-registration)#cvlan 2 svlan 200
(config-cvlan-registration)#exit
(config)#interface sa2
(config-if)#swtichport
(config-if)# bridge-group 1 spanning-tree disable
(config-if)#switchport mode provider-network
(config-if)#)# switchport provider-network allowed vlan all
(config-if)#exit
(config)#interface xe1
(config-if)# static-channel-group 2
(config-if)#exit
(config)#interface xe13
(config-if)# static-channel-group 2
(config-if)#exit
(config)#interface xe11
(config-if)# static-channel-group 2
(config-if)#exit
(config)#interface xe38
(config-if)# static-channel-group 2
(config-if)#exit
(config)#interface xe47
(config-if)#switchport
(config-if)# bridge-group 1 spanning-tree disable
(config-if)# switchport mode customer-edge hybrid
(config-if)# switchport customer-edge hybrid allowed vlan all
(config-if)#switchport customer-edge vlan registration map1 <!---Привязка таблицы регистрации cvlan к интерфейсу MLAG
(config-if)#exit
Проверка
TOR1#show mlag 1 detail
MLAG-1
Mapped Aggregator : sa1
Admin Key : 16385
Oper Key : 16385
Physical properties Digest : d a6 26 2d fa 9a 5c 7b e6 15 79 c2 d5 9c 57 cc
Neigh Admin Key : 32769
Neigh Physical Digest : d a6 26 2d fa 9a 5c 7b e6 15 79 c2 d5 9c 57 cc
Info RCV State : Current
Info Periodic Time State : Standby Total Bandwidth : 40g
Mlag Sync : IN_SYNC
Mode : Active
TOR1#
TOR1#show mlag domain summary
-----------------------------------
Domain Configuration
------------------------------------
Domain System Number : 1
Domain Address : 1111.2222.3333
Domain Priority : 32768
Intra Domain Interface : sa5
Domain Adjacency : UP
-----------------------------------
MLAG Configuration
------------------------------------
MLAG-1
Mapped Aggregator : sa1
Physical properties Digest : d a6 26 2d fa 9a 5c 7b e6 15 79 c2 d5 9c 57 cc
Total Bandwidth : 40g
Mlag Sync : IN_SYNC
Mode : Active
MLAG-2
Mapped Aggregator : sa2
Physical properties Digest : ae 56 a1 c5 b9 dc 46 a4 5d 97 dc 79 9c 6f a5 c8
Total Bandwidth : 40g
Mlag Sync : IN_SYNC
Mode : Active
TOR1#
TOR1#show mlag domain detail
-----------------------------------
Domain Configuration
------------------------------------
Domain System Number : 1
Domain Address : 1111.2222.3333
Domain Priority : 32768
Intra Domain Interface : sa5
Hello RCV State : Current
Hello Periodic Timer State : Slow Periodic
Domain Sync : IN_SYNC
Neigh Domain Sync : IN_SYNC
Domain Adjacency : UP
------------------------------------
MLAG Configuration
------------------------------------
MLAG-1
Mapped Aggregator : sa1
Admin Key : 16385
Oper Key : 16385
Physical properties Digest : d a6 26 2d fa 9a 5c 7b e6 15 79 c2 d5 9c 57 cc
Neigh Admin Key : 32769
Neigh Physical Digest : d a6 26 2d fa 9a 5c 7b e6 15 79 c2 d5 9c 57 cc
Info RCV State : Current
Info Periodic Time State : Standby Total Bandwidth : 40g
Mlag Sync : IN_SYNC
Mode : Active
MLAG-2
Mapped Aggregator : sa2
Admin Key : 16386
Oper Key : 16386
Physical properties Digest : ae 56 a1 c5 b9 dc 46 a4 5d 97 dc 79 9c 6f a5 c8
Neigh Admin Key : 32770
Neigh Physical Digest : ae 56 a1 c5 b9 dc 46 a4 5d 97 dc 79 9c 6f a5 c8
Info RCV State : Current
Info Periodic Time State : Standby Total Bandwidth : 40g
Mlag Sync : IN_SYNC
Mode : Active
TOR1#
Конфигурация ARP ACL
Топология
Рисунок 8-45: Конфигурация ARP ACL с MC LAG TOR1
TOR1(config)#bridge 1 protocol provider-rstp edge
TOR1(config)#vlan 2-3990 type customer bridge 1 state enable
TOR1(config)#vlan 2-3990 type service pointpoint bridge 1 state enable
TOR1(config)#cvlan registration table map1 bridge 1
TOR1(config-cvlan-registration)#cvlan 2-3990 svlan 3990
TOR1(config-cvlan-registration)#exit
TOR1(config)#interface po1
TOR1(config-if)#switchport
TOR1(config-if)#mlag 1
TOR1(config-if)#bridge-group 1 spanning-tree disable
TOR1(config-if)#switchport mode customeredge hybrid
TOR1(config-if)#switchport customer-edge hybrid allowed vlan all
TOR1(config-if)#switchport customer-edge vlan registration map1
TOR1(config-if)#exit
TOR1(config-if)#interface po2
TOR1(config-if)#switchport
TOR1(config-if)#mlag 2
TOR1(config-if)#bridge-group 1 spanning-tree disable
TOR1(config-if)#switchport mode customeredge hybrid
TOR1(config-if)#switchport customer-edge hybrid allowed vlan all
TOR1(config-if)#switchport customer-edge vlan registration map1
TOR1(config-if)#exit
TOR1(config)#interface po3
TOR1(config-if)#switchport
TOR1(config-if)#bridge-group 1
TOR1(config-if)#switchport mode providernetwork <!---Установить характеристики коммутируемого интерфейса как provider network
TOR1(config-if)#switchport provider-network allowed vlan all
TOR1(config-if)#exit
TOR1(config)#interface xe2
TOR1(config-if)#channel-group 3 mode active
TOR1(config-if)#exit
TOR1(config)#interface xe3
TOR1(config-if)#channel-group 1 mode active
TOR1(config-if)#exit
TOR1(config-if)#interface xe1
TOR1(config-if)#channel-group 2 mode active
TOR1(config-if)#exit
TOR1(config)#mcec domain configuration
TOR1(config-mcec-domain)#domain-address 2222.3333.4444
TOR1(config-mcec-domain)#domain-systemnumber 1 <!---Номер для идентификации узла в домене
TOR1(config-mcec-domain)#intra-domain-link po3
TOR1(config)#hardware-profile filter ingress-arp enable <!---Глобально включить hardware profile для ARP
TOR1(config)#arp access-list cep <!---Создать access list с именем cep
TOR1(config-arp-acl)# 30 permit request ip any mac host 0000.2A6C.668D vlan 3990 innervlan 2 <!---Создать правило разрешения для определенного ARP-запроса
TOR1(config-arp-acl)# 40 permit response ip any any mac host 0000.2A6C.668D host 0000.2A6C.7202 vlan 3990 inner-vlan 2 <!---Создать правило разрешения для определенного ARP-ответа
TOR1(config)#arp access-list pnp <!---Создать access list с именем pnp
TOR1(config-arp-acl)#20 permit request ip any mac host 0000.2A6C.7202 vlan 3990 innervlan 2 <!---Создать правило разрешения для определенного ARP-запроса
TOR1(config-arp-acl)#30 permit response ip any any mac host 0000.2A6C.7202 host 0000.2A6C.668D vlan 3990 inner-vlan 2 <!---Создать правило разрешения для определенного ARP-ответа
TOR1(config-if)#interface mlag1
TOR1(config-if)#arp access-group cep in <!---Привязать правило к access-group cep
TOR1(config-if)#interface mlag2
TOR1(config-if)#arp access-group pnp in <!---Привязать правило к access-group pnp
TOR2
TOR2(config)#bridge 1 protocol provider-rstp edge
TOR2(config)#vlan 2-3990 type customer bridge 1 state enable
TOR2(config)#vlan 2-3990 type service pointpoint bridge 1 state enable
TOR2(config)#cvlan registration table map1 bridge 1
TOR2(config-cvlan-registration)#cvlan 2-3990 svlan 3990
TOR2(config-cvlan-registration)#exit
TOR2(config)#interface po1
TOR2(config-if)#switchport
TOR2(config-if)#mlag 1
TOR1(config-if)#bridge-group 1 spanning-tree disable
TOR1(config-if)#switchport mode customeredge hybrid
TOR1(config-if)#switchport customer-edge hybrid allowed vlan all
TOR1(config-if)#switchport customer-edge vlan registration map1
TOR2(config-if)#exit
TOR2(config)#interface po2
TOR2(config-if)#switchport
TOR2(config-if)#mlag 2
TOR1(config-if)#bridge-group 1 spanning-tree disable
TOR1(config-if)#switchport mode customeredge hybrid
TOR1(config-if)#switchport customer-edge hybrid allowed vlan all
TOR1(config-if)#switchport customer-edge vlan registration map1
TOR2(config-if)#exit
TOR2(config)#interface po3
TOR2(config-if)#switchport
TOR2(config-if)#bridge-group 1
TOR2(config-if)#switchport mode providernetwork
TOR2(config-if)#switchport provider-network allowed vlan all
TOR2(config-if)#exit
TOR2(config)#interface xe2
TOR2(config-if)#channel-group 3 mode active
TOR2(config-if)#interface xe3
TOR2(config-if)#channel-group 1 mode active
TOR2(config-if)#exit
TOR2(config)#Interface xe11
TOR2(config-if)#channel-group 2 mode active
TOR2(config-if)#exit
TOR2(config)#mcec domain configuration
TOR2(config-mcec-domain)#domain-address 2222.3333.4444
TOR2(config-mcec-domain)#domain-systemnumber 2
TOR2(config-mcec-domain)#intra-domain-link po3
TOR2(config)#hardware-profile filter ingress-arp enable
TOR2(config)#arp access-list cep
TOR2(config-arp-acl)# 30 permit request ip any mac host 0000.2A6C.668D vlan 3990 innervlan 2
TOR2(config-arp-acl)# 40 permit response ip any any mac host 0000.2A6C.668D host 0000.2A6C.7202 vlan 3990 inner-vlan 2
TOR2(config)#arp access-list pnp
TOR2(config-arp-acl)#20 permit request ip any mac host 0000.2A6C.7202 vlan 3990 innervlan 2
TOR2(config-arp-acl)#30 permit response ip any any mac host 0000.2A6C.7202 host 0000.2A6C.668D vlan 3990 inner-vlan 2
TOR2(config-if)#interface mlag1
TOR2(config-if)#arp access-group cep in
TOR2(config-if)#interface mlag2
TOR2(config-if)#arp access-group pnp in
SW1
SW1(config)#bridge 1 protocol rstp vlanbridge
SW1(config)#vlan 2-3990 type customer bridge 1 state enable
SW1(config-if)#interface po1
SW1(config-if)#switchport
SW1(config-if)#bridge-group 1 spanning-tree disable
SW1(config-if)#switchport mode hybrid
SW1(config-if)#switchport hybrid allowed vlan all
SW1(config-if)#exit
SW1(config)#interface xe1
SW1(config-if)#channel-group 1 mode active
SW1(config-if)#exit
SW1(config)#interface xe2
SW1(config-if)#channel-group 1 mode active
SW1(config-if)#exit
SW1(config)#interface xe3
SW1(config-if)#switchport
SW1(config-if)#bridge-group 1 spanning-tree disable
SW1(config-if)#bridge-group 1
SW1(config-if)#switchport mode hybrid
SW1(config-if)#switchport hybrid allowed vlan all
SW1(config-if)#exit
LEAF
Leaf(config)#bridge 1 protocol provider-rstp edge
Leaf(config)#vlan 2-3990 type customer bridge 1 state enable
Leaf(config)#vlan 2-3990 type service pointpoint bridge 1 state enable
Leaf(config)#cvlan registration table map1 bridge 1
Leaf(config-cvlan-registration)#cvlan 2-3990 svlan 3990
Leaf(config-if)#exit
Leaf(config)#interface po2
Leaf(config-if)#switchport
Leaf(config-if)#bridge-group 1 spanning-tree disable
Leaf(config-if)#switchport mode providernetwork
Leaf(config-if)#switchport provider-network allowed vlan all
Leaf(config-if)#exit
Leaf(config)#interface xe1
Leaf(config-if)#channel-group 2 mode active
Leaf(config-if)#exit
Leaf(config)#interface xe2
Leaf(config-if)#channel-group 2 mode active
Leaf(config-if)#exit
Leaf(config)#Interface xe3
Leaf(config-if)#switchport
Leaf(config-if)#bridge-group 1 spanning-tree disable
Leaf(config-if)#switchport mode customeredge hybrid
Leaf(config-if)#switchport customer-edge hybrid allowed vlan all
Leaf(config-if)#switchport customer-edge vlan registration map1
Leaf(config-if)#exit
Проверка
TOR1#sh access-lists
ARP access list cep
30 permit request ip any mac host 0000.2A6C.668D vlan 3990 inner-vlan 2
40 permit response ip any any mac host 0000.2A6C.668D host 0000.2A6C.7202 vlan
3990 inner-vlan 2
default deny-all
ARP access list pnp
20 permit request ip any mac host 0000.2A6C.7202 vlan 3990 inner-vlan 2 [match=1]
30 permit response ip any any mac host 0000.2A6C.7202 host 0000.2A6C.668D vlan
3990 inner-vlan 2 [match=1]
default deny-all log
TOR2#sh access-lists
ARP access list cep
30 permit request ip any mac host 0000.2A6C.668D vlan 3990 inner-vlan 2 [match=1]
40 permit response ip any any mac host 0000.2A6C.668D host 0000.2A6C.7202 vlan
3990 inner-vlan 2 [match=1]
default deny-all log
ARP access list pnp
20 permit request ip any mac host 0000.2A6C.7202 vlan 3990 inner-vlan 2
30 permit response ip any any mac host 0000.2A6C.7202 host 0000.2A6C.668D vlan
3990 inner-vlan 2
default deny-all
Совместимость MLAG
Топология
Рисунок 8-46: Совместимость MLAG
MLK-SW-03
MLK-SW-03(config)#bridge 1 protocol rstp vlan-bridge
MLK-SW-03(config)#vlan database
MLK-SW-03(config-vlan)#vlan 2-1100 bridge 1 state enable
MLK-SW-03(config-vlan)#exit
MLK-SW-03(config-if)#interface po1
MLK-SW-03(config-if)#switchport
MLK-SW-03(config-if)#bridge-group 1
MLK-SW-03(config-if)#switchport mode trunk
MLK-SW-03(config-if)#switchport trunk allowed vlan all
MLK-SW-03(config-if)#interface po100
MLK-SW-03(config-if)#switchport
MLK-SW-03(config-if)#bridge-group 1
MLK-SW-03(config-if)#switchport mode trunk
MLK-SW-03(config-if)#switchport trunk allowed vlan all
MLK-SW-03(config)#interface xe1
MLK-SW-03(config-if)#switchport
MLK-SW-03(config-if)#bridge-group 1
MLK-SW-03(config-if)#switchport mode trunk
MLK-SW-03(config-if)#switchport trunk allowed vlan all
MLK-SW-03(config)#interface xe2
MLK-SW-03(config-if)#switchport
MLK-SW-03(config-if)#bridge-group 1
MLK-SW-03(config-if)#switchport mode trunk
MLK-SW-03(config-if)#switchport trunk allowed vlan all
...
MLK-SW-03(config)#interface xe32
MLK-SW-03(config-if)#switchport
MLK-SW-03(config-if)#bridge-group 1
MLK-SW-03(config-if)#switchport mode trunk
MLK-SW-03(config-if)#switchport trunk allowed vlan all
MLK-SW-03(config-if)#interface xe45
MLK-SW-03(config-if)#switchport
MLK-SW-03(config-if)#channel-group 1 mode active
MLK-SW-03(config-if)#interface xe46
MLK-SW-03(config-if)#switchport
MLK-SW-03(config-if)#channel-group 1 mode active
MLK-SW-03(config-if)#interface xe47
MLK-SW-03(config-if)#switchport
MLK-SW-03(config-if)#channel-group 100 mode active
MLK-SW-03(config-if)#interface xe48
MLK-SW-03(config-if)#switchport
MLK-SW-03(config-if)#channel-group 100 mode active
MLK-SW-03(config-if)# mcec domain configuration
MLK-SW-03(config-mcec-domain)#domain-address 0000.0000.1111
MLK-SW-03(config-mcec-domain)#domain-system-number 1
MLK-SW-03(config-mcec-domain)#intra-domain-link po100
MLK-SW-03(config)#interface po1
MLK-SW-03(config-if)#mlag 1
MLK-SW-04
MLK-SW-04(config)#bridge 1 protocol rstp vlan-bridge
MLK-SW-04(config)#vlan database
MLK-SW-04(config-vlan)#vlan 2-1100 bridge 1 state enable
MLK-SW-04(config-vlan)#exit
MLK-SW-04(config-if)#interface po1
MLK-SW-04(config-if)#switchport
MLK-SW-04(config-if)#bridge-group 1
MLK-SW-04(config-if)#switchport mode trunk
MLK-SW-04(config-if)#switchport trunk allowed vlan all
MLK-SW-04(config-if)#interface po100
MLK-SW-04(config-if)#switchport
MLK-SW-04(config-if)#bridge-group 1
MLK-SW-04(config-if)#switchport mode trunk
MLK-SW-04(config-if)#switchport trunk allowed vlan all