EVPN LAG 구성 모범 사례
QFX 시리즈 스위치의 Junos OS는 엔터프라이즈 스타일 구성과 서비스 프로바이더 스타일 구성을 지원합니다.
두 가지 구성 스타일 모두 EVPN LAG를 구성하는 데 사용할 수 있습니다. 리프 디바이스에서 RSTP를 활성화하지 않고도 스톰 컨트롤 프로필 및 BPDU 차단과 같은 더 많은 데이터센터 기능을 지원하기 때문에 엔터프라이즈 구성 스타일을 사용하는 것이 좋습니다.
이 섹션에서는 두 가지 구성 스타일을 모두 사용하는 EVPN LAG 구성을 다룹니다.
엔터프라이즈 구성 스타일을 사용한 CRB 아키텍처의 EVPN LAG 구성
엔터프라이즈 구성 스타일은 대부분의 데이터센터 아키텍처에서 EVPN LAG 기능을 활성화하는 데 권장되는 방법입니다. 엔터프라이즈 스타일 프로비저닝은 일반적으로 서비스 프로바이더 스타일 프로비저닝보다 간단하며 일반적으로 다른 레이어 2 기능과의 호환성이 더 뛰어납니다.
다음 구성은 중앙 라우팅 브리징 아키텍처의 리프 디바이스에서 엔터프라이즈 구성 스타일을 사용하여 수행된 샘플 EVPN LAG 구성을 제공합니다.
user@leaf_node1>show configuration interfaces ae0
esi {
00:33:33:33:33:33:33:33:33:01; a unique but same value at leafs connected to given server
all-active;
}
aggregated-ether-options {
lacp {
active;
system-id 00:33:33:33:33:01; a unique but same value at leafs connected to given server
}
}
unit 0 {
family ethernet-switching {
interface-mode trunk;
vlan {
members [ 100-101 ]; the explicit vlan-ids enabled with vxlan - can’t be mixed with regular vlans on same ESI-LAG
}
}
}
user@leaf_node1> show configuration vlans
vlan100 {
vlan-id 100; value provisioned at the ESI-LAG interface in enterprise-mode
vxlan {
vni 50100;
}
}
vlan101 {
vlan-id 101;
vxlan {
vni 50101;
}
}
user@leaf_node1> show configuration interfaces et-0/0/50
description esi-lag-member-link;
ether-options {
802.3ad ae0;
}
user@leaf_node1> show configuration switch-options
vtep-source-interface lo0.0; lo0.0 must be in the global routing table
route-distinguisher 1.1.1.21:1; RD must be a unique value per leaf
vrf-import MY-FABRIC-IMPORT;
vrf-target target:1:5555;
root@dc-tme-qfx5110-1> show configuration protocols evpn
vni-options {
vni 10001 {
vrf-target target:1:100;
}
vni 10002 {
vrf-target target:1:101;
}
}
encapsulation vxlan;
multicast-mode ingress-replication;
default-gateway do-not-advertise;
extended-vni-list [ 50100 50101 ];
user@leaf_node1> show configuration policy-options policy-statement MY-FABRIC-IMPORT
term term1 {
from community MY-FAB-COMMUNITY;
then accept;
}
term term2 {
from community COM-VNI-50100;
then accept;
}
term term3 {
from community COM-VNI-50101;
then accept;
}
then reject;
user@leaf_node1> show configuration policy-options community MY-FAB-COMMUNITY
members target:1:5555;
user@leaf_node1> show configuration policy-options
policy-statement LB {
term term1 {
from protocol evpn;
then {
load-balance per-packet;
}
}
term term2 {
then {
load-balance per-packet;
}
}
}
policy-statement MY-FABRIC-IMPORT {
term term1 {
from community MY-FAB-COMMUNITY;
then accept;
}
term term2 {
from community ESI-SPINE;
then accept;
}
term term3 {
from community COM-VNI-50100;
then accept;
}
term term4 {
from community COM-VNI-50101;
then accept;
}
then reject;
}
policy-statement MY_VTEPS {
term term1 {
from {
route-filter 1.1.1.0/24 prefix-length-range /32-/32;
}
then accept;
}
then reject;
}
community COM-VNI-50100 members target:1:100;
community COM-VNI-50101 members target:1:101;
community MY-FAB-COMMUNITY members target:1:5555;
community SPINE-ESI members target:1:8888;
user@leaf_node1> show configuration protocols bgp
log-updown;
group overlay {
type internal;
local-address 1.1.1.21;
family evpn {
signaling;
}
vpn-apply-export;
local-as 64512;
bfd-liveness-detection {
minimum-interval 300;
multiplier 3;
}
multipath;
neighbor 1.1.1.11;
neighbor 1.1.1.12;
}
group underlay {
type external;
export MY_VTEPS;
multipath multiple-as;
neighbor 10.10.19.1 {
peer-as 65511;
}
neighbor 10.10.21.1 {
peer-as 65512;
}
}
user@leaf_node1> show configuration interfaces et-0/0/48
description spine0_connected;
mtu 9216;
unit 0 {
family inet {
address 10.10.19.2/24;
}
}
user@leaf_node1> show configuration interfaces et-0/0/49
description spine1_connected;
mtu 9216;
unit 0 {
family inet {
address 10.10.21.2/24;
}
}
서비스 프로바이더 구성 스타일을 사용한 CRB 아키텍처의 EVPN LAG 구성
QFX5110 스위치는 서비스 프로바이더 구성 스타일도 지원합니다. 서비스 프로바이더 구성 스타일에서 EVPN LAG를 구성할 때 지정된 EVPN LAG당 여러 단위가 할당됩니다. 이러한 여러 유닛은 유닛 인터페이스당 보다 선택적인 필터 및 속도 제한을 활성화할 수 있는 기회를 제공하지만, 이러한 할당은 유닛 단위로 수행되어야 하므로 구성 및 유지에 부담이 됩니다. 스파인 및 리프 토폴로지를 사용하는 데이터센터 아키텍처에서는 일반적으로 이러한 세분성이 필요하지 않으므로 대부분의 데이터센터 환경에서 EVPN LAG를 활성화할 때 서비스 프로바이더 스타일 구성을 사용하지 않는 것이 좋습니다.
다음 구성은 서비스 프로바이더 구성 스타일을 사용하여 수행된 샘플 EVPN LAG 구성을 제공합니다. 이 구성은 QFX5110 또는 QFX5120 스위치가 IRB가 리프 디바이스에 없는 아키텍처, 즉 CRB(Centrally Routed Bridging) 및 BO(Bridged Overlay) 아키텍처에서 리프 디바이스 역할로 작동할 때 지원됩니다. ERB(Edge Routed Bridging) 아키텍처에서 QFX5110 또는 QFX5120 스위치를 리프 디바이스로 사용하는 경우 EVPN LAG를 활성화하려면 엔터프라이즈 구성 스타일을 사용해야 합니다.
user@leaf_node1> show configuration interfaces ae11
flexible-vlan-tagging;
encapsulation extended-vlan-bridge;
esi {
00:33:33:33:33:33:33:33:33:01;
all-active;
}
aggregated-ether-options {
lacp {
active;
periodic fast;
system-id 00:33:33:33:33:01;
}
}
unit 100 {
vlan-id 100;
}
unit 101 {
vlan-id 101;
}
<- Corresponding VxLAN - > VLAN Mapping
user@leaf_node1> show configuration vlans vlan100
interface ae11.100;
vxlan {
vni 50100;
}
{master:0}
user@leaf_node1> show configuration vlans vlan101
interface ae11.101;
vxlan {
vni 50101;
}