管理 EVPN-VXLAN 交换矩阵
到目前为止,在 EVPN-VXLAN 交换矩阵的配置中,我们使用的是具有三个虚拟网络和一个模拟接入机柜的接入层交换机的拓扑。使用此部分可以添加第二个接入交换机和新的虚拟网络。
这些配置示例使用您在 如何使用 EVPN 多宿主 配置配置示例中配置的相同设备。
添加接入层交换机
要求
概述
使用此部分可以将新的接入层交换机(接入交换机 2)添加到多宿主到相同折叠核心交换机的网络。 图 1 显示了接入交换机 2 的物理拓扑。
图 1:带接入交换机 2
的 EVPN-VXLAN 拓扑
配置
本节介绍将新接入交换机(接入交换机 2)添加到网络的分步配置过程。
折叠核心 1 配置
分步过程
指定要包含在聚合以太网捆绑包中的接口。
set interfaces ge-0/0/6 description "Access Switch 2" set interfaces ge-0/0/6 ether-options 802.3ad ae12
将聚合以太网接口配置到新的接入层交换机,并将以太网设备数量增加到两个,以支持额外的聚合以太网接口。
set chassis aggregated-devices ethernet device-count 2 set interfaces ae12 description To-Access-2 set interfaces ae12 mtu 9200 set interfaces ae12 esi 00:11:11:11:11:11:11:11:11:02 set interfaces ae12 esi all-active set interfaces ae12 aggregated-ether-options lacp active set interfaces ae12 aggregated-ether-options lacp periodic fast set interfaces ae12 aggregated-ether-options lacp system-id 00:40:00:00:00:02 set interfaces ae12 unit 0 family ethernet-switching interface-mode trunk set interfaces ae12 unit 0 family ethernet-switching vlan members VLAN-201 set interfaces ae12 unit 0 family ethernet-switching vlan members VLAN-202 set interfaces ae12 unit 0 family ethernet-switching vlan members VLAN-101 set interfaces ae12 unit 0 family ethernet-switching vlan members VLAN-102 set interfaces ae12 unit 0 family ethernet-switching vlan members VLAN-301 set interfaces ae12 unit 0 family ethernet-switching vlan members VLAN-302
折叠核心 2 配置
分步过程
指定要包含在聚合以太网捆绑包中的接口。
set interfaces ge-0/0/6 description "Access Switch 2" set interfaces ge-0/0/6 ether-options 802.3ad ae12
将聚合以太网接口配置到新的接入层交换机,并将以太网设备数量增加到两个,以支持额外的聚合以太网接口。
set chassis aggregated-devices ethernet device-count 2 set interfaces ae12 description To-Access-2 set interfaces ae12 mtu 9200 set interfaces ae12 esi 00:11:11:11:11:11:11:11:11:02 set interfaces ae12 esi all-active set interfaces ae12 aggregated-ether-options lacp active set interfaces ae12 aggregated-ether-options lacp periodic fast set interfaces ae12 aggregated-ether-options lacp system-id 00:40:00:00:00:02 set interfaces ae12 unit 0 family ethernet-switching interface-mode trunk set interfaces ae12 unit 0 family ethernet-switching vlan members VLAN-201 set interfaces ae12 unit 0 family ethernet-switching vlan members VLAN-202 set interfaces ae12 unit 0 family ethernet-switching vlan members VLAN-101 set interfaces ae12 unit 0 family ethernet-switching vlan members VLAN-102 set interfaces ae12 unit 0 family ethernet-switching vlan members VLAN-301 set interfaces ae12 unit 0 family ethernet-switching vlan members VLAN-302
(可选)启用 IGMP 侦听以限制 VLAN 上的 IPv4 组播流量泛洪。
set protocols igmp-snooping vlan VLAN-201 interface ae11.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-202 interface ae11.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-101 interface ae11.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-102 interface ae11.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-301 interface ae11.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-301 interface ae11.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-201 interface ae12.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-202 interface ae12.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-101 interface ae12.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-102 interface ae12.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-301 interface ae12.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-301 interface ae12.0 multicast-router-interface
接入交换机 2 配置
分步过程
配置物理 LAG 接口。
set interfaces ge-0/0/1 description "to campus-tme-ex4650-01" set interfaces ge-0/0/1 ether-options 802.3ad ae12 set interfaces ge-0/0/2 description "to campus-tme-ex4650-02" set interfaces ge-0/0/2 ether-options 802.3ad ae12
将 LAG 接口配置为新的接入层交换机。
set chassis aggregated-devices ethernet device-count 1 set interfaces ae12 aggregated-ether-options lacp active set interfaces ae12 aggregated-ether-options lacp periodic fast set interfaces ae12 unit 0 family ethernet-switching interface-mode trunk set interfaces ae12 unit 0 family ethernet-switching vlan members 101-102 set interfaces ae12 unit 0 family ethernet-switching vlan members 201-202 set interfaces ae12 unit 0 family ethernet-switching vlan members 301-302
(可选)启用 IGMP 侦听以限制 VLAN 上的 IPv4 组播流量泛洪。
set protocols igmp-snooping vlan VLAN-201 interface ae12.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-202 interface ae12.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-101 interface ae12.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-102 interface ae12.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-301 interface ae12.0 multicast-router-interface set protocols igmp-snooping vlan VLAN-301 interface ae12.0 multicast-router-interface