서비스 프로바이더 VPN
Carrier-of-Carriers VPN 이해하기
VPN 서비스 프로바이더의 고객은 최종 고객을 위한 서비스 프로바이더일 수 있습니다. 다음은 RFC 4364에 설명된 것과 같이 Carrier-of-Carriers VPN의 두 가지 주요 유형입니다.
고객으로서의 인터넷 서비스 프로바이더—VPN 고객은 VPN 서비스 프로바이더의 네트워크를 사용하여 지리적으로 이질적인 지역 네트워크를 연결하는 ISP입니다. 고객은 지역 네트워크 내에서 MPLS를 구성할 필요가 없습니다.
고객으로서의 VPN 서비스 프로바이더—VPN 고객은 그 자체로 고객에게 VPN 서비스를 제공하는 VPN 서비스 프로바이더입니다. 서비스 프로바이더 VPN 서비스 고객은 사이트 간 연결을 위해 백본 VPN 서비스 프로바이더에 의존합니다. 고객 VPN 서비스 공급자는 지역 네트워크 내에서 MPLS를 실행해야 합니다.
그림 1 은 통신사 VPN 서비스에 사용되는 네트워크 아키텍처를 보여줍니다.
이 주제에서는 다음 내용을 다룹니다.
고객으로서의 인터넷 서비스 프로바이더
이러한 유형의 서비스 프로바이더 VPN 구성에서 ISP A는 ISP B에 인터넷 서비스를 제공하도록 네트워크를 구성합니다. ISP B는 인터넷 서비스를 원하는 고객에게 연결을 제공하지만 실제 인터넷 서비스는 ISP A에 의해 제공됩니다.
이러한 유형의 캐리어 VPN 구성에는 다음과 같은 특성이 있습니다.
ISP B(Carrier-of-Carriers VPN 서비스 고객)는 네트워크에서 MPLS를 구성할 필요가 없습니다.
ISP A(Carrier-of-Carriers VPN 서비스 프로바이더)는 네트워크에서 MPLS를 구성해야 합니다.
또한 MPLS는 통신사 VPN 서비스 고객 및 통신사 VPN 서비스 프로바이더의 네트워크에서 함께 연결된 CE 라우터 및 PE 라우터에 구성되어야 합니다.
고객으로서의 VPN 서비스 프로바이더
VPN 서비스 프로바이더는 그 자체로 VPN 서비스 프로바이더인 고객을 가질 수 있습니다. 계층적 또는 재귀적 VPN이라고도 하는 이러한 유형의 구성에서 고객 VPN 서비스 프로바이더의 VPN-IPv4 경로는 외부 경로로 간주되며, 백본 VPN 서비스 프로바이더는 이를 VRF 테이블로 가져오지 않습니다. 백본 VPN 서비스 프로바이더는 고객 VPN 서비스 프로바이더의 내부 경로만 VRF 테이블로 가져옵니다.
프로바이더 간 VPN과 캐리어 오브 캐리어 VPN의 유사점과 차이점이 표 1에 나와 있습니다.
특징 |
ISP 고객 |
VPN 서비스 프로바이더 고객 |
|---|---|---|
고객 에지 디바이스 |
AS 경계 라우터 |
PE 라우터 |
IBGP 세션 |
IPv4 경로 전달 |
관련 레이블과 함께 외부 VPN-IPv4 경로 전달 |
고객 네트워크 내에서 포워딩 |
MPLS는 선택 사항입니다 |
MPLS가 필요합니다 |
고객으로서 VPN 서비스에 대한 지원은 Junos OS 릴리스 17.1R1부터 QFX10000 스위치에서 지원됩니다.
인터넷 서비스를 제공하는 고객을 위한 서비스 프로바이더 VPN 구성
기본적인 인터넷 서비스를 제공하고자 하는 고객을 위해 서비스 프로바이더 VPN 서비스를 구성할 수 있습니다. 서비스 프로바이더 VPN 서비스 프로바이더는 네트워크에서 MPLS를 구성해야 하지만, 이 구성은 서비스 프로바이더 서비스 고객의 경우 선택 사항입니다. 서비스 프로바이더 VPN 아키텍처 는 이러한 유형의 서비스에서 라우터 또는 스위치가 상호 연결하는 방법을 보여줍니다.
carrier-of-carriers VPN을 구성하려면 다음 섹션에서 설명하는 작업을 수행합니다.
서비스 프로바이더 VPN 서비스 구성 고객의 CE 라우터
서비스 프로바이더 VPN 서비스 고객의 라우터(또는 스위치)는 서비스 프로바이더의 PE 라우터 또는 스위치와 관련하여 CE 라우터 역할을 합니다. 다음 섹션에서는 서비스 프로바이더 VPN 서비스 고객의 CE 라우터 또는 스위치를 구성하는 방법에 대해 설명합니다.
MPLS 구성
고객의 CE 라우터 또는 스위치에서 MPLS를 구성하려면 다음 문을 포함합니다.mpls
mpls {
traffic-engineering bgp-igp;
interface interface-name;
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
BGP 구성
고객의 내부 경로를 정렬하도록 그룹을 구성하려면 다음 문을 포함합니다.bgp
bgp {
group group-name {
type internal;
local-address address;
neighbor address;
}
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
고객의 CE 라우터(또는 스위치)는 VPN 서비스 프로바이더의 라우터에 레이블을 보낼 수 있어야 합니다. BGP 그룹 구성에 문을 포함하여 labeled-unicast 이를 활성화합니다.
bgp {
group group-name {
export internal;
peer-as as-number;
neighbor address {
family inet {
labeled-unicast;
}
}
}
}
다음 계층 수준에서 문을 포함 bgp 할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
OSPF 구성
고객의 CE 라우터 또는 스위치에서 최단 경로 우선(OSPF)을 구성하려면 다음 문을 포함합니다.ospf
ospf {
area area-id {
interface interface-name {
passive;
}
interface interface-name;
}
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
정책 옵션 구성
고객의 CE 라우터 또는 스위치에서 정책 옵션을 구성하려면 다음 문을 포함합니다.policy-statement
policy-statement statement-name {
term term-name {
from protocol [ospf direct ldp];
then accept;
}
term term-name {
then reject;
}
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit policy-options][edit logical-systems logical-system-name policy-options]
서비스 프로바이더 VPN 서비스 프로바이더의 PE 라우터 구성
서비스 프로바이더의 PE 라우터는 고객의 CE 라우터에 연결하고 프로바이더의 네트워크를 통해 고객의 VPN 트래픽을 전달합니다.
다음 섹션에서는 서비스 프로바이더 VPN 서비스 프로바이더의 PE 라우터를 구성하는 방법에 대해 설명합니다.
MPLS 구성
프로바이더의 PE 라우터 또는 스위치에서 MPLS를 구성하려면 다음 문을 포함합니다.mpls
mpls {
interface interface-name;
interface interface-name;
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
BGP 구성
프로바이더 네트워크의 다른 쪽 끝에 있는 프로바이더 PE 라우터와의 BGP 세션을 구성하려면 다음과 같은 문을 포함합니다.bgp
bgp {
group group-name {
type internal;
local-address address;
family inet-vpn {
any;
}
neighbor address;
}
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
IS-IS 구성
프로바이더의 PE 라우터 또는 스위치에서 IS-IS를 구성하려면 다음 문을 포함합니다.isis
isis {
interface interface-name;
interface interface-name {
passive;
}
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
LDP 구성
공급자의 PE 라우터 또는 스위치에서 LDP를 구성하려면 다음 문을 포함합니다.ldp
ldp {
interface interface-name;
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
라우팅 인스턴스 구성
고객의 CE 라우터 또는 스위치로 레이어 3 VPN 서비스를 구성하려면 PE 라우터(또는 스위치)가 고객의 CE 라우터 또는 스위치에 레이블을 보낼 수 있도록 라우팅 인스턴스 구성에 명령문을 포함 labeled-unicast 합니다.
routing-instance-name {
instance-type vrf;
interface interface-name;
route-distinguisher address;
vrf-import policy-name;
vrf-export policy-name;
protocols {
bgp {
group group-name {
peer-as as-number;
neighbor address {
family inet {
labeled-unicast;
}
}
}
}
}
}
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit routing-instances][edit logical-systems logical-system-name routing-instances]
정책 옵션 구성
고객의 CE 라우터 또는 스위치에서 경로를 가져오도록 정책 문을 구성하려면 다음 문을 포함합니다.policy-statement
policy-statement policy-name {
term term-name {
from {
protocol bgp;
community community-name;
}
then accept;
}
term term-name {
then reject;
}
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit policy-options][edit logical-systems logical-system-name policy-options]
고객의 CE 라우터 또는 스위치로 경로를 내보내도록 정책 문을 구성하려면 and community 문을 포함 policy-statement 합니다.
policy-statement policy-name {
term term-name {
from protocol bgp;
then {
community add community-name;
accept;
}
}
term term-name {
then reject;
}
}
community community-name members value;
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit policy-options][edit logical-systems logical-system-name policy-options]
또한보십시오
Carrier-of-Carriers VPN 예 - 고객이 인터넷 서비스를 제공합니다.
이 예에서 통신사 고객은 네트워크에서 MPLS 및 LDP를 구성할 필요가 없습니다. 그러나 통신사 제공업체는 네트워크에서 MPLS 및 LDP를 구성해야 합니다.
구성 정보는 다음 섹션을 참조하십시오.
- 서비스 프로바이더 서비스를 위한 네트워크 토폴로지
- 라우터 A 구성
- 라우터 B의 구성
- 라우터 C 구성
- 라우터 D 구성
- 라우터 E의 구성
- 라우터 F의 구성
- 라우터 G의 구성
- 라우터 H 구성
- 라우터 I 구성
- 라우터 J의 구성
- 라우터 K 구성
- 라우터 L 구성
서비스 프로바이더 서비스를 위한 네트워크 토폴로지
서비스 프로바이더 서비스를 통해 인터넷 서비스 프로바이더(ISP)는 여러 위치의 투명한 아웃소싱 백본에 연결할 수 있습니다.
그림 2 는 이 carrier-of-carriers 예의 네트워크 토폴로지를 보여줍니다.
라우터 A 구성
이 예에서 라우터 A는 최종 고객을 나타냅니다. 이 라우터를 CE 디바이스로 구성합니다.
[edit]
protocols {
bgp {
group to-routerB {
export attached;
peer-as 21;
as-override;
neighbor 192.168.197.169;
}
}
}
policy-options {
policy-statement attached {
from protocol direct;
then accept;
}
}
라우터 B의 구성
라우터 B는 최종 고객을 어그리게이션하고 네트워크에 연결하는 게이트웨이 라우터 역할을 할 수 있습니다. 풀 메시 IBGP 세션이 구성된 경우 경로 리플렉터를 사용할 수 있습니다.
[edit]
protocols {
bgp {
group int {
type internal;
local-address 10.255.14.179;
neighbor 10.255.14.175;
neighbor 10.255.14.181;
neighbor 10.255.14.176;
neighbor 10.255.14.178;
neighbor 10.255.14.177;
}
group to-vpn-blue {
peer-as 1;
neighbor 192.168.197.170;
}
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fe-1/0/3.0;
interface fe-1/0/2.0 {
passive;
}
}
}
}
라우터 C 구성
라우터 C를 구성합니다.
[edit]
protocols {
bgp {
group int {
type internal;
local-address 10.255.14.176;
neighbor 10.255.14.179;
neighbor 10.255.14.175;
neighbor 10.255.14.177;
neighbor 10.255.14.178;
neighbor 10.255.14.181;
}
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fe-0/3/3.0;
interface fe-0/3/0.0;
}
}
}
라우터 D 구성
라우터 D는 AS 10023과 관련된 CE 라우터입니다. carrier-of-carriers VPN에서 CE 라우터는 통신사 공급자에게 레이블을 보낼 수 있어야 합니다. 이것은 그룹to-isp-red의 문을 사용하여 labeled-unicast 수행됩니다.
[edit]
protocols {
mpls {
interface t3-0/0/0.0;
}
bgp {
group int {
type internal;
local-address 10.255.14.175;
neighbor 10.255.14.179;
neighbor 10.255.14.176;
neighbor 10.255.14.177;
neighbor 10.255.14.178;
neighbor 10.255.14.181;
}
group to-isp-red {
export internal;
peer-as 10023;
neighbor 192.168.197.13 {
family inet {
labeled-unicast;
}
}
}
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fe-0/3/0.0;
interface t3-0/0/0.0 {
passive;
}
}
}
}
policy options {
policy-statement internal {
term a {
from protocol [ ospf direct ];
then accept;
}
term b {
then reject;
}
}
}
라우터 E의 구성
이 구성은 inet-vpn 라우터 H와의 IBGP 세션과 라우터 D와의 VPN의 PE 라우터 부분을 설정합니다. 이 예에서는 라우터 D가 레이블을 보내야 하므로 가상 라우팅 및 포워딩(VRF) 테이블 내에 문을 labeled-unicast 사용하여 BGP 세션을 구성합니다.
[edit]
protocols {
mpls {
interface t3-0/2/0.0;
interface at-0/1/0.0;
}
bgp {
group pe-pe {
type internal;
local-address 10.255.14.171;
family inet-vpn {
any;
}
neighbor 10.255.14.173;
}
}
isis {
interface at-0/1/0.0;
interface lo0.0 {
passive;
}
}
ldp {
interface at-0/1/0.0;
}
}
routing-instances {
vpn-isp1 {
instance-type vrf;
interface t3-0/2/0.0;
route-distinguisher 10.255.14.171:21;
vrf-import vpn-isp1-import;
vrf-export vpn-isp1-export;
protocols {
bgp {
group to-isp1 {
peer-as 21;
neighbor 192.168.197.14 {
family inet {
labeled-unicast;
}
}
}
}
}
}
}
policy-options {
policy-statement vpn-isp1-import {
term a {
from {
protocol bgp;
community vpn-isp1-comm;
}
then accept;
}
term b {
then reject;
}
}
policy-statement vpn-isp1-export {
term a {
from protocol bgp;
then {
community add vpn-isp1-comm;
accept;
}
}
term b {
then reject;
}
}
community vpn-isp1-comm members target:69:21;
}
라우터 F의 구성
라우터 F를 레이블 스와핑 라우터로 사용하도록 구성합니다.
[edit]
protocols {
isis {
interface so-0/2/0.0;
interface at-0/3/0.0;
interface lo0.0 {
passive;
}
}
ldp {
interface so-0/2/0.0;
interface at-0/3/0.0;
}
}
라우터 G의 구성
라우터 G를 레이블 스와핑 라우터로 구성합니다.
[edit]
protocols {
isis {
interface so-0/0/0.0;
interface so-1/0/0.0;
interface lo0.0 {
passive;
}
}
ldp {
interface so-0/0/0.0;
interface so-1/0/0.0;
}
}
라우터 H 구성
라우터 H는 AS 10023의 PE 라우터 역할을 합니다. 다음 구성은 라우터 F의 구성과 유사합니다.
[edit]
protocols {
mpls {
interface fe-1/1/0.0;
interface so-1/0/0.0;
}
bgp {
group pe-pe {
type internal;
local-address 10.255.14.173;
family inet-vpn {
any;
}
neighbor 10.255.14.171;
}
}
isis {
interface so-1/0/0.0;
interface lo0.0 {
passive;
}
}
ldp {
interface so-1/0/0.0;
}
}
routing-instances {
vpn-isp1 {
instance-type vrf;
interface fe-1/1/0.0;
route-distinguisher 10.255.14.173:21;
vrf-import vpn-isp1-import;
vrf-export vpn-isp1-export;
protocols {
bgp {
group to-isp1 {
peer-as 21;
neighbor 192.168.197.94 {
family inet {
labeled-unicast;
}
}
}
}
}
}
}
policy-options {
policy-statement vpn-isp1-import {
term a {
from {
protocol bgp;
community vpn-isp1-comm;
}
then accept;
}
term b {
then reject;
}
}
policy-statement vpn-isp1-export {
term a {
from protocol bgp;
then {
community add vpn-isp1-comm;
accept;
}
}
term b {
then reject;
}
}
community vpn-isp1-comm members target:69:21;
}
라우터 I 구성
기본 인터넷 서비스 고객(라우터 L)에 연결하도록 라우터 I을 구성합니다.
[edit]
protocols {
mpls {
interface fe-1/0/1.0;
interface fe-1/1/3.0;
}
bgp {
group int {
type internal;
local-address 10.255.14.181;
neighbor 10.255.14.177;
neighbor 10.255.14.179;
neighbor 10.255.14.175;
neighbor 10.255.14.176;
neighbor 10.255.14.178;
}
group to-vpn-green {
peer-as 1;
neighbor 192.168.197.198;
}
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fe-1/0/1.0 {
passive;
}
interface fe-1/1/3.0;
}
}
}
라우터 J의 구성
라우터 J를 레이블 스와핑 라우터로 구성합니다.
[edit]
protocols {
bgp {
group int {
type internal;
local-address 10.255.14.178;
neighbor 10.255.14.177;
neighbor 10.255.14.181;
neighbor 10.255.14.175;
neighbor 10.255.14.176;
neighbor 10.255.14.179;
}
}
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fe-1/0/2.0;
interface fe-1/0/3.0;
}
}
라우터 K 구성
라우터 K는 통신사 프로바이더와의 연결이 끝날 때 CE 라우터 역할을 합니다. 라우터 D의 구성에서와 같이 EBGP 세션에 대한 문을 포함 labeled-unicast 합니다:
[edit]
protocols {
mpls {
interface fe-1/1/2.0;
interface fe-1/0/2.0;
}
bgp {
group int {
type internal;
local-address 10.255.14.177;
neighbor 10.255.14.181;
neighbor 10.255.14.178;
neighbor 10.255.14.175;
neighbor 10.255.14.176;
neighbor 10.255.14.179;
}
group to-isp-red {
export internal;
peer-as 10023;
neighbor 192.168.197.93 {
family inet {
labeled-unicast;
}
}
}
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fe-1/0/2.0;
interface fe-1/1/2.0 {
passive;
}
}
}
}
policy-options {
policy-statement internal {
term a {
from protocol [ ospf direct ];
then accept;
}
term b {
then reject;
}
}
}
라우터 L 구성
라우터 L을 캐리어의 통신사 VPN 서비스의 최종 고객으로 구성합니다.
[edit]
protocols {
bgp {
group to-routerI {
export attached;
peer-as 21;
neighbor 192.168.197.197;
}
}
}
policy-options {
policy-statement attached {
from protocol direct;
then accept;
}
}
또한보십시오
VPN 서비스를 제공하는 고객을 위한 서비스 프로바이더 VPN 구성
VPN 서비스를 원하는 고객을 위해 서비스 프로바이더 VPN 서비스를 구성할 수 있습니다.
고객 및 프로바이더의 네트워크에서 라우터(또는 스위치)를 구성하여 carrier-of-carriers VPN 서비스를 활성화하려면 다음 섹션의 단계를 수행합니다.
서비스 프로바이더 고객의 PE 라우터 구성
서비스 프로바이더 고객의 PE 라우터(또는 스위치)는 최종 고객의 CE 라우터(또는 스위치)에 연결되어 있습니다.
다음 섹션에서는 캐리어의 캐리어 고객의 PE 라우터(또는 스위치)를 구성하는 방법에 대해 설명합니다.
MPLS 구성
carrier-of-carriers 고객의 PE 라우터(또는 스위치)에서 MPLS를 구성하려면 다음 문을 포함합니다.mpls
mpls {
interface interface-name;
interface interface-name;
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
BGP 구성
carrier-of-carriers 고객의 CE 라우터(또는 스위치)에 대한 IBGP 세션 구성에 문을 포함 labeled-unicast 하고, 네트워크의 반대편에 있는 carrier-of-carriers PE 라우터(또는 스위치)에 대한 IBGP 세션 구성에 문을 family-inet-vpn 포함합니다.
bgp {
group group-name {
type internal;
local-address address;
neighbor address {
family inet {
labeled-unicast;
resolve-vpn;
}
}
}
neighbor address {
family inet-vpn {
any;
}
}
}
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
OSPF 구성
carrier-of-carriers 고객의 PE 라우터(또는 스위치)에서 최단 경로 우선(OSPF)을 구성하려면 다음 문을 포함합니다.ospf
ospf {
area area-id {
interface interface-name {
passive;
}
interface interface-name;
}
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
LDP 구성
carrier-of-carriers 고객의 PE 라우터(또는 스위치)에서 LDP를 구성하려면 다음 문을 포함합니다.ldp
ldp {
interface interface-name;
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
라우팅 인스턴스에서 VPN 서비스 구성
캐리어의 캐리어 고객의 PE 라우터(또는 스위치)에서 최종 고객의 CE 라우터(또는 스위치)에 대한 VPN 서비스를 구성하려면 다음 문을 포함합니다.
instance-type vrf;
interface interface-name;
route-distinguisher address;
vrf-import policy-name;
vrf-export policy-name;
protocols {
bgp {
group group-name {
peer-as as-number;
neighbor address;
}
}
}
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit routing-instances routing-instance-name][edit logical-systems logical-system-name routing-instances routing-instance-name]
정책 옵션 구성
최종 고객의 CE 라우터(또는 스위치)와 경로를 가져오고 내보내는 정책 옵션을 구성하려면 and community 문을 포함 policy-statement 합니다.
policy-statement policy-name {
term term-name {
from {
protocol bgp;
community community-name;
}
then accept;
}
term term-name {
then reject;
}
}
policy-statement policy-name {
term term-name {
from protocol bgp;
then {
community add community-name;
accept;
}
}
term term-name {
then reject;
}
}
community community-name members value;
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit policy-options][edit logical-systems logical-system-name policy-options]
서비스 프로바이더 구성 고객의 CE 라우터(또는 스위치)
서비스 프로바이더 고객의 CE 라우터(또는 스위치)는 프로바이더의 PE 라우터(또는 스위치)에 연결됩니다. 다음 섹션의 지침을 완료하여 carrier-of-carriers 고객의 CE 라우터(또는 스위치)를 구성합니다.
MPLS 구성
carrier-of-carriers 고객의 CE 라우터(또는 스위치)에 대한 MPLS 구성에서 공급자의 PE 라우터(또는 스위치) 및 고객 네트워크의 P 라우터(또는 스위치)에 대한 인터페이스를 포함합니다.
mpls {
traffic-engineering bgp-igp;
interface interface-name;
interface interface-name;
}
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
BGP 구성
캐리어의 캐리어 고객의 CE 라우터(또는 스위치)에 대한 BGP 구성에서 VPN 서비스를 최종 고객의 CE 라우터(또는 스위치)에 연결된 PE 라우터(또는 스위치)로 확장하는 명령문을 포함하는 labeled-unicast 그룹을 구성합니다.
bgp {
group group-name {
type internal;
local-address address;
neighbor address {
family inet {
labeled-unicast;
}
}
}
}
다음 계층 수준에서 문을 포함 bgp 할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
레이블이 지정된 내부 경로를 프로바이더의 PE 라우터(또는 스위치)로 전송하도록 그룹을 구성하려면 다음 문을 포함합니다.bgp
bgp {
group group-name {
export internal;
peer-as as-number;
neighbor address {
family inet {
labeled-unicast;
}
}
}
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
OSPF 및 LDP 구성
carrier-of-carriers 고객의 CE 라우터(또는 스위치)에서 OSPF 및 LDP를 구성하려면 and ldp 문을 포함 ospf 합니다.
ospf {
area area-id {
interface interface-name {
passive;
}
interface interface-name;
}
}
ldp {
interface interface-name;
}
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
정책 옵션 구성
carrier-of-carriers 고객의 CE 라우터(또는 스위치)에서 정책 옵션을 구성하려면 다음 문을 포함합니다.policy-statement
policy-statement policy-statement-name {
term term-name {
from protocol [ ospf direct ldp ];
then accept;
}
term term-name {
then reject;
}
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit policy-options][edit logical-systems logical-system-name policy-options]
프로바이더의 PE 라우터 또는 스위치 구성
서비스 프로바이더 프로바이더의 PE 라우터(또는 스위치)는 서비스 프로바이더 고객의 CE 라우터(또는 스위치)에 연결됩니다. 다음 섹션의 지침을 완료하여 프로바이더의 PE 라우터(또는 스위치)를 구성하십시오.
MPLS 구성
MPLS 구성에서 적어도 두 개의 인터페이스(하나는 고객의 CE 라우터(또는 스위치)에 연결하고 다른 하나는 공급자 네트워크의 반대편에 있는 공급자의 PE 라우터(또는 스위치)에 연결하는 인터페이스입니다.
interface interface-name; interface interface-name;
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit protocols mpls][edit logical-systems logical-system-name protocols mpls]
PE-to-PE BGP 세션 구성
프로바이더의 PE 라우터(또는 스위치)에서 PE-to-PE BGP 세션을 구성하여 VPN-IPv4 경로가 PE 라우터(또는 스위치) 사이를 통과할 수 있도록 하려면 다음 문을 포함하십시오.bgp
bgp {
group group-name {
type internal;
local-address address;
family inet-vpn {
any;
}
neighbor address;
}
}
다음 계층 수준에서 이 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
IS-IS 및 LDP 구성
프로바이더의 PE 라우터(또는 스위치)에서 IS-IS 및 LDP를 구성하려면 and ldp 문을 포함 isis 합니다.
isis {
interface interface-name;
interface interface-name {
passive;
}
}
ldp {
interface interface-name;
}
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit protocols][edit logical-systems logical-system-name protocols]
정책 옵션 구성
프로바이더의 PE 라우터(또는 스위치)에서 정책 문을 구성하여 통신사 고객의 네트워크에서 경로를 내보내고 가져오려면 and community 문을 포함 policy-statement 합니다.
policy-statement statement-name {
term term-name {
from {
protocol bgp;
community community-name;
}
then accept;
}
term term-name {
then reject;
}
}
policy-statement statement-name {
term term-name {
from protocol bgp;
then {
community add community-name;
accept;
}
}
term term-name {
then reject;
}
}
community community-name members value;
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit policy-options][edit logical-systems logical-system-name policy-options]
CE 라우터로 경로를 전송하도록 라우팅 인스턴스 구성
프로바이더의 PE 라우터(또는 스위치)에서 라우팅 인스턴스를 구성하여 통신사 고객의 CE 라우터(또는 스위치)에 레이블이 지정된 경로를 전송하려면 다음 문을 포함합니다.
instance-type vrf;
interface interface-name;
route-distinguisher value;
vrf-import policy-name;
vrf-export policy-name;
protocols {
bgp {
group group-name {
peer-as as-number;
neighbor address {
family inet {
labeled-unicast;
}
}
}
}
}
다음 계층 수준에서 이러한 문을 포함할 수 있습니다.
[edit routing-instances routing-instance-name][edit logical-systems logical-system-name routing-instances routing-instance-name]
또한보십시오
Carrier-of-Carriers VPN 예 - 고객이 VPN 서비스를 제공합니다
이 예에서 통신 사 고객은 최종 고객에게 VPN 서비스를 제공하기 위해 네트워크에서 특정 형태의 MPLS(RSVP[Resource Reservation Protocol] 또는 LDP)를 실행해야 합니다. 아래 예에서 라우터 B와 라우터 I은 PE 라우터(또는 스위치) 역할을 하며, VPN-IPv4 경로를 교환하는 경우 이러한 라우터 간에 작동하는 MPLS 경로가 필요합니다.
구성 정보는 다음 섹션을 참조하십시오.
- 서비스 프로바이더 서비스를 위한 네트워크 토폴로지
- 라우터 A 구성
- 라우터 B의 구성
- 라우터 C 구성
- 라우터 D 구성
- 라우터 E의 구성
- 라우터 F의 구성
- 라우터 G의 구성
- 라우터 H 구성
- 라우터 I 구성
- 라우터 J의 구성
- 라우터 K 구성
- 라우터 L 구성
서비스 프로바이더 서비스를 위한 네트워크 토폴로지
서비스 프로바이더 서비스를 통해 인터넷 서비스 프로바이더(ISP)는 여러 위치의 투명한 아웃소싱 백본에 연결할 수 있습니다.
그림 3은 이 carrier-of-carriers 예의 네트워크 토폴로지를 보여줍니다.
라우터 A 구성
이 예에서 라우터 A는 최종 고객을 위한 CE 라우터 역할을 합니다. 라우터 A에서 기본 family inet BGP 세션을 구성합니다.
[edit]
protocols {
bgp {
group to-routerB {
export attached;
peer-as 21;
neighbor 192.168.197.169;
}
}
}
policy-options {
policy-statement attached {
from protocol direct;
then accept;
}
}
라우터 B의 구성
라우터 B는 최종 고객 CE 라우터(라우터 A)의 PE 라우터이기 때문에 라우팅 인스턴스(vpna)를 구성해야 합니다. 라우터 D에 대한 IBGP 세션에서 문을 구성 labeled-unicast 하고 라우터 I과 함께 네트워크의 반대편에 대한 IBGP 세션에 대해 구성 family-inet-vpn 합니다.
[edit]
protocols {
mpls {
interface fe-1/0/2.0;
interface fe-1/0/3.0;
}
bgp {
group int {
type internal;
local-address 10.255.14.179;
neighbor 10.255.14.175 {
family inet {
labeled-unicast {
resolve-vpn;
}
}
}
}
neighbor 10.255.14.181 {
family inet-vpn {
any;
}
}
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fe-1/0/3.0;
}
}
ldp {
interface fe-1/0/3.0;
}
}
routing-instances {
vpna {
instance-type vrf;
interface fe-1/0/2.0;
route-distinguisher 10.255.14.179:21;
vrf-import vpna-import;
vrf-export vpna-export;
protocols {
bgp {
group vpna-06 {
peer-as 1;
neighbor 192.168.197.170;
}
}
}
}
}
policy-options {
policy-statement vpna-import {
term a {
from {
protocol bgp;
community vpna-comm;
}
then accept;
}
term b {
then reject;
}
}
policy-statement vpna-export {
term a {
from protocol bgp;
then {
community add vpna-comm;
accept;
}
}
term b {
then reject;
}
}
community vpna-comm members target:100:1001;
}
라우터 C 구성
라우터 C를 로컬 AS 내에서 레이블 스와핑 라우터로 구성합니다.
[edit]
protocols {
mpls {
traffic-engineering bgp-igp;
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fe-0/3/3.0;
interface fe-0/3/0.0;
}
}
ldp {
interface fe-0/3/0.0;
interface fe-0/3/3.0;
}
}
라우터 D 구성
라우터 D는 AS 10023 네트워크에서 제공하는 VPN 서비스의 CE 라우터 역할을 합니다. 라우터 B(10.255.14.179)에 대한 트래픽을 처리하는 그룹 int에 대한 BGP 그룹 구성에서 문을 labeled-unicast 포함합니다. 또한 레이블이 지정된 내부 경로를 PE 라우터(라우터 E)로 전송하도록 BGP 그룹을 to-isp-red 구성해야 합니다.
[edit]
protocols {
mpls {
traffic-engineering bgp-igp;
interface fe-0/3/0.0;
interface t3-0/0/0.0;
}
bgp {
group int {
type internal;
local-address 10.255.14.175;
neighbor 10.255.14.179 {
family inet {
labeled-unicast;
}
}
}
group to-isp-red {
export internal;
peer-as 10023;
neighbor 192.168.197.13 {
family inet {
labeled-unicast;
}
}
}
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fe-0/3/0.0;
}
}
ldp {
interface fe-0/3/0.0;
}
}
policy-options {
policy-statement internal {
term a {
from protocol [ ospf direct ];
then accept;
}
term b {
then reject;
}
}
}
라우터 E의 구성
라우터 E와 라우터 H는 PE 라우터입니다. VPN-IPv4 경로가 이 두 PE 라우터 사이를 통과할 수 있도록 PE-라우터-to-PE-라우터 BGP 세션을 구성합니다. 라우터 E에서 라우팅 인스턴스를 구성하여 CE 라우터(라우터 D)로 레이블이 지정된 경로를 전송합니다.
라우터 E를 구성합니다.
[edit]
protocols {
mpls {
interface t3-0/2/0.0;
interface at-0/1/0.0;
}
bgp {
group pe-pe {
type internal;
local-address 10.255.14.171;
family inet-vpn {
any;
}
neighbor 10.255.14.173;
}
}
isis {
interface at-0/1/0.0;
interface lo0.0 {
passive;
}
}
ldp {
interface at-0/1/0.0;
}
}
policy-options {
policy-statement vpn-isp1-import {
term a {
from {
protocol bgp;
community vpn-isp1-comm;
}
then accept;
}
term b {
then reject;
}
}
policy-statement vpn-isp1-export {
term a {
from protocol bgp;
then {
community add vpn-isp1-comm;
accept;
}
}
term b {
then reject;
}
}
community vpn-isp1-comm members target:69:21;
}
routing-instances {
vpn-isp1 {
instance-type vrf;
interface t3-0/2/0.0;
route-distinguisher 10.255.14.171:21;
vrf-import vpn-isp1-import;
vrf-export vpn-isp1-export;
protocols {
bgp {
group to-isp1 {
peer-as 21;
neighbor 192.168.197.14 {
as-override;
family inet {
labeled-unicast;
}
}
}
}
}
}
}
라우터 F의 구성
인터페이스를 통해 실행되는 경로의 레이블을 바꾸도록 라우터 F를 구성합니다.
[edit]
protocols {
isis {
interface so-0/2/0.0;
interface at-0/3/0.0;
interface lo0.0 {
passive;
}
}
ldp {
interface so-0/2/0.0;
interface at-0/3/0.0;
}
}
라우터 G의 구성
라우터 G를 구성합니다.
[edit]
protocols {
isis {
interface so-0/0/0.0;
interface so-1/0/0.0;
interface lo0.0 {
passive;
}
}
ldp {
interface so-0/0/0.0;
interface so-1/0/0.0;
}
}
라우터 H 구성
라우터 H의 구성은 라우터 E의 구성과 유사합니다.
[edit]
protocols {
mpls {
interface fe-1/1/0.0;
interface so-1/0/0.0;
}
bgp {
group pe-pe {
type internal;
local-address 10.255.14.173;
family inet-vpn {
any;
}
neighbor 10.255.14.171;
}
}
isis {
interface so-1/0/0.0;
interface lo0.0 {
passive;
}
}
ldp {
interface so-1/0/0.0;
}
}
routing-instances {
vpn-isp1 {
instance-type vrf;
interface fe-1/1/0.0;
route-distinguisher 10.255.14.173:21;
vrf-import vpn-isp1-import;
vrf-export vpn-isp1-export;
protocols {
bgp {
group to-isp1 {
peer-as 21;
neighbor 192.168.197.94 {
as-override;
family inet {
labeled-unicast;
}
}
}
}
}
}
}
policy-options {
policy-statement vpn-isp1-import {
term a {
from {
protocol bgp;
community vpn-isp1-comm;
}
then accept;
}
term b {
then reject;
}
}
policy-statement vpn-isp1-export {
term a {
from protocol bgp;
then {
community add vpn-isp1-comm;
accept;
}
}
term b {
then reject;
}
}
community vpn-isp1-comm members target:69:21;
}
라우터 I 구성
라우터 I은 최종 고객을 위한 PE 라우터 역할을 합니다. 다음 구성은 라우터 B의 구성과 유사합니다.
[edit]
protocols {
mpls {
interface fe-1/0/1.0;
interface fe-1/1/3.0;
}
bgp {
group int {
type internal;
local-address 10.255.14.181;
neighbor 10.255.14.177 {
family inet {
labeled-unicast {
resolve-vpn;
}
}
}
neighbor 10.255.14.179 {
family inet-vpn {
any;
}
}
}
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fe-1/1/3.0;
}
}
ldp {
interface fe-1/1/3.0;
}
}
routing-instances {
vpna {
instance-type vrf;
interface fe-1/0/1.0;
route-distinguisher 10.255.14.181:21;
vrf-import vpna-import;
vrf-export vpna-export;
protocols {
bgp {
group vpna-0 {
peer-as 1;
neighbor 192.168.197.198;
}
}
}
}
}
policy-options {
policy-statement vpna-import {
term a {
from {
protocol bgp;
community vpna-comm;
}
then accept;
}
term b {
then reject;
}
}
policy-statement vpna-export {
term a {
from protocol bgp;
then {
community add vpna-comm;
accept;
}
}
term b {
then reject;
}
}
community vpna-comm members target:100:1001;
}
라우터 J의 구성
인터페이스를 통해 실행되는 경로에 대한 레이블을 바꾸도록 라우터 J를 구성합니다.
[edit]
protocols {
mpls {
traffic-engineering bgp-igp;
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fe-1/0/2.0;
interface fe-1/0/3.0;
}
}
ldp {
interface fe-1/0/2.0;
interface fe-1/0/3.0;
}
}
라우터 K 구성
라우터 K의 구성은 라우터 D의 구성과 유사합니다.
[edit]
protocols {
mpls {
traffic-engineering bgp-igp;
interface fe-1/1/2.0;
interface fe-1/0/2.0;
}
bgp {
group int {
type internal;
local-address 10.255.14.177;
neighbor 10.255.14.181 {
family inet {
labeled-unicast;
}
}
}
group to-isp-red {
export internal;
peer-as 10023;
neighbor 192.168.197.93 {
family inet {
labeled-unicast;
}
}
}
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fe-1/0/2.0;
}
}
ldp {
interface fe-1/0/2.0;
}
}
policy-options {
policy-statement internal {
term a {
from protocol [ ospf direct ];
then accept;
}
term b {
then reject;
}
}
}
라우터 L 구성
이 예에서 라우터 L은 최종 고객의 CE 라우터입니다. 라우터 L에서 기본 패밀리 inet BGP 세션을 구성합니다.
[edit]
protocols {
bgp {
group to-I {
export attached;
peer-as 21;
neighbor 192.168.197.197;
}
}
}
policy-options {
policy-statement attached {
from protocol direct;
then accept;
}
}
또한보십시오
LDP 및 Carrier-of-Carriers VPN에 대한 다중 인스턴스
여러 LDP 라우팅 인스턴스를 구성함으로써, LDP를 사용하여 코어 프로바이더 PE 라우터에서 고객 캐리어 CE 라우터로 캐리어 VPN의 레이블을 보급할 수 있습니다. 이러한 방식으로 LDP가 레이블을 보급하도록 하는 것은 통신사 고객이 기본 ISP이고 전체 인터넷 경로를 해당 PE 라우터로 제한하려는 경우에 특히 유용합니다. 통신사 고객은 BGP 대신 LDP를 사용하여 다른 내부 라우터를 인터넷으로부터 보호합니다. 또한 다중 인스턴스 LDP는 통신사 고객이 해당 고객에게 레이어 3 VPN 또는 레이어 2 VPN 서비스를 제공하려는 경우에도 유용합니다.
carrier-of-carriers VPN에 대해 여러 LDP 라우팅 인스턴스를 구성하는 방법에 대한 예는 https://www.juniper.net/documentation/us/en/software/junos/mpls/topics/example/multiple-instance-ldp-configuring-detailed-solutions.html 를 참조하십시오.
또한보십시오
변경 내역 표
기능 지원은 사용 중인 플랫폼과 릴리스에 따라 결정됩니다. 기능 탐색기를 사용하여 플랫폼에서 기능이 지원되는지 확인합니다.