VPLS 구성 소개
가상 프라이빗 LAN 서비스(VPLS)를 사용하면 가상 프라이빗 네트워크(VPN)의 사이트 집합 간에 포인트 투 멀티포인트 LAN을 제공할 수 있습니다.
VPLS 기능을 구성하려면 프로바이더 에지(PE) 라우터에서 VPLS 지원을 활성화해야 합니다. 또한 라우팅 정보를 VPLS의 다른 PE 라우터로 배포하도록 PE 라우터를 구성해야 합니다. 또한 PE 라우터와 고객 에지(CE) 라우터 간의 서킷도 구성해야 합니다.
VPLS 문서에서 PE 라우터와 같은 용어의 단어 라우터는 라우팅 기능을 제공하는 모든 디바이스를 참조하는 데 사용됩니다.
Junos OS vpls 라우팅 인스턴스 또는 Junos Evolv OS에서 가상 스위치 라우팅 인스턴스를 구성하여 VPLS 트래픽을 지원할 수 있습니다. 라우팅 인스턴스는 이더넷 트래픽을 서비스 프로바이더의 네트워크에서 투명하게 전송합니다. 다른 라우팅 인스턴스와 마찬가지로 VPLS 라우팅 인스턴스에 속한 모든 논리적 인터페이스가 해당 인스턴스 아래에 나열됩니다.
vlan-id none
가상 스위치 라우팅 인스턴스에서 정규화된 VLAN을 구성할 때 계층에도
[edit routing-instances routing-instance protocol vpls]
명령문을 포함
service-type single
해야 합니다.
VPLS 라우팅 인스턴스 구성 외에도 PE 라우터 간의 MPLS 레이블 스위칭 경로(LSP), PE 라우터 간의 IBGP 세션 및 PE 및 프로바이더(P) 라우터의 내부 게이트웨이 프로토콜(IGP)을 구성해야 합니다.
VPLS에 대한 많은 구성 절차는 레이어 2 VPN 및 레이어 3 VPN의 절차와 동일합니다.
VPLS 인터페이스 이해하기
인터페이스 이름:
PE 라우터의 각 VPLS 라우팅 인스턴스에 대해 PE와 CE 디바이스 간에 VPLS 트래픽을 전송하는 데 사용할 인터페이스를 지정합니다.
인터페이스 이름의 물리적 및 논리적 부분을 다음 형식 physical.logical
으로 지정합니다. 예를 들어, ge-1/0/1.2에서 ge-1/0/1은 인터페이스 이름의 물리적 부분이며 2는 논리적 부분입니다. 인터페이스 이름의 논리적 부분을 지정하지 않으면 0은 기본적으로 설정됩니다.
논리적 인터페이스는 하나의 라우팅 인스턴스에만 연결될 수 있습니다.
캡슐화 유형:
VPLS 인터페이스의 링크 레이어 캡슐화 유형은 다음 중 하나가 될 수 있습니다.
-
ethernet-vpls
: VPLS가 활성화되어 있고 표준 TPID(태그 프로토콜 식별자) 값을 전달하는 패킷을 수용해야 하는 이더넷 인터페이스에서 이더넷 VPLS 캡슐화를 사용합니다.extended-vlan-vpls
: VLAN 802.1Q 태깅 및 VPLS가 활성화되어 있고 TPID를 0x8100, 0x9100 및 0x9901 전달하는 패킷을 수용해야 하는 이더넷 인터페이스에서 확장된 가상 LAN(VLAN) VPLS 캡슐화를 사용합니다. 1에서 1023까지의 모든 VLAN ID는 고속 이더넷 인터페이스의 VPLS VLAN에 유효하며, 1~4094의 모든 VLAN ID는 기가비트 이더넷 인터페이스의 VPLS VLAN에 유효합니다.vlan-vpls:
VLAN 태깅 및 VPLS가 활성화된 이더넷 인터페이스에서 VLAN VPLS 캡슐화를 사용합니다. VLAN VPLS 캡슐화가 있는 인터페이스는 표준 TPID 값만 전달하는 패킷을 허용합니다. 물리적 인터페이스와 논리적 인터페이스 모두에서 이 캡슐화 유형을 구성해야 합니다. VLAN ID 1~511은 일반 이더넷 VLAN에 대해 예약되고, ID 512~1023은 고속 이더넷 인터페이스의 VPLS VLAN에 대해 예약되며, ID 512~4094는 기가비트 이더넷 인터페이스의 VPLS VLAN에 대해 예약됩니다. flexible-ethernet-services
: 여러 단위당 이더넷 캡슐화를 구성하려는 경우 유연한 이더넷 서비스 캡슐화를 사용합니다. 이 캡슐화 유형을 사용하면 단일 물리적 포트에서 경로, TCC, CCC 및 VPLS 캡슐화의 조합을 구성할 수 있습니다. 어그리게이션 이더넷 번들은 이 캡슐화 유형을 사용할 수 없습니다.유연한 이더넷 서비스 캡슐화를 위해 1에서 511까지 VLAN ID는 더 이상 일반 VLAN에 대해 예약되지 않습니다.
VPLS CLI 구성 계층 구조 Junos OS Evolved와 Junos OS 간의 차이
Junos OS 또는 Junos OS Evolved에서 실행되는 디바이스에서 VPLS를 구성할 때는 CLI 계층의 차이점을 인식해야 합니다. 표 는 Junos OS 및 Junos OS Evolved에서 실행되는 디바이스의 VPLS CLI 계층 구성 차이점을 설명합니다.
Junos OS 실행되는 디바이스에 대해 알아보려면 https://www.juniper.net/documentation/product/us/en/junos-os/#cat=by_product.
Junos OS Evolved에서 실행되는 디바이스에 대해 알아보려면 https://www.juniper.net/documentation/product/us/en/junos-os-evolved/#cat=hardware_documentation.
작업 | Junos OS | Junos OS 진화 |
---|---|---|
VPLS 라우팅 인스턴스 활성화 | user@host# set routing-instances routing-instance-name instance-type vpls user@host# set routing-instances routing-instance-name protocols vpls neighbor network-id user@host# set routing-instances routing-instance-name protocols vpls no-tunnel-services user@host# set routing-instances routing-instance-name protocols vpls vpls-id number user@host# set routing-instances routing-instance-name vlan-id number user@host# set routing-instances routing-instance-name interface interface-name |
user@host# set routing-instances routing-instance-name instance-type virtual-switch user@host# set routing-instances routing-instance-name protocols vpls neighbor network-id user@host# set routing-instances routing-instance-name protocols vpls no-tunnel-services user@host# set routing-instances routing-instance-name protocols vpls vpls-id number user@host# set routing-instances routing-instance-name vlans vlan-name vlan-id number user@host# set routing-instances routing-instance-name vlans vlan-name interface interface-name
참고:
Junos OS Evolved에서 터널 인터페이스가 지원되지 않기 때문에 구성을 구성 |
VLAN ID 없이 VLAN을 구성하거나 VLAN ID를 (으)로 또는 VLAN ID로 none 구성합니다. all |
user@host# set routing-instances routing-instance-name |
VLAN ID 없이 VLAN 구성 user@host# set routing-instances routing-instance-name vlans vlan-name user@host# set routing-instances routing-instance-name vlans vlan-name protocols vpls service-type single VLAN ID를 사용하여 VLAN을 또는 으로 user@host# set routing-instances routing-instance-name vlans vlan-name vlan-id none user@host# set routing-instances routing-instance-name vlans vlan-name protocols vpls service-type single
참고:
VLAN ID 없이 VLAN을 구성하거나 VLAN ID를 로, 또는 VLAN ID로 |
인터페이스에서 VPLS 패밀리 구성 | user@host# set interfaces interface-name unit number family vpls |
참고:
Junos OS Evolved에서 실행되는 디바이스는 인터페이스에서 패밀리 VPLS 구성을 지원하지 않습니다. |
인터페이스에서 VPLS 캡슐화 구성 | user@host# set interfaces interface-name flexible-vlan-tagging user@host# set interfaces interface-name speed 100g user@host# set interfaces interface-name encapsulation flexible-ethernet-services user@host# set interfaces interface-name unit number encapsulation vlan-vpls user@host# set interfaces interface-name unit number vlan-id number |
user@host# set interfaces interface-name flexible-vlan-tagging user@host# set interfaces interface-name speed 100g user@host# set interfaces interface-name encapsulation flexible-ethernet-services user@host# set interfaces interface-name unit number encapsulation vlan-bridge user@host# set interfaces interface-name unit number vlan-id number |
Junos OS VPLS 구성 샘플
다음은 Junos OS 대한 샘플 VPLS 구성입니다.
구성
[edit] user@host# set interfaces xe-0/0/2 flexible-vlan-tagging user@host# set interfaces xe-0/0/2 speed 40g user@host# set interfaces xe-0/0/2 encapsulation flexible-ethernet-services user@host# set interfaces xe-0/0/2 unit 108 encapsulation vlan-vpls user@host# set interfaces xe-0/0/2 unit 108 vlan-id 108 user@host# set interfaces xe-0/0/2 unit 108 family vpls user@host# set routing-instances VPLS instance-type vpls user@host# set routing-instances VPLS interface xe-0/0/2.108 user@host# set routing-instances VPLS protocols vpls interface xe-0/0/2.108 user@host# set routing-instances VPLS protocols vpls neighbor 192.168.1.3 user@host# set routing-instances VPLS protocols vpls no-tunnel-services user@host# set routing-instances VPLS protocols vpls vpls-id 1001
결과
user@host> show configuration interfaces xe-0/0/2 flexible-vlan-tagging; speed 40g; encapsulation flexible-ethernet-services; } unit 108 { encapsulation vlan-vpls; vlan-id 108; family vpls; } user@host> show configuration routing-instances VPLS { protocols { vpls { interface xe-0/0/2.108; neighbor 192.168.1.3; no-tunnel-services; vpls-id 1001; } } instance-type vpls; interface xe-0/0/2.108; }
확인
구성이 제대로 작동하는지 확인합니다.
명령을 실행 show vpls connections
하여 VPLS 연결 상태를 확인합니다.
user@host> show vpls connections Layer-2 VPN connections: Legend for interface status Up -- operational Dn -- down Instance: VPLS VPLS-id: 1001 Neighbor Type St Time last up # Up trans 192.168.1.3(vpls-id 1001) rmt Up Jun 12 12:50:07 2023 1 Remote PE: 192.168.1.3, Negotiated control-word: No Incoming label: 259, Outgoing label: 22 Negotiated PW status TLV: No Local interface: lsi.1049600, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls VPLS neighbor 192.168.1.3 vpls-id 1001 Flow Label Transmit: No, Flow Label Receive: No
이 출력에서 VPLS 연결 상태는 두 PE 라우터 사이에 있습니다.
명령을 실행하여 로컬 PE 및 원격 PE에서 학습된 MAC 주소 확인합니다 show vpls mac-table
.
user@host> show vpls mac-table MAC flags (S -static MAC, D -dynamic MAC, L -locally learned, C -Control MAC O -OVSDB MAC, SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC, P -Pinned MAC) Routing instance : VPLS Bridging domain : __VPLS__, VLAN : NA MAC MAC Logical NH MAC active address flags interface Index property source 00:00:00:42:98:47 D lsi.1049346 00:00:00:42:98:4a D xe-0/0/2.108
이 출력에서는 VLAN ID 108이 있는 로컬 PE 인터페이스(et-0/0/4)에서 학습된 MAC 주소(00:00:00:42:98:47)를 볼 수 있습니다. 그리고 MAC 주소(00:00:00:42:98:4a)는 VLAN ID 108이 있는 원격 PE 인터페이스(lsi.1048832)에서 학습됩니다.
진화한 Junos OS 대한 VPLS 구성 샘플
다음은 Junos OS Evolved에 대한 샘플 VPLS 구성입니다.
구성
[edit] user@host# set interfaces et-0/0/4 flexible-vlan-tagging user@host# set interfaces et-0/0/4 speed 40g user@host# set interfaces et-0/0/4 encapsulation flexible-ethernet-services user@host# set interfaces et-0/0/4 unit 108 encapsulation vlan-bridge user@host# set interfaces et-0/0/4 unit 108 vlan-id 108 user@host# set routing-instances VPLS instance-type virtual-switch user@host# set routing-instances VPLS protocols vpls neighbor 192.168.1.3 user@host# set routing-instances VPLS protocols vpls no-tunnel-services user@host# set routing-instances VPLS protocols vpls vpls-id 1001 user@host# set routing-instances VPLS vlans v108 vlan-id 108 user@host# set routing-instances VPLS vlans v108 interface et-0/0/4.108
결과
user@host> show configuration interfaces et-0/0/4 flexible-vlan-tagging; speed 40g; encapsulation flexible-ethernet-services; unit 108 { encapsulation vlan-bridge; vlan-id 108; } user@host> show configuration routing-instances VPLS { instance-type virtual-switch; protocols { vpls { neighbor 192.168.1.3; no-tunnel-services; vpls-id 1001; } } vlans { V108 { vlan-id 108; interface et-0/0/4.108; } } }
확인
구성이 제대로 작동하는지 확인합니다.
명령을 실행 show vpls connections
하여 VPLS 연결 상태를 확인합니다.
user@host> show vpls connections Layer-2 VPN connections: Legend for interface status Up -- operational Dn -- down Instance: VPLS VPLS-id: 1001 Neighbor Type St Time last up # Up trans 192.168.1.3(vpls-id 1001) rmt Up Jun 12 12:50:07 2023 1 Remote PE: 192.168.1.3, Negotiated control-word: No Incoming label: 22, Outgoing label: 259 Negotiated PW status TLV: No Local interface: lsi.1048576, Status: Up, Encapsulation: ETHERNET Description: Intf - vpls VPLS neighbor 192.168.1.3 vpls-id 1001 Flow Label Transmit: No, Flow Label Receive: No
이 출력에서 VPLS 연결 상태는 두 PE 라우터 사이에 있습니다.
명령을 실행하여 로컬 PE 및 원격 PE에서 학습된 MAC 주소 확인합니다 show ethernet-switching table instance VPLS
.
user@host> show ethernet-switching table instance VPLS MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static, C - Control MAC SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC GBP - group based policy) Ethernet switching table : 2 entries, 2 learned Routing instance : VPLS Vlan MAC MAC Age GBP Logical NH RTR name address flags Tag interface Index ID V108 00:00:00:42:98:47 D - et-0/0/4.108 0 0 V108 00:00:00:42:98:4a D - lsi.1048832 0 0
이 출력에서는 VLAN ID 108이 있는 로컬 PE 인터페이스(et-0/0/4)에서 학습된 MAC 주소(00:00:00:42:98:47)를 볼 수 있습니다. 그리고 MAC 주소(00:00:00:42:98:4a)는 VLAN ID 108이 있는 원격 PE 인터페이스(lsi.1048832)에서 학습됩니다.