BGP CLNS(Connectionless Network Service)
CLNS VPN에 대한 BGP 이해
BGP 확장을 통해 BGP는 PE(Provider Edge) 라우터 간에 CLNS(Connectionless Network Service) VPN(Virtual Private Network) NLRI(Network Layer Reachability Information)를 전송할 수 있습니다. 각 CLNS 경로는 CLNS VPN NLRI로 캡슐화되고 VPN의 원격 사이트 간에 전파됩니다.
CLNS는 IP 버전 4(IPv4)와 유사한 레이어 3 프로토콜입니다. CLNS는 NSAP(네트워크 서비스 액세스 포인트)를 사용하여 최종 시스템을 처리합니다. 이를 통해 국제 표준화 기구(ISO) NSAP를 기반으로 하는 원활한 자율 시스템(AS)이 가능합니다.
ISO NSAP 디바이스로 구성된 단일 라우팅 도메인은 CLNS 아일랜드로 간주됩니다. CLNS 섬은 VPN으로 서로 연결되어 있습니다.
멀티프로토콜 BGP 확장을 사용하여 VPN의 다양한 CLNS 아일랜드를 연결하는 PE 라우터 간에 ISO CLNS 경로를 교환하도록 BGP를 구성할 수 있습니다. 이러한 확장은 ISO VPN NLRI입니다.
각 CLNS 네트워크 아일랜드는 PE 라우터에서 별도의 VPN 라우팅 및 포워딩 인스턴스(VRF) 인스턴스로 취급됩니다.
CLNS는 글로벌 레벨, 그룹 레벨, neighbor 레벨에서 구성할 수 있습니다.
참조
BGP가 CLNS 경로를 전달하도록 설정
CLNS(Connectionless Network Service)는 IP 버전 4(IPv4)와 유사한 계층 3 프로토콜입니다. CLNS는 NSAP(네트워크 서비스 액세스 포인트)를 사용하여 최종 시스템을 처리합니다. 이를 통해 국제 표준화 기구(ISO) NSAP를 기반으로 하는 원활한 자율 시스템(AS)이 가능합니다.
CLNS에 대한 플랫폼 지원은 설치 시 Junos OS 릴리스에 따라 다릅니다.
ISO NSAP 디바이스로 구성된 단일 라우팅 도메인은 CLNS 아일랜드로 간주됩니다. CLNS 섬은 VPN으로 서로 연결되어 있습니다.
멀티프로토콜 BGP 확장을 사용하여 VPN(가상 사설망)에서 다양한 CLNS 아일랜드를 연결하는 PE(Provider Edge) 라우터 간에 ISO CLNS 경로를 교환하도록 BGP를 구성할 수 있습니다. 이러한 확장은 ISO VPN NLRI입니다.
멀티프로토콜 BGP(MP-BGP)가 CLNS VPN NLRI를 전송할 수 있도록 하려면 문을 포함합니다.iso-vpn
iso-vpn { unicast { prefix-limit number; rib-group group-name; } }
피어의 접두사 수를 제한하려면 문을 포함합니다 prefix-limit
. 라우팅 테이블 그룹을 지정하려면 명령문을 포함합니다 rib-group
.
이 명령문을 포함할 수 있는 계층 수준의 목록은 이 명령문에 대한 요약 섹션을 참조하십시오.
각 CLNS 네트워크 아일랜드는 PE 라우터에서 별도의 VRF 인스턴스로 취급됩니다.
CLNS는 글로벌 레벨, 그룹 레벨, neighbor 레벨에서 구성할 수 있습니다.
샘플 구성의 경우 다음 섹션을 참조하세요.
예: 두 라우터 간의 CLNS 활성화
경로 리플렉터를 통해 두 라우터 간에 CLNS를 구성합니다.
On Router 1: protocols { bgp { local-address 10.255.245.195; group pe-pe { type internal; neighbor 10.255.245.194 { family iso-vpn { unicast; } } } } } routing-instances { aaaa { instance-type vrf; interface fe-0/0/0.0; interface so-1/1/0.0; interface lo0.1; route-distinguisher 10.255.245.194:1; vrf-target target:11111:1; protocols { isis { export dist-bgp; no-ipv4-routing; no-ipv6-routing; clns-routing; interface all; } } } } On Router 2: protocols { bgp { group pe-pe { type internal; local-address 10.255.245.198; family route-target; neighbor 10.255.245.194 { family iso-vpn { unicast; } } } } } routing-instances { aaaa { instance-type vrf; interface lo0.1; interface so-0/1/2.0; interface so-0/1/3.0; route-distinguisher 10.255.245.194:1; vrf-target target:11111:1; routing-options { rib aaaa.iso.0 { static { iso-route 47.0005.80ff.f800.0000.bbbb.1022/104 next-hop 47.0005.80ff.f800.0000.aaaa.1000.1921.6800.4196.00; } } } protocols { isis { export dist-bgp; no-ipv4-routing; no-ipv6-routing; clns-routing; interface all; } } } } On Route Reflector: protocols { bgp { group pe-pe { type internal; local-address 10.255.245.194; family route-target; neighbor 10.255.245.195 { cluster 0.0.0.1; } neighbor 10.255.245.198 { cluster 0.0.0.1; } } } }
예: VPN 내에서 CLNS 구성
VPN 내 3개의 PE 라우터에서 CLNS를 구성합니다.
On PE Router 1: protocols { mpls { interface all; } bgp { group asbr { type external; local-address 10.245.245.3; neighbor 10.245.245.1 { multihop; family iso-vpn { unicast; } peer-as 200; } } } } routing-instances { aaaa { instance-type vrf; interface lo0.1; interface t1-3/0/0.0; interface fe-5/0/1.0; route-distinguisher 10.245.245.1:1; vrf-target target:11111:1; protocols { isis { export dist-bgp; no-ipv4-routing; no-ipv6-routing; clns-routing; interface all; } } } } On PE Router 2: protocols { bgp { group asbr { type external; multihop; family iso-vpn { unicast; } neighbor 10.245.245.2 { peer-as 300; } neighbor 10.245.245.3 { peer-as 100; } } } } routing-instances { aaaa { instance-type vrf; interface lo0.1; route-distinguisher 10.245.245.1:1; vrf-target target:11111:1; } } On PE Router 3: protocols { bgp { group asbr { type external; multihop; local-address 10.245.245.2; neighbor 10.245.245.1 { family iso-vpn { unicast; } peer-as 200; } } } } routing-instances { aaaa { instance-type vrf; interface lo0.1; interface fe-0/0/1.0; interface t1-3/0/0.0; route-distinguisher 10.245.245.1:1; vrf-target target:11111:1; protocols { isis { export dist-bgp; no-ipv6-routing; clns-routing; interface all; } } } }
참조
예: CLNS VPN에 대한 BGP 구성
이 예에서는 CLNS VPN에 대한 BGP 그룹을 생성하고, 그룹에 대한 BGP 피어 neighbor 주소를 정의하고, 패밀리를 정의하는 방법을 보여줍니다.
요구 사항
시작하기 전에 네트워크 인터페이스를 구성합니다. 보안 디바이스에 대한 인터페이스 사용자 가이드를 참조하십시오.
개요
이 예에서는 pedge-pedge라는 BGP 그룹을 생성하고, 그룹에 대한 BGP 피어 neighbor 주소를 10.255.245.215로 정의하고, BGP 패밀리를 정의합니다.
구성
절차
CLI 빠른 구성
이 예를 빠르게 구성하려면, 아래 명령을 복사하여 텍스트 파일로 붙여 넣은 다음 모든 라인브레이크를 제거하고, 네트워크 구성을 일치하는 데 필요한 세부 사항을 바꾸고 [edit]
계층 수준에서 명령을 CLI로 복사해 붙여 넣은 다음, 구성 모드에서 commit
을(를) 입력합니다.
set protocols bgp group pedge-pedge neighbor 10.255.245.213 set protocols bgp family iso-vpn unicast
단계별 절차
다음 예는 구성 계층에서 다양한 수준의 탐색이 필요합니다. CLI 탐색에 대한 정보는 구성 모드에서 CLI 편집기 사용을 참조하십시오.
CLNS VPN에 대해 BGP를 구성하려면 다음을 수행합니다.
BGP 그룹을 구성하고 BGP 피어 neighbor 주소를 정의합니다.
[edit protocols bgp] user@host# set group pedge-pedge neighbor 10.255.245.213
패밀리를 정의합니다.
[edit protocols bgp] user@host# set family iso-vpn unicast
디바이스 구성을 완료하면 해당 구성을 커밋합니다.
[edit] user@host# commit
검증
이웃 상태 확인
목적
BGP 피어에 대한 정보를 표시합니다.
작업
운영 모드에서 show bgp neighbor 10.255.245.213
명령을 실행합니다. 출력에서 iso-vpn-unicast
을 찾습니다.
user@host> show bgp neighbor 10.255.245.213
Peer: 10.255.245.213+179 AS 200 Local: 10.255.245.214+3770 AS 100
Type: External State: Established Flags: <ImportEval Sync>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Options: <Multihop Preference LocalAddress HoldTime AddressFamily PeerAS
Rib-group Refresh>
Address families configured: iso-vpn-unicast
Local Address: 10.255.245.214 Holdtime: 90 Preference: 170
Number of flaps: 0
Peer ID: 10.255.245.213 Local ID: 10.255.245.214 Active Holdtime: 90
Keepalive Interval: 30 Peer index: 0
NLRI advertised by peer: iso-vpn-unicast
NLRI for this session: iso-vpn-unicast
Peer supports Refresh capability (2)
Table bgp.isovpn.0 Bit: 10000
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: in sync
Active prefixes: 3
Received prefixes: 3
Suppressed due to damping: 0
Advertised prefixes: 3
Table aaaa.iso.0
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: not advertising
Active prefixes: 3
Received prefixes: 3
Suppressed due to damping: 0
Last traffic (seconds): Received 6 Sent 5 Checked 5
Input messages: Total 1736 Updates 4 Refreshes 0 Octets 33385
Output messages: Total 1738 Updates 3 Refreshes 0 Octets 33305
Output Queue[0]: 0
Output Queue[1]: 0