이 페이지에서
EVPN-VXLAN 네트워크에서 VLAN 변환을 사용한 오버랩되는 VLAN 지원
VLAN 변환 기능을 사용하여 EVPN-VXLAN 패브릭에서 중복 VLAN ID를 관리할 수 있습니다. 이를 위해 주니퍼는 패브릭에서 리프 디바이스로 작동하는 다음 플랫폼에서 VLAN 변환을 지원합니다.
-
QFX5110 및 QFX5120 스위치 — Junos OS 릴리스 21.2R1부터
-
QFX5130-32CD 및 QFX5700 스위치 — Junos OS Evolved 릴리스 22.1R1부터 시작
주니퍼는 다음 기능을 지원합니다.
-
엔터프라이즈 스타일로 구성된 트렁크 모드 액세스 측 인터페이스.
-
ERB(Edge-Routed Bridging) 및 CRB(Centrally Routed Bridging) 오버레이의 리프 디바이스에서.
-
MAC-VRF EVPN 라우팅 인스턴스(지원되는 모든 서비스 유형)를 사용합니다.
-
단일호밍 또는 멀티호밍이 가능할 수 있는 액세스 사이드 포트.
-
레이어 2(L2) VXLAN 게이트웨이 액세스 사이드 포트.
-
VXLAN 브리지 도메인에 대한 레이어 3(L3) VXLAN 게이트웨이 IRB 인터페이스.
혜택
-
다른 기능에 동일한 VLAN ID를 사용할 수 있는 네트워크의 여러 비즈니스 영역을 결합한 후 네트워크 재프로비저닝을 단순화합니다.
-
서비스 프로바이더가 동일한 VLAN ID 중 하나 이상을 사용하여 서로 다른 고객 간에 동일한 네트워크에서 트래픽 격리를 유지할 수 있도록 지원합니다.
개요
VLAN 변환을 구성할 때, 인터페이스에서 들어오는 태그 처리된 패킷의 호스트 VLAN ID를 구성된 VLAN ID에 매핑합니다. 구성된 VLAN ID를 매핑된 VLAN 값이라고 합니다. 호스트의 수신 패킷의 경우, 디바이스는 패킷이 패킷 처리 파이프라인에 들어가기 전에 호스트 VLAN ID에 매핑된 VLAN 값을 대체합니다. 태그 지정된 트래픽을 호스트로 전달할 때 송신 시 디바이스는 매핑된 VLAN 값을 호스트 VLAN ID로 대체합니다.
일반적인 VLAN 구성 문을 사용하여 매핑된 VLAN 값으로 사용할 VLAN을 정의합니다. 또한 인터페이스를 해당 VLAN과 연결합니다. 그런 다음 VLAN 변환을 구성하려면 필요에 따라 각 호스트 VLAN 매핑 및 인터페이스에 대해 에서 [edit interfaces interface-name unit logical-unit-number family ethernet-switching]
명령문을 사용합니다vlan-rewrite translate from-vlan-id to-vlan-id
. 이 문을 통해 다음을 수행합니다.
-
은 from-vlan-id 호스트 VLAN ID입니다.
-
은 to-vlan-id (는) 매핑된 VLAN 값입니다.
일반적인 VLAN 범위(1~4094)에서 호스트 VLAN ID 및 매핑된 VLAN 값을 지정할 수 있습니다.
여러 호스트 VLAN으로 인터페이스를 구성하고 해당 호스트 VLAN의 일부 (전부는 아님)를 매핑하는 경우, 인터페이스는 다음을 매핑합니다.
-
매핑되지 않은 호스트 VLAN ID(해당
vlan-rewrite translate
문이 없는 호스트 VLAN ID)로 태그 처리된 패킷을 수락하고 전달합니다. -
인터페이스에 구성이 있는 호스트 VLAN ID로 태그 처리된 패킷을 허용합니다
vlan-rewrite translate
. 인터페이스는 해당 매핑된 VLAN 값으로 태그 처리된 패킷을 삭제합니다.
예를 들어, 다음 구성에는 인터페이스 xe-0/0/1의 VLAN 100 및 101이 포함됩니다. 또한 구성은 호스트 VLAN ID 200에 대한 VLAN 변환을 설정하여 VLAN 값 100을 매핑합니다.
set interfaces xe-0/0/1 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members vlan100 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members vlan101 set vlans vlan100 vlan-id 100 set vlans vlan101 vlan-id 101 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan-rewrite translate 200 100
이 구성을 사용하면 인터페이스가 다음을 수행합니다.
-
VLAN이 매핑되지 않기 때문에 VLAN 101로 태그 처리된 수신 패킷을 허용합니다.
-
VLAN이 매핑이 있는 호스트 VLAN이기 때문에 VLAN 200으로 태그 처리된 수신 패킷을
vlan-rewrite
허용합니다. -
VLAN이 호스트 VLAN 200에 매핑된 VLAN 값이기 때문에 VLAN 100으로 태그 처리된 수신 패킷을 삭제합니다.
지원되는 VLAN 변환 구성
다음과 같이 인터페이스에서 VLAN 변환을 지원합니다.
-
엔터프라이즈 스타일의 인터페이스 구성을 가진 액세스 인터페이스에서만 호스트 VLAN ID를 매핑된 VLAN 값에 매핑할 수 있습니다.
-
각 호스트 VLAN을 하나의 매핑된 VLAN 값으로 매핑할 수 있습니다.
동일한 호스트 VLAN의 VLAN 변환을 두 개 이상의 매핑된 VLAN 값으로 구성하려고 하면 커밋 오류가 표시됩니다.
예를 들어, 다음 구성에는 인터페이스 xe-0/0/1의 VLAN ID 100 및 101이 포함됩니다. 또한 구성은 호스트 VLAN ID 200을 매핑하여 VLAN 값 100을 매핑합니다.
set interfaces xe-0/0/1 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members vlan100 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members vlan101 set vlans vlan100 vlan-id 100 set vlans vlan101 vlan-id 101 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan-rewrite translate 200 100
그런 다음 동일한 호스트 VLAN 200을 동일한 인터페이스에서 구성된 다른 VLAN 101에 매핑하려고 하면 CLI는 커밋을 허용하지 않습니다.
set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan-rewrite translate 200 101
-
하나의 호스트 VLAN만 인터페이스에서 동일한 매핑된 VLAN 값에 매핑할 수 있습니다.
즉, 호스트 VLAN을 매핑한 후에는 다른 호스트 VLAN 태그를 동일한 인터페이스에 매핑된 VLAN 값에 매핑할 수 없습니다. CLI는 커밋 작업을 차단하지 않지만 가장 최근의 매핑만 적용됩니다.
예를 들어, 인터페이스에서 VLAN 100을 구성하고 호스트 VLAN 200을 매핑하여 VLAN 값 100을 매핑합니다.
set interfaces xe-0/0/1 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members vlan100 set vlans vlan100 vlan-id 100 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan-rewrite translate 200 100
그런 다음 해당 구성을 커밋한 다음 호스트 VLAN 300에서 동일한 매핑된 VLAN 값 100으로 매핑을 구성합니다.
set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan-rewrite translate 300 100
디바이스는 매핑된 VLAN 값에 대한 첫 번째 매핑과 두 번째 매핑을 덮어 쓰고 두 번째 매핑에 따라만 패킷을 처리합니다.
-
다른 호스트 VLAN을 동일한 인터페이스에서 다른 매핑된 VLAN 값에 매핑할 수 있습니다.
예를 들어, 인터페이스에서 VLAN 100 및 101을 구성하는 경우 호스트 VLAN 200을 하나의 매핑된 VLAN 값(100)으로 매핑하고 동일한 인터페이스에서 VLAN 300을 다른 매핑된 VLAN 값(101)에 매핑할 수 있습니다.
set interfaces xe-0/0/1 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members vlan100 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members vlan101 set vlans vlan100 vlan-id 100 set vlans vlan101 vlan-id 101 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan-rewrite translate 200 100 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan-rewrite translate 300 101
-
동일한 호스트 VLAN을 다른 인터페이스에서 동일한 매핑된 VLAN 값에 매핑할 수 있습니다.
예를 들어, VLAN 100의 구성원으로 두 개의 인터페이스 xe-0/0/1 및 xe-0/0/2를 구성하는 경우, 호스트 VLAN 200을 두 인터페이스에 대해 동일한 매핑된 VLAN 값(100)으로 매핑할 수 있습니다.
set interfaces xe-0/0/1 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members vlan100 set interfaces xe-0/0/2 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/0/2 unit 0 family ethernet-switching vlan members vlan100 set vlans vlan100 vlan-id 100 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan-rewrite translate 200 100 set interfaces xe-0/0/2 unit 0 family ethernet-switching vlan-rewrite translate 200 100
-
다른 호스트 VLAN 태그를 다른 인터페이스에서 동일한 매핑된 VLAN 값으로 매핑할 수 있습니다.
예를 들어, 구성에는 인터페이스 xe-0/0/1 및 xe-0/0/2의 VLAN 100이 포함됩니다. 호스트 VLAN 200을 xe-0/0/1에서 호스트 VLAN 200과 xe-0/0/2에서 호스트 VLAN 300을 동일한 매핑된 VLAN 값 100으로 매핑할 수 있습니다.
set interfaces xe-0/0/1 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members vlan100 set interfaces xe-0/0/2 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/0/2 unit 0 family ethernet-switching vlan members vlan100 set vlans vlan100 vlan-id 100 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan-rewrite translate 200 100 set interfaces xe-0/0/2 unit 0 family ethernet-switching vlan-rewrite translate 300 100
인터페이스에서 VLAN 변환 매핑 확인
show ethernet-switching interface interface-name detail
CLI 명령을 실행하여 인터페이스에서 VLAN 변환 매핑을 확인합니다.
예를 들어, 동일한 인터페이스인 xe-0/0/1에서 다른 VLAN(VLAN 100 및 VLAN 101)을 구성하는 경우를 다시 생각해 보십시오. 그런 다음 서로 다른 호스트 VLAN ID(200 및 300)를 매핑된 각 VLAN 값(각각 100 및 101)에 매핑합니다.
set interfaces xe-0/0/1 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members vlan100 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members vlan101 set vlans vlan100 vlan-id 100 set vlans vlan101 vlan-id 101 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan-rewrite translate 200 100 set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan-rewrite translate 300 101
의 출력에서 show ethernet-switching interface xe-0/0/1 detail
, 출력 필드에 호스트 VLAN ID(200 또는 300)가 Trunk id:
표시됩니다. 또한 출력 필드에 해당 매핑된 VLAN 값(100 또는 101) VLAN id:
과 구성된 VLAN 이름(vlan100 또는 vlan101) VLAN name:
이 출력 필드에 표시됩니다.
user@leaf> show ethernet-switching interface xe-0/0/1 detail Information for interface family: Name: xe-0/0/1.0 Type: IFF Handle: 0x2701c10 Index: 554 Generation: 186 Flags: UP IFD index: 659 Routing/Vlan index: 7 IFL index: 554 Address family: 63 Sequence number: 0 MAC sequence number: 0 MAC limit: 294912 MACs learned: 0 Static MACs learned: 0 Non configured static MACs learned: 0 MAC+IP limit: 0 MAC+IPs learned: 0 Name: xe-0/0/1.0 Type: IFBD (static) Handle: 0x1de8890 Index: Generation: 147 Trunk id: 200 Flags: UP, IFD index: Routing/Vlan index: 5 IFL index: Address family: VLAN id: 100 VLAN name: vlan100 Sequence number: 0 MAC sequence number: 0 MAC limit: 294912 MACs learned: 0 Static MACs learned: 0 Non configured static MACs learned: 0 MAC+IP limit: 0 MAC+IPs learned: 0 VSTP index: 9 STP State: Forwarding Tagging: tagged Rewrite op: SWAP Name: xe-0/0/1.0 Type: IFBD (static) Handle: 0x1de7c50 Index: Generation: 148 Trunk id: 300 Flags: UP, IFD index: Routing/Vlan index: 6 IFL index: Address family: VLAN id: 101 VLAN name: vlan101 Sequence number: 0 MAC sequence number: 0 MAC limit: 294912 MACs learned: 0 Static MACs learned: 0 Non configured static MACs learned: 0 MAC+IP limit: 0 MAC+IPs learned: 0 VSTP index: 9 STP State: Forwarding Tagging: tagged Rewrite op: SWAP