예: LDP VPLS를 위한 BGP 자동 검색 구성
이 예에서는 FEC(Forwarding Equivalency Class) 129에 지정된 대로 LDP VPLS에 대한 BGP 자동 검색을 구성하는 방법을 설명합니다. FEC 129는 BGP 자동 검색을 사용하여 엔드포인트 정보를 전달하므로 유사 회선을 수동으로 구성할 필요가 없습니다.
요구 사항
이 예에서 사용되는 하드웨어 및 소프트웨어 구성 요소는 다음과 같습니다.
4개의 MX 시리즈 5G 유니버설 라우팅 플랫폼
Junos OS 릴리스 10.4R2 이상
M 시리즈 또는 T 시리즈 라우터를 사용하는 경우 PE 라우터에는 가상 루프백 터널() 인터페이스 또는 레이블 스위치 인터페이스(vt
LSI)가 있어야 합니다. M 시리즈 및 T 시리즈 라우터에서 VPLS는 터널 기반 PIC를 사용하여 인터페이스에 가상 포트를 vt
생성합니다. M 시리즈 또는 T 시리즈 라우터에 터널 기반 PIC가 설치되어 있지 않은 경우에도 LSI를 사용하여 가상 포트를 지원함으로써 VPLS를 구성할 수 있습니다. LSI를 사용하려면 FPC(Enhanced Flexible PIC Concentrator)에 이더넷 기반 PIC를 설치해야 합니다.
CE 디바이스에는 라우터를 사용할 필요가 없습니다. 예를 들어, 고객 에지(CE) 디바이스는 EX 시리즈 이더넷 스위치가 될 수 있습니다.
개요
VPLS 네트워크의 모든 PE 라우터는 대규모의 분산 이더넷 스위치처럼 작동하여 연결된 디바이스에 레이어 2 서비스를 제공합니다. 이 예에서는 자동 발견된 VPLS 네트워크를 생성하기 위한 PE 라우터 및 CE 디바이스의 최소 구성을 보여줍니다. 토폴로지는 PE 라우터 2개, CE 라우터 2개, 선택적 경로 리플렉터(RR) 등 5개의 라우터로 구성됩니다. PE 라우터는 BGP를 사용하여 두 PE 라우터에 구성된 두 개의 서로 다른 VPLS 인스턴스를 자동 검색합니다. 그런 다음 PE 라우터는 LDP를 사용하여 발견된 엔드포인트 사이에 두 개의 유사 회선을 자동으로 시그널링합니다. 마지막으로, PE 라우터는 트래픽 포워딩을 위해 두 VPLS 인스턴스를 모두 불러옵니다. 각 CE 디바이스는 두 개의 VLAN으로 구성되며, 각 VLAN은 PE 라우터의 서로 다른 VPLS 인스턴스에 속합니다.
이 예제에는 다음 설정이 포함되어 있습니다.
auto-discovery-only
- 라우터가 LDP 기반 레이어 2 VPN 및 VPLS 업데이트 메시지(BGP_L2VPN_AD_NLRI)(FEC 129)에 대한 자동 검색 NLRI(Network Layer Reachability Information) 업데이트 메시지만 처리할 수 있습니다. 특히, 명령문은auto-discovery-only
LDP 및 VPLS에서 정보를 해독하고 사용할 수 있도록 자동 검색 관련 NLRI 메시지를 예상하도록 라우팅 프로세스(rpd)에 알립니다. BGP에 대한 전역, 그룹 및 이웃 수준에서 이 문을 구성할 수 있습니다. 명령문은auto-discovery-only
VPLS의 모든 PE 라우터에서 구성되어야 합니다. 경로 리플렉션을 구성하는 경우,auto-discovery-only
FEC 129 관련 업데이트를 지원하는 데 있어 경로 리플렉터 역할을 하는 P 라우터에도 문이 필요합니다.이
signaling
문은 이 예에 포함되어 있지 않지만 완전성을 위해 여기에서 설명합니다. 명령문을 사용하면 라우터가signaling
BGP 기반 레이어 2 VPN(FEC 128)에 사용되는 BGP_L2VPN_NLRIs만 처리할 수 있습니다.PE 라우터가 두 가지 유형의 NLRI(FEC 128 및 FEC 129)를 모두 지원해야 하는 상호 운용 시나리오의
signaling
경우, 명령문과 명령문을 모두 구성할 수 있습니다auto-discovery-only
. 예를 들어, 단일 PE 라우터는 BGP 자동 검색의 지원을 받아 BGP 신호 VPWS(Virtual Private Wire Service)와 LDP 신호 VPLS의 조합을 처리해야 할 수 있습니다. 명령문과 명령문을auto-discovery-only
함께 구성하면signaling
두 가지 유형의 시그널링을 독립적으로 실행할 수 있습니다. 문은signaling
문과auto-discovery-only
동일한 계층 수준에서 지원됩니다.cluster
- 경로 리플렉터 구성은 FEC 129 자동 검색된 PE 라우터의 선택 사항입니다. 이 예에서 문은cluster
라우터 RR을 IBGP 그룹의 경로 리플렉터로 구성합니다. 인바운드 업데이트의 경우, 라우터가 경로 리플렉터로 구성되거나 문이 IBGP 그룹에서 구성된 경우keep all
BGP 자동 검색 NLRI 메시지가 수락됩니다.l2vpn-id
- 인스턴스에 대해 전역적으로 고유한 레이어 2 VPN 커뮤니티 식별자를 지정합니다. 이 명령문은 유형의 라우팅 인스턴스에 대해 구성할 수 있습니다vpls
.커뮤니티 식별자에 대해 다음 형식을 구성할 수 있습니다.
AS(Autonomous System) 번호 형식 -
l2vpn-id:as-number:2-byte-number
. 예:l2vpn-id:100:200
. AS 번호는 1에서 65,535 사이일 수 있습니다.IPv4 형식 -
l2vpn-id:ip-address:2-byte-number
. 예:l2vpn-id:10.1.1.1:2
.
vrf-target
- NLRI에 대한 가져오기 및 내보내기 경로 대상을 정의합니다. 명령문 또는 및 명령vrf-import
문을 구성vrf-target
하여 NLRI에 대한 인스턴스 가져오기 및vrf-export
내보내기 정책 또는 가져오기 및 내보내기 경로 대상을 정의해야 합니다. 이 예에서는 문을 사용합니다vrf-target
.route-distinguisher
- BGP 자동 검색 NLRI의 일부를 형성하고 각 경로가 속한 VPN 또는 VPLS 라우팅 인스턴스를 구별합니다. 각 경로 구분자는 6바이트 값입니다. 각 라우팅 인스턴스에 대해 고유한 경로 식별자를 구성해야 합니다.경로 구분자에 대해 다음과 같은 형식을 구성할 수 있습니다.
AS 번호 형식 -
as-number:2-byte-number
IPv4 형식 -
ip-address:2-byte-number
이 예에는 두 가지 주목할 만한 문이 포함되어 있습니다. 이러한 설명은 다른 공급업체의 장비와의 상호 운용성을 위해 중요합니다. 상호 운용성 문은 이 예에서 사용되는 토폴로지에 필요하지 않지만 완전성을 위해 포함됩니다.
상호 운용성 설명은 다음과 같습니다.
input-vlan-map pop
- VLAN 태그 스택의 맨 위에서 외부 VLAN 태그를 제거합니다.output-vlan-map push
- 기존 VLAN 태그 앞에 외부 VLAN 태그를 추가합니다.
구성
CLI 빠른 구성
LDP VPLS에 대한 BGP 자동 검색을 신속하게 구성하려면 다음 명령을 복사하고 줄 바꿈을 제거한 다음 명령을 각 디바이스의 CLI에 붙여넣습니다.
라우터 PE1에서:
[edit] set interfaces ge-0/1/0 vlan-tagging set interfaces ge-0/1/0 encapsulation flexible-ethernet-services set interfaces ge-0/1/0 unit 100 encapsulation vlan-vpls set interfaces ge-0/1/0 unit 100 vlan-id 100 set interfaces ge-0/1/0 unit 100 input-vlan-map pop set interfaces ge-0/1/0 unit 100 output-vlan-map push set interfaces ge-0/1/0 unit 100 family vpls set interfaces ge-0/1/0 unit 200 encapsulation vlan-vpls set interfaces ge-0/1/0 unit 200 vlan-id 200 set interfaces ge-0/1/0 unit 200 family vpls set interfaces ge-0/1/1 unit 0 description "PE1 to PE2" set interfaces ge-0/1/1 unit 0 family inet address 192.0.2.4/24 set interfaces ge-0/1/1 unit 0 family iso set interfaces ge-0/1/1 unit 0 family mpls set interfaces ge-0/3/0 unit 0 description "PE1 to RR" set interfaces ge-0/3/0 unit 0 family inet address 192.0.2.7/24 set interfaces ge-0/3/0 unit 0 family iso set interfaces ge-0/3/0 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.8/24 set routing-options router-id 192.0.2.8 set routing-options autonomous-system 100 set protocols mpls interface lo0.0 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp group int type internal set protocols bgp group int local-address 192.0.2.8 set protocols bgp group int family l2vpn auto-discovery-only set protocols bgp group int neighbor 192.0.2.9 set protocols isis level 1 disable set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances vpls100 instance-type vpls set routing-instances vpls100 interface ge-0/1/0.100 set routing-instances vpls100 route-distinguisher 192.0.2.8:100 set routing-instances vpls100 l2vpn-id l2vpn-id:100:100 set routing-instances vpls100 vrf-target target:100:100 set routing-instances vpls100 protocols vpls no-tunnel-services set routing-instances vpls200 instance-type vpls set routing-instances vpls200 interface ge-0/1/0.200 set routing-instances vpls200 route-distinguisher 192.0.2.8:200 set routing-instances vpls200 l2vpn-id l2vpn-id:100:200 set routing-instances vpls200 vrf-target target:100:208 set routing-instances vpls200 protocols vpls no-tunnel-services
디바이스 CE1에서:
[edit] set interfaces ge-1/2/1 vlan-tagging set interfaces ge-1/2/1 mtu 1400 set interfaces ge-1/2/1 unit 100 vlan-id 100 set interfaces ge-1/2/1 unit 100 family inet address 203.0.113.3/24 set interfaces ge-1/2/1 unit 200 vlan-id 200 set interfaces ge-1/2/1 unit 200 family inet address 203.0.113.2/24 set protocols ospf area 0.0.0.0 interface ge-1/2/1.100 set protocols ospf area 0.0.0.0 interface ge-1/2/1.200
라우터 PE2에서:
[edit] set interfaces ge-1/1/0 vlan-tagging set interfaces ge-1/1/0 encapsulation flexible-ethernet-services set interfaces ge-1/1/0 unit 100 encapsulation vlan-vpls set interfaces ge-1/1/0 unit 100 vlan-id 100 set interfaces ge-1/1/0 unit 100 input-vlan-map pop set interfaces ge-1/1/0 unit 100 output-vlan-map push set interfaces ge-1/1/0 unit 100 family vpls set interfaces ge-1/1/0 unit 200 encapsulation vlan-vpls set interfaces ge-1/1/0 unit 200 vlan-id 200 set interfaces ge-1/1/0 unit 200 family vpls set interfaces ge-1/2/1 unit 0 description "PE2 to PE1" set interfaces ge-1/2/1 unit 0 family inet address 192.0.2.14/24 set interfaces ge-1/2/1 unit 0 family iso set interfaces ge-1/2/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.10/24 set routing-options router-id 192.0.2.10 set routing-options autonomous-system 100 set protocols mpls interface lo0.0 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp group int type internal set protocols bgp group int local-address 192.0.2.10 set protocols bgp group int family l2vpn auto-discovery-only set protocols bgp group int neighbor 192.0.2.9 set protocols isis level 1 disable set protocols isis interface ge-1/2/1.0 set protocols isis interface lo0.0 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances vpls100 instance-type vpls set routing-instances vpls100 interface ge-1/1/0.100 set routing-instances vpls100 route-distinguisher 192.0.2.10:100 set routing-instances vpls100 l2vpn-id l2vpn-id:100:100 set routing-instances vpls100 vrf-target target:100:100 set routing-instances vpls100 protocols vpls no-tunnel-services set routing-instances vpls200 instance-type vpls set routing-instances vpls200 interface ge-1/1/0.200 set routing-instances vpls200 route-distinguisher 192.0.2.10:200 set routing-instances vpls200 l2vpn-id l2vpn-id:100:200 set routing-instances vpls200 vrf-target target:100:208 set routing-instances vpls200 protocols vpls no-tunnel-services
디바이스 CE2에서:
[edit] set interfaces ge-1/1/0 vlan-tagging set interfaces ge-1/1/0 mtu 1400 set interfaces ge-1/1/0 unit 100 vlan-id 100 set interfaces ge-1/1/0 unit 100 family inet address 203.0.113.15/24 set interfaces ge-1/1/0 unit 200 vlan-id 200 set interfaces ge-1/1/0 unit 200 family inet address 203.0.113.16/24 set protocols ospf area 0.0.0.0 interface ge-1/1/0.100 set protocols ospf area 0.0.0.0 interface ge-1/1/0.200
라우터 RR에서:
[edit] set interfaces ge-1/3/2 unit 0 description "RR to PE1" set interfaces ge-1/3/2 unit 0 family inet address 192.0.2.17/24 set interfaces ge-1/3/2 unit 0 family iso set interfaces ge-1/3/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.9/24 set routing-options router-id 192.0.2.9 set routing-options autonomous-system 100 set protocols bgp group int type internal set protocols bgp group int local-address 192.0.2.9 set protocols bgp group int family l2vpn auto-discovery-only set protocols bgp group int cluster 198.51.100.0 set protocols bgp group int neighbor 192.0.2.8 set protocols bgp group int neighbor 192.0.2.10 set protocols isis level 1 disable set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0
라우터 PE1
단계별 절차
라우터 PE1 구성:
인터페이스, 인터페이스 캡슐화 및 프로토콜 제품군을 구성합니다.
[edit] user@PE1# edit interfaces [edit interfaces] user@PE1# set ge-0/1/0 encapsulation flexible-ethernet-services user@PE1# set ge-0/1/0 unit 100 encapsulation vlan-vpls user@PE1# set ge-0/1/0 unit 100 family vpls user@PE1# set ge-0/1/0 unit 200 encapsulation vlan-vpls user@PE1# set ge-0/1/0 unit 200 family vpls user@PE1# set ge-0/1/1 unit 0 description "PE1 to PE2" user@PE1# set ge-0/1/1 unit 0 family inet address 192.0.2.4/24 user@PE1# set ge-0/1/1 unit 0 family iso user@PE1# set ge-0/1/1 unit 0 family mpls user@PE1# set ge-0/3/0 unit 0 description "PE1 to RR" user@PE1# set ge-0/3/0 unit 0 family inet address 192.0.2.7/24 user@PE1# set ge-0/3/0 unit 0 family iso user@PE1# set ge-0/3/0 unit 0 family mpls user@PE1# set lo0 unit 0 family inet address 192.0.2.8/24
VLAN을 구성합니다.
[edit interfaces] user@PE1# set ge-0/1/0 vlan-tagging user@PE1# set ge-0/1/0 unit 100 vlan-id 100 user@PE1# set ge-0/1/0 unit 100 input-vlan-map pop user@PE1# set ge-0/1/0 unit 100 output-vlan-map push user@PE1# set ge-0/1/0 unit 200 vlan-id 200 user@PE1# exit
프로토콜 독립적 속성을 구성합니다.
라우터 ID는 로컬 주소와 동일한 것이 좋습니다. (4단계의 문을 참조하십시오
local-address
.)[edit] user@PE1# edit routing-options [edit routing-options] user@PE1# set router-id 192.0.2.8 user@PE1# set autonomous-system 100 user@PE1# exit
문을 포함하여 IBGP를
auto-discovery-only
구성합니다.[edit] user@PE1# edit protocols [edit protocols] user@PE1# set bgp group int type internal user@PE1# set bgp group int local-address 192.0.2.8 user@PE1# set bgp group int family l2vpn auto-discovery-only user@PE1# set bgp group int neighbor 192.0.2.9
MPLS, LDP 및 IGP를 구성합니다.
[edit protocols] user@PE1# set mpls interface lo0.0 user@PE1# set mpls interface all user@PE1# set mpls interface fxp0.0 disable user@PE1# set isis level 1 disable user@PE1# set isis interface all user@PE1# set isis interface fxp0.0 disable user@PE1# set isis interface lo0.0 user@PE1# set ldp interface all user@PE1# set ldp interface fxp0.0 disable user@PE1# set ldp interface lo0.0 user@PE1# exit
라우팅 인스턴스를 구성합니다.
no-tunnel-services
VPLS용 인터페이스 대신vt
LSI 인터페이스를 사용하는 경우 명령문이 필요합니다.[edit] user@PE1# edit routing-instances [edit routing-instances] user@PE1# set vpls100 instance-type vpls user@PE1# set vpls100 interface ge-0/1/0.100 user@PE1# set vpls100 route-distinguisher 192.0.2.8:100 user@PE1# set vpls100 l2vpn-id l2vpn-id:100:100 user@PE1# set vpls100 vrf-target target:100:100 user@PE1# set vpls100 protocols vpls no-tunnel-services user@PE1# set vpls200 instance-type vpls user@PE1# set vpls200 interface ge-0/1/0.200 user@PE1# set vpls200 route-distinguisher 192.0.2.8:200 user@PE1# set vpls200 l2vpn-id l2vpn-id:100:200 user@PE1# set vpls200 vrf-target target:100:208 user@PE1# set vpls200 protocols vpls no-tunnel-services
디바이스 구성을 완료하면 구성을 커밋합니다.
[edit] user@PE1# commit
결과
구성 모드에서 , , show protocols
show routing-options
및 show routing-instances
명령을 입력하여 show interfaces
구성을 확인합니다. 출력에 의도한 구성이 표시되지 않으면 이 예의 지침을 반복하여 구성을 수정하십시오.
user@PE1# show interfaces ge-0/1/0 { vlan-tagging; encapsulation flexible-ethernet-services; unit 100 { encapsulation vlan-vpls; vlan-id 100; input-vlan-map pop; output-vlan-map push; family vpls; } unit 200 { encapsulation vlan-vpls; vlan-id 200; family vpls; } } ge-0/1/1 { unit 0 { description "PE1 to PE2"; family inet { address 192.0.2.4/24; } family iso; family mpls; } } ge-0/3/0 { unit 0 { description "PE1 to RR"; family inet { address 192.0.2.7/24; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 192.0.2.8/24; } } }
user@PE1# show protocols mpls { interface lo0.0; interface all; interface fxp0 disable; } bgp { group int { type internal; local-address 192.0.2.8; family l2vpn { auto-discovery-only; } neighbor 192.0.2.9; } } isis { level 1 disable; interface all; interface lo0.0; interface fxp0 disable; } ldp { interface lo0.0; interface all; interface fxp0 disable; }
user@PE1# show routing-options router-id 192.0.2.8; autonomous-system 100;
user@PE1# show routing-instances vpls100 { instance-type vpls; interface ge-0/1/0.100; route-distinguisher 192.0.2.8:100; l2vpn-id l2vpn-id:100:100; vrf-target target:100:100; protocols { vpls { no-tunnel-services; } } } vpls200 { instance-type vpls; interface ge-0/1/0.200; route-distinguisher 192.0.2.8:200; l2vpn-id l2vpn-id:100:200; vrf-target target:100:208; protocols { vpls { no-tunnel-services; } } }
디바이스 CE1
단계별 절차
디바이스 CE1 구성:
인터페이스 주소 및 인터페이스 최대 전송 단위(MTU)를 구성합니다.
[edit] user@CE1# edit interfaces [edit interfaces] user@CE1# set ge-1/2/1 mtu 1400 user@CE1# set ge-1/2/1 unit 100 family inet address 203.0.113.3/24 user@CE1# set ge-1/2/1 unit 200 family inet address 203.0.113.2/24
VLAN을 구성합니다.
[edit interfaces] user@CE1# set ge-1/2/1 vlan-tagging user@CE1# set ge-1/2/1 unit 100 vlan-id 100 user@CE1# set ge-1/2/1 unit 200 vlan-id 200 user@CE1# exit
IGP를 구성합니다.
user@CE1# edit protocols [edit protocols] user@CE1# set ospf area 0.0.0.0 interface ge-1/2/1.100 user@CE1# set ospf area 0.0.0.0 interface ge-1/2/1.200 user@CE1# exit
디바이스 구성을 완료하면 구성을 커밋합니다.
[edit] user@CE1# commit
결과
구성 모드에서 및 show protocols
명령을 입력하여 show interfaces
구성을 확인합니다. 출력에 의도한 구성이 표시되지 않으면 이 예의 지침을 반복하여 구성을 수정하십시오.
user@CE1# show interfaces ge-1/2/1 { vlan-tagging; mtu 1400; unit 100 { vlan-id 100; family inet { address 203.0.113.3/24; } } unit 200 { vlan-id 200; family inet { address 203.0.113.2/24; } } }
user@CE1# show protocols ospf { area 0.0.0.0 { interface ge-1/2/1.100; interface ge-1/2/1.200; } }
라우터 PE2
단계별 절차
라우터 PE2 구성:
인터페이스, 인터페이스 캡슐화 및 프로토콜 제품군을 구성합니다.
[edit] user@PE2# edit interfaces [edit interfaces] user@PE2# set ge-1/1/0 encapsulation flexible-ethernet-services user@PE2# set ge-1/1/0 unit 100 encapsulation vlan-vpls user@PE2# set ge-1/1/0 unit 100 family vpls user@PE2# set ge-1/1/0 unit 200 encapsulation vlan-vpls user@PE2# set ge-1/1/0 unit 200 family vpls user@PE2# set ge-1/2/1 unit 0 description "PE2 to PE1" user@PE2# set ge-1/2/1 unit 0 family inet address 192.0.2.14/24 user@PE2# set ge-1/2/1 unit 0 family iso user@PE2# set ge-1/2/1 unit 0 family mpls user@PE2# set lo0 unit 0 family inet address 192.0.2.10/24
VLAN을 구성합니다.
[edit interfaces] user@PE2# set ge-1/1/0 vlan-tagging user@PE2# set ge-1/1/0 unit 100 vlan-id 100 user@PE2# set ge-1/1/0 unit 100 input-vlan-map pop user@PE2# set ge-1/1/0 unit 100 output-vlan-map push user@PE2# set ge-1/1/0 unit 200 vlan-id 200 user@PE2# exit
프로토콜 독립적 속성을 구성합니다.
라우터 ID는 로컬 주소와 동일한 것이 좋습니다. (4단계의 문을 참조하십시오
local-address
.)[edit] user@PE2# edit routing-options [edit routing-options] user@PE2# set router-id 192.0.2.10 user@PE2# set autonomous-system 100
문을 포함하여 IBGP를
auto-discovery-only
구성합니다.[edit] user@PE2# edit protocols [edit protocols] user@PE2# set bgp group int type internal user@PE2# set bgp group int local-address 192.0.2.10 user@PE2# set bgp group int family l2vpn auto-discovery-only user@PE2# set bgp group int neighbor 192.0.2.9
MPLS, LDP 및 IGP를 구성합니다.
[edit protocols] user@PE2# set mpls interface lo0.0 user@PE2# set mpls interface all user@PE2# set mpls interface fxp0.0 disable user@PE2# set isis level 1 disable user@PE2# set isis interface ge-1/2/1.0 user@PE2# set isis interface lo0.0 user@PE2# set ldp interface all user@PE2# set ldp interface fxp0.0 disable user@PE2# set ldp interface lo0.0 user@PE2# exit
라우팅 인스턴스를 구성합니다.
no-tunnel-services
VPLS용 인터페이스 대신vt
LSI 인터페이스를 사용하는 경우 명령문이 필요합니다.[edit] user@PE2# edit routing-instances [edit routing-instances] user@PE2# set vpls100 instance-type vpls user@PE2# set vpls100 interface ge-1/1/0.100 user@PE2# set vpls100 route-distinguisher 192.0.2.10:100 user@PE2# set vpls100 l2vpn-id l2vpn-id:100:100 user@PE2# set vpls100 vrf-target target:100:100 user@PE2# set vpls100 protocols vpls no-tunnel-services user@PE2# set vpls200 instance-type vpls user@PE2# set vpls200 interface ge-1/1/0.200 user@PE2# set vpls200 route-distinguisher 192.0.2.10:200 user@PE2# set vpls200 l2vpn-id l2vpn-id:100:200 user@PE2# set vpls200 vrf-target target:100:208 user@PE2# set vpls200 protocols vpls no-tunnel-services
디바이스 구성을 완료하면 구성을 커밋합니다.
[edit] user@PE2# commit
결과
구성 모드에서 , , show protocols
show routing-options
및 show routing-instances
명령을 입력하여 show interfaces
구성을 확인합니다. 출력에 의도한 구성이 표시되지 않으면 이 예의 지침을 반복하여 구성을 수정하십시오.
user@PE2# show interfaces ge-1/1/0 { vlan-tagging; encapsulation flexible-ethernet-services; unit 100 { encapsulation vlan-vpls; vlan-id 100; input-vlan-map pop; output-vlan-map push; family vpls; } unit 200 { encapsulation vlan-vpls; vlan-id 200; family vpls; } } ge-1/2/1 { unit 0 { description "PE2 to PE1"; family inet { address 192.0.2.14/24; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 192.0.2.10/24; } } }
user@PE2# show protocols mpls { interface lo0.0; interface all; interface fxp0 disable; } bgp { group int { type internal; local-address 192.0.2.10; family l2vpn { auto-discovery-only; } neighbor 192.0.2.9; } } isis { level 1 disable; interface ge-1/2/1.0; interface lo0.0; } ldp { interface lo0.0; interface all; interface fxp0 disable; }
user@PE2# show routing-options router-id 192.0.2.10; autonomous-system 100;
user@PE2# show routing-instances vpls100 { instance-type vpls; interface ge-1/1/0.100; route-distinguisher 192.0.2.10:100; l2vpn-id l2vpn-id:100:100; vrf-target target:100:100; protocols { vpls { no-tunnel-services; } } } vpls200 { instance-type vpls; interface ge-1/1/0.200; route-distinguisher 192.0.2.10:200; l2vpn-id l2vpn-id:100:200; vrf-target target:100:208; protocols { vpls { no-tunnel-services; } } }
디바이스 CE2
단계별 절차
디바이스 CE2 구성:
VLAN 인터페이스를 구성합니다.
[edit] user@CE2# edit interfaces ge-1/1/0 [edit interfaces ge-1/1/0] user@CE2# set vlan-tagging user@CE2# set mtu 1400 user@CE2# set unit 100 vlan-id 100 user@CE2# set unit 100 family inet address 203.0.113.15/24 user@CE2# set unit 200 vlan-id 200 user@CE2# set unit 200 family inet address 203.0.113.16/24 user@CE2# exit
인터페이스에서 OSPF를 구성합니다.
[edit] user@CE2# edit protocols ospf area 0.0.0.0 [edit protocols ospf area 0.0.0.0] user@CE2# set interface ge-1/1/0.100 user@CE2# set interface ge-1/1/0.200 user@CE2# exit
디바이스 구성을 완료하면 구성을 커밋합니다.
[edit] user@CE2# commit
결과
구성 모드에서 및 show protocols
명령을 입력하여 show interfaces
구성을 확인합니다. 출력에 의도한 구성이 표시되지 않으면 이 예의 지침을 반복하여 구성을 수정하십시오.
user@CE2# show interfaces ge-1/1/0 { vlan-tagging; mtu 1400; unit 100 { vlan-id 100; family inet { address 203.0.113.15/24; } } unit 200 { vlan-id 200; family inet { address 203.0.113.16/24; } } }
user@CE2# show protocols ospf { area 0.0.0.0 { interface ge-1/1/0.100; interface ge-1/1/0.200; } }
라우터 RR
단계별 절차
라우터 RR을 구성하려면 다음을 수행합니다.
인터페이스 주소 및 프로토콜 제품군을 구성합니다.
[edit] user@RR# edit interfaces [edit interfaces] user@RR# set ge-1/3/2 unit 0 description "RR to PE1" user@RR# set ge-1/3/2 unit 0 family inet address 192.0.2.17/24 user@RR# set ge-1/3/2 unit 0 family iso user@RR# set ge-1/3/2 unit 0 family mpls user@RR# set lo0 unit 0 family inet address 192.0.2.9/24 user@RR# exit
AS(Autonomous System) 및 라우터 ID를 구성합니다.
[edit] user@RR# edit routing-options [edit routing-options] user@RR# set autonomous-system 100 user@RR# set router-id 192.0.2.9 user@RR# exit
BGP를 구성하고 이 라우터를 경로 리플렉터로 설정합니다. 경로 리플렉션은 FEC 129의 선택 사항입니다.
[edit] user@RR# edit protocols bgp group int [edit protocols bgp group int] user@RR# set type internal user@RR# set local-address 192.0.2.9 user@RR# set family l2vpn auto-discovery-only user@RR# set cluster 198.51.100.0 user@RR# set neighbor 192.0.2.8 user@RR# set neighbor 192.0.2.10 user@RR# exit
IGP를 위한 IS-IS를 구성합니다.
[edit] user@RR# edit protocols isis [edit protocols isis] user@RR# set level 1 disable user@RR# set interface all user@RR# set interface fxp0.0 disable user@RR# set interface lo0.0 user@RR# exit
MPLS 신호 프로토콜에 대한 LDP를 구성합니다.
[edit] user@RR# edit protocols ldp [edit protocols ldp] user@RR# set interface all user@RR# set interface fxp0.0 disable user@RR# set interface lo0.0 user@RR# exit
디바이스 구성을 완료하면 구성을 커밋합니다.
[edit] user@RR# commit
결과
구성 모드에서 , show protocols
및 show routing-options
명령을 입력하여 show interfaces
구성을 확인합니다. 출력에 의도한 구성이 표시되지 않으면 이 예의 지침을 반복하여 구성을 수정하십시오.
user@RR# show interfaces ge-1/3/2 { unit 0 { description "RR to PE1"; family inet { address 192.0.2.17/24; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 192.0.2.9/24;; } } }
user@RR# show protocols bgp { group int { type internal; local-address 192.0.2.9; family l2vpn { auto-discovery-only; } cluster 198.51.100.0; neighbor 192.0.2.8; neighbor 192.0.2.10; } } isis { level 1 disable; interface lo0.0; interface all; interface fxp0 disable; } ldp { interface lo0.0; interface all; interface fxp0 disable; }
user@RR# show routing-options router-id 192.0.2.9; autonomous-system 100;
확인
작업을 확인하려면 다음 명령을 사용합니다.
show route advertising-protocol bgp neighbor
show route receive-protocol bgp neighbor
show route table bgp.l2vpn.0
show route table vpls100.l2vpn.0
show route table vpls200.l2vpn.0
show vpls connections extensive
show vpls mac-table detail
AD
라우팅 테이블 출력에서 자동 검색 NLRI를 나타냅니다.