VPN 및 VPLS
VPN은 디바이스에서 네트워크로의 인터넷을 통해 암호화된 연결로, 트래픽에 대한 무단 액세스 도청을 방지하고 사용자가 원격으로 작업을 수행할 수 있도록 합니다. 자세한 내용은 다음 주제를 참조하십시오.
VPLS 소개
VPLS는 이더넷 기반의 포인트 투 멀티포인트 레이어 2 VPN입니다. 이를 통해 지리적으로 분산된 이더넷 LAN(Local Area Network) 사이트를 MPLS 백본에서 서로 연결할 수 있습니다. VPLS를 구현하는 고객의 경우, 트래픽이 서비스 프로바이더의 네트워크를 통해 이동하더라도 모든 사이트가 동일한 이더넷 LAN에 있는 것으로 보입니다.
VPLS는 구현 및 구성에서 레이어 2 VPN과 많은 공통점을 가지고 있습니다. VPLS에서 서비스 프로바이더 고객의 네트워크 내에서 발생하는 패킷은 먼저 고객 에지(CE) 디바이스(예: 라우터 또는 이더넷 스위치)로 전송됩니다. 그런 다음 서비스 프로바이더의 네트워크 내 프로바이더 에지(PE) 라우터로 전송됩니다. 패킷은 MPLS 레이블 스위칭 경로(LSP)를 통해 서비스 프로바이더의 네트워크를 통과합니다. 송신 PE 라우터에 도달한 다음 대상 고객 사이트의 CE 디바이스로 트래픽을 전달합니다.
VPLS 문서에서 PE 라우터와 같은 용어의 단어 라우터는 라우팅 기능을 제공하는 모든 디바이스를 참조하는 데 사용됩니다.
차이점은 VPLS의 경우 패킷이 서비스 프로바이더의 네트워크를 포인트 투 멀티포인트 방식으로 트래버스할 수 있다는 것입니다. 즉, CE 디바이스에서 생성되는 패킷이 VPLS 라우팅 인스턴스에 참여하는 모든 PE 라우터에 브로드캐스트될 수 있다는 의미입니다. 반면, 레이어 2 VPN은 패킷을 포인트 투 포인트 방식으로만 전달합니다.
라우팅 인스턴스에 참여하는 각 PE 라우터 간에 VPLS 트래픽을 전달하는 경로를 의사 회선이라고 합니다. 유사 배선은 BGP 또는 LDP를 사용하여 신호됩니다.
예: 논리적 시스템을 사용하여 레이어 3 VPN 및 VPLS 시나리오에서 프로바이더 에지 및 프로바이더 라우터 구성
이 예는 논리적 시스템을 사용하여 VPN 및 VPLS 시나리오에서 프로바이더 에지(PE) 및 프로바이더(P) 라우터를 구성하는 단계별 절차를 제공합니다.
요구 사항
이 예에서는 디바이스 초기화를 제외한 특별한 구성이 필요하지 않습니다.
개요
이 예에서 VPN은 공급자 백본을 통해 고객 트래픽을 분리하는 데 사용됩니다.
토폴로지
그림 1은 MPLS 백본을 가로질러 연결된 4쌍의 CE 라우터를 보여줍니다.
라우터 CE1 및 CE5는 빨간색 VPN의 일부입니다.
라우터 CE2 및 CE6은 파란색 VPN에 있습니다.
라우터 CE3 및 CE7은 VPLS 도메인에 속합니다.
라우터 CE4 및 CE8은 표준 프로토콜로 연결됩니다.
PE 라우터 PE1 및 PE2 및 프로바이더 코어 라우터 P0에 두 개의 논리적 시스템이 구성됩니다. 이들 3개의 라우터 각각에는 LS1과 LS2라는 두 개의 논리적 시스템이 있습니다. 논리적 시스템의 개념을 설명하기 위해 두 VPN은 논리적 시스템 LS1의 일부이고, VPLS 인스턴스는 논리적 시스템 LS2에 속하며, 나머지 라우터는 라우터 PE1, P0 및 PE2의 메인 라우터 부분을 사용합니다.
![Provider Edge and Provider Logical System Topology Diagram](/documentation/us/en/software/junos/logical-systems/images/g016933.gif)
라우터 PE1에서 2개의 VPN 라우팅 및 포워딩(VRF) 라우팅 인스턴스가 논리적 시스템 LS1에 생성됩니다. 라우팅 인스턴스를 빨간색과 파란색이라고 합니다. 이 예는 고객 에지(CE) 대면 논리적 인터페이스를 구성하여 라우터 CE1의 트래픽이 빨간색 VPN에 배치되고 라우터 CE2의 트래픽이 파란색 VPN에 배치됩니다. fe-0/0/1.1 의 논리적 인터페이스는 라우터 P0의 논리적 시스템 LS1에 연결됩니다. VPLS 라우팅 인스턴스는 논리적 시스템 LS2에 있습니다. 라우터 CE3의 트래픽이 VPLS 도메인으로 전송되도록 논리적 인터페이스가 구성됩니다. 이 논리적 인터페이스는 라우터 P0에서 논리적 시스템 LS2에 연결됩니다. 이 예에는 논리적 시스템 LS1의 관리자도 포함되어 있습니다. 논리적 시스템 관리자는 이 논리적 시스템의 유지 보수를 담당합니다. 마지막으로, 이 예는 라우터 CE4를 라우터 PE1의 주요 라우터 부분과 상호 연결하는 논리적 인터페이스를 구성하는 방법을 보여줍니다.
라우터 PE2에는 논리적 시스템 LS1의 빨간색과 파란색이라는 두 개의 VRF 라우팅 인스턴스가 있습니다. CE 대면 논리적 인터페이스를 사용하면 라우터 CE5의 트래픽을 빨간색 VPN에 배치하고 라우터 CE6의 트래픽을 파란색 VPN에 배치할 수 있습니다. so-1/2/0.1 의 하나의 논리적 인터페이스는 라우터 P0의 논리적 시스템 LS1에 연결됩니다. VPLS 라우팅 인스턴스는 논리적 시스템 LS2에서 구성됩니다. 논리적 인터페이스를 사용하면 라우터 CE7의 트래픽을 VPLS 도메인으로 전송하고 라우터 P0의 논리적 시스템 LS2에 연결할 수 있습니다. 이 예는 라우터 CE8을 라우터 P0의 주요 라우터 부분과 상호 연결하는 논리적 인터페이스를 구성하는 방법을 보여줍니다. 마지막으로, 논리적 시스템 LS1에 대한 구성 권한과 논리적 시스템 LS2에 대한 보기 권한이 있는 논리적 시스템 관리자를 선택적으로 생성할 수 있습니다.
라우터 P0에서 예제는 논리적 시스템 LS1, LS2 및 기본 라우터를 구성하는 방법을 보여줍니다. 기본 라우터 [edit interfaces]
계층 수준에서 물리적 인터페이스 속성을 구성해야 합니다. 다음으로, 예는 프로토콜(예: RSVP, MPLS, BGP, IS-IS), 라우팅 옵션 및 논리적 시스템에 대한 정책 옵션을 구성하는 방법을 보여줍니다. 마지막으로, 예제에서는 라우터 PE1에 구성된 논리적 시스템 LS1에 대해 동일한 관리자를 구성하는 방법을 보여 줍니다. 논리적 시스템 LS2의 이 시스템 관리자는 LS2 구성을 볼 수 있는 권한이 있지만 논리적 시스템 LS2의 구성은 변경하지 않습니다.
논리적 시스템 LS1은 라우터 CE1과 CE5 사이에 존재하는 빨간색 VPN에 대한 트래픽을 전송합니다. 논리적 시스템 LS1은 라우터 CE2와 CE6 사이에 존재하는 파란색 VPN도 연결합니다. 논리적 시스템 LS2는 라우터 CE3과 CE7 사이에 VPLS 트래픽을 전송합니다. 라우터 P0의 메인 라우터의 경우, 라우터를 평소대로 구성할 수 있습니다. 메인 라우터는 라우터 CE4와 CE8 사이에 트래픽을 전송합니다. 이 예는 라우터 PE1 및 PE2의 주요 라우터 부분에 연결하도록 인터페이스 및 라우팅 프로토콜(OSPF, BGP)을 구성하는 방법을 보여줍니다.
구성
논리적 시스템에서 PE 및 P 라우터를 구성하려면 다음 작업을 수행하는 것이 포함됩니다.
고객 에지 디바이스의 인터페이스 구성
단계별 절차
다음 예제에서는 구성 계층에서 다양한 수준의 탐색이 필요합니다. CLI 탐색에 대한 정보는 CLI 사용자 가이드의 구성 모드에서 CLI 편집기 사용을 참조하십시오.
라우터 CE1에서 라우터 PE1의 논리적 시스템 LS1에서 빨간색 VPN에 연결하도록 OSPF를 구성합니다.
user@CE1# set interfaces fe-1/0/1 vlan-tagging user@CE1# set interfaces fe-1/0/1 unit 0 description "routing-instance red CE" user@CE1# set interfaces fe-1/0/1 unit 0 vlan-id 101 user@CE1# set interfaces fe-1/0/1 unit 0 family inet address 10.11.1.1/24 user@CE1# set interfaces lo0 unit 0 family inet address 10.11.1.100/32 user@CE1# set protocols ospf area 0.0.0.0 interface fe-1/0/1.0 user@CE1# set protocols ospf area 0.0.0.0 interface lo0.0
라우터 CE2에서 라우터 PE1의 논리적 시스템 LS1에서 파란색 VPN에 연결하도록 BGP를 구성합니다.
user@CE2# set interfaces fe-1/0/2 vlan-tagging user@CE2# set interfaces fe-1/0/2 unit 0 description "routing-instance blue CE" user@CE2# set interfaces fe-1/0/2 unit 0 vlan-id 102 user@CE2# set interfaces fe-1/0/2 unit 0 family inet address 10.21.1.1/24 user@CE2# set interfaces lo0 unit 0 family inet address 10.21.1.100/32 user@CE2# set policy-options policy-statement export_loopback from route-filter 10.21.1.100/32 exact user@CE2# set policy-options policy-statement export_loopback then accept user@CE2# set protocols bgp export export_loopback user@CE2# set protocols bgp group to_PE type external user@CE2# set protocols bgp group to_PE local-address 10.21.1.1 user@CE2# set protocols bgp group to_PE peer-as 100 user@CE2# set protocols bgp group to_PE neighbor 10.21.1.2 user@CE2# set routing-options autonomous-system 200
라우터 CE3에서 라우터 PE1의 논리적 시스템 LS2에서 VPLS 라우팅 인스턴스와 연결하도록 VLAN 600에서 고속 이더넷 인터페이스를 구성합니다.
user@CE3# set interfaces fe-1/0/0 vlan-tagging user@CE3# set interfaces fe-1/0/0 unit 0 description "vpls interface" user@CE3# set interfaces fe-1/0/0 unit 0 vlan-id 600 user@CE3# set interfaces fe-1/0/0 unit 0 family inet address 10.1.1.1/24
라우터 CE4에서 라우터 PE1의 메인 라우터와 연결하도록 고속 이더넷 인터페이스를 구성합니다.
user@CE4# set interfaces fe-1/0/3 vlan-tagging user@CE4# set interfaces fe-1/0/3 unit 0 description "main router interface" user@CE4# set interfaces fe-1/0/3 unit 0 vlan-id 103 user@CE4# set interfaces fe-1/0/3 unit 0 family inet address 10.31.1.1/24 user@CE4# set interfaces lo0 unit 0 family inet address 10.255.41.177/32
라우터 CE5에서 라우터 PE2의 논리적 시스템 LS1에서 빨간색 VPN에 연결하도록 OSPF를 구성합니다.
user@CE5# set interfaces fe-0/3/1 vlan-tagging user@CE5# set interfaces fe-0/3/1 unit 0 description "routing-instance red CE" user@CE5# set interfaces fe-0/3/1 unit 0 vlan-id 101 user@CE5# set interfaces fe-0/3/1 unit 0 family inet address 10.11.4.2/24 user@CE5# set interfaces lo0 unit 0 family inet address 10.11.4.100/32 user@CE5# set protocols ospf area 0.0.0.0 interface fe-0/3/1.0 user@CE5# set protocols ospf area 0.0.0.0 interface lo0.0 user@CE5# set system login class LS1admin logical-system LS1 user@CE5# set system login class LS1admin permissions all user@CE5# set system login class LS1onlooker logical-system LS2 user@CE5# set system login class LS1onlooker permissions view user@CE5# set system login user LS1admin class LS1admin
라우터 CE6에서 라우터 PE2의 논리적 시스템 LS1에서 파란색 VPN에 연결하도록 BGP를 구성합니다.
user@CE6# set interfaces fe-0/3/2 vlan-tagging user@CE6# set interfaces fe-0/3/2 unit 0 description "routing-instance blue CE" user@CE6# set interfaces fe-0/3/2 unit 0 vlan-id 102 user@CE6# set interfaces fe-0/3/2 unit 0 family inet address 10.21.4.2/24 user@CE6# set interfaces lo0 unit 0 family inet address 10.21.4.100/32 user@CE6# set routing-options autonomous-system 300 user@CE6# set protocols bgp export export_loopback user@CE6# set protocols bgp group to_PE type external user@CE6# set protocols bgp group to_PE local-address 10.21.4.2 user@CE6# set protocols bgp group to_PE peer-as 100 user@CE6# set protocols bgp group to_PE neighbor 10.21.4.1 user@CE6# set policy-options policy-statement export_loopback from route-filter 10.21.4.100/32 exact user@CE6# set policy-options policy-statement export_loopback then accept
라우터 CE7에서 라우터 PE2의 논리적 시스템 LS2에서 VPLS 라우팅 인스턴스와 연결하도록 VLAN 600에서 고속 이더넷 인터페이스를 구성합니다.
user@CE7# set interfaces fe-0/3/0 vlan-tagging user@CE7# set interfaces fe-0/3/0 unit 0 description "vpls interface" user@CE7# set interfaces fe-0/3/0 unit 0 vlan-id 600 user@CE7# set interfaces fe-0/3/0 unit 0 family inet address 10.1.1.2/24
라우터 CE8에서 고속 이더넷 인터페이스를 구성하여 라우터 PE2의 메인 라우터와 연결합니다.
user@CE8# set interfaces fe-0/3/3 vlan-tagging user@CE8# set interfaces fe-0/3/3 unit 0 description "main router interface" user@CE8# set interfaces fe-0/3/3 unit 0 vlan-id 103 user@CE8# set interfaces fe-0/3/3 unit 0 family inet address 10.31.4.2/24 user@CE8# set interfaces lo0 unit 0 family inet address 10.255.41.180/32
라우터 PE1 구성
단계별 절차
라우터 PE1에서 기본 라우터를 구성합니다.
user@PE1# set interfaces fe-0/0/1 vlan-tagging user@PE1# set interfaces fe-0/0/1 unit 3 description "main router to P0" user@PE1# set interfaces fe-0/0/1 unit 3 vlan-id 103 user@PE1# set interfaces fe-0/0/1 unit 3 family inet address 10.31.2.1/24 user@PE1# set interfaces fe-0/0/1 unit 3 family iso user@PE1# set interfaces fe-0/0/1 unit 3 family mpls user@PE1# set interfaces fe-0/1/0 vlan-tagging user@PE1# set interfaces fe-0/1/0 encapsulation vlan-vpls user@PE1# set interfaces fe-0/1/1 vlan-tagging user@PE1# set interfaces fe-0/1/2 vlan-tagging user@PE1# set interfaces fe-0/1/3 vlan-tagging user@PE1# set interfaces fe-0/1/3 unit 0 description "main router to CE4" user@PE1# set interfaces fe-0/1/3 unit 0 vlan-id 103 user@PE1# set interfaces fe-0/1/3 unit 0 family inet address 10.31.1.2/24 user@PE1# set interfaces lo0 unit 0 description "main router loopback" user@PE1# set interfaces lo0 unit 0 family inet address 10.255.41.173/32 user@PE1# set protocols bgp group to_main_ls type internal user@PE1# set protocols bgp group to_main_ls local-address 10.255.41.173 user@PE1# set protocols bgp group to_main_ls export export_address user@PE1# set protocols bgp group to_main_ls neighbor 10.255.41.179 user@PE1# set protocols bgp group to_main_ls neighbor 10.255.41.175 user@PE1# set protocols ospf area 0.0.0.0 interface lo0.0 user@PE1# set protocols ospf area 0.0.0.0 interface fe-0/0/1.3 user@PE1# set routing-options static route 10.255.41.177/32 next-hop 10.31.1.1 user@PE1# set routing-options autonomous-system 500 user@PE1# set policy-options policy-statement export_address from route-filter 10.255.41.177/32 exact user@PE1# set policy-options policy-statement export_address then accept user@PE1# set system login class LS1-admin logical-system LS1 user@PE1# set system login class LS1-admin permissions all user@PE1# set system login user LS1-admin class LS1-admin user@PE1# set system login user LS1-admin authentication plain-text-password New password: Retype new password:
라우터 PE1에서 논리적 시스템 LS1을 구성합니다.
user@PE1# set logical-systems LS1 interfaces fe-0/0/1 unit 1 description "LS1 interface" user@PE1# set logical-systems LS1 interfaces fe-0/0/1 unit 1 vlan-id 101 user@PE1# set logical-systems LS1 interfaces fe-0/0/1 unit 1 family inet address 10.11.2.1/24 user@PE1# set logical-systems LS1 interfaces fe-0/0/1 unit 1 family iso user@PE1# set logical-systems LS1 interfaces fe-0/0/1 unit 1 family mpls user@PE1# set logical-systems LS1 interfaces fe-0/1/1 unit 0 description "routing-instance red interface" user@PE1# set logical-systems LS1 interfaces fe-0/1/1 unit 0 vlan-id 101 user@PE1# set logical-systems LS1 interfaces fe-0/1/1 unit 0 family inet address 10.11.1.2/24 user@PE1# set logical-systems LS1 interfaces fe-0/1/2 unit 0 description "routing-instance blue interface" user@PE1# set logical-systems LS1 interfaces fe-0/1/2 unit 0 vlan-id 102 user@PE1# set logical-systems LS1 interfaces fe-0/1/2 unit 0 family inet address 10.21.1.2/24 user@PE1# set logical-systems LS1 interfaces lo0 unit 1 description "LS1 loopback" user@PE1# set logical-systems LS1 interfaces lo0 unit 1 family inet address 10.10.10.10/32 user@PE1# set logical-systems LS1 interfaces lo0 unit 1 family iso address 47.1111.1111.1111.1111.00 user@PE1# set logical-systems LS1 protocols rsvp interface all user@PE1# set logical-systems LS1 protocols mpls label-switched-path to_10.10.10.12 to 10.10.10.12 user@PE1# set logical-systems LS1 protocols mpls interface all user@PE1# set logical-systems LS1 protocols bgp group to_other_PE type internal user@PE1# set logical-systems LS1 protocols bgp group to_other_PE local-address 10.10.10.10 user@PE1# set logical-systems LS1 protocols bgp group to_other_PE family inet-vpn any user@PE1# set logical-systems LS1 protocols bgp group to_other_PE neighbor 10.10.10.12 user@PE1# set logical-systems LS1 protocols isis interface all user@PE1# set logical-systems LS1 policy-options policy-statement from_bgp_to_ospf then accept user@PE1# set logical-systems LS1 routing-instances blue instance-type vrf user@PE1# set logical-systems LS1 routing-instances blue interface fe-0/1/2.0 user@PE1# set logical-systems LS1 routing-instances blue route-distinguisher 10.10.10.10:200 user@PE1# set logical-systems LS1 routing-instances blue vrf-target target:20:20 user@PE1# set logical-systems LS1 routing-instances blue protocols bgp group to_CE type external user@PE1# set logical-systems LS1 routing-instances blue protocols bgp group to_CE local-address 10.21.1.2 user@PE1# set logical-systems LS1 routing-instances blue protocols bgp group to_CE peer-as 200 user@PE1# set logical-systems LS1 routing-instances blue protocols bgp group to_CE neighbor 10.21.1.1 user@PE1# set logical-systems LS1 routing-instances red instance-type vrf user@PE1# set logical-systems LS1 routing-instances red interface fe-0/1/1.0 user@PE1# set logical-systems LS1 routing-instances red route-distinguisher 10.10.10.10:100 user@PE1# set logical-systems LS1 routing-instances red vrf-target target:10:10 user@PE1# set logical-systems LS1 routing-instances red protocols ospf export from_bgp_to_ospf user@PE1# set logical-systems LS1 routing-instances red protocols ospf area 0.0.0.0 interface all user@PE1# set logical-systems LS1 routing-options autonomous-system 100
라우터 PE1에서 논리적 시스템 LS2를 구성합니다.
user@PE1# set logical-systems LS2 interfaces fe-0/0/1 unit 0 description "core-facing LS2 interface" user@PE1# set logical-systems LS2 interfaces fe-0/0/1 unit 0 vlan-id 100 user@PE1# set logical-systems LS2 interfaces fe-0/0/1 unit 0 family inet address 10.1.2.1/24 user@PE1# set logical-systems LS2 interfaces fe-0/0/1 unit 0 family iso user@PE1# set logical-systems LS2 interfaces fe-0/0/1 unit 0 family mpls user@PE1# set logical-systems LS2 interfaces fe-0/1/0 unit 0 description "vpls interface to ce3" user@PE1# set logical-systems LS2 interfaces fe-0/1/0 unit 0 encapsulation vlan-vpls user@PE1# set logical-systems LS2 interfaces fe-0/1/0 unit 0 vlan-id 600 user@PE1# set logical-systems LS2 interfaces fe-0/1/0 unit 0 family vpls user@PE1# set logical-systems LS2 interfaces lo0 unit 2 description "LS2 loopback" user@PE1# set logical-systems LS2 interfaces lo0 unit 2 family inet address 10.20.20.20/32 user@PE1# set logical-systems LS2 interfaces lo0 unit 2 family iso address 47.2222.2222.2222.2222.00 user@PE1# set logical-systems LS2 protocols rsvp interface all user@PE1# set logical-systems LS2 protocols mpls label-switched-path to_10.20.20.22 to 10.20.20.22 user@PE1# set logical-systems LS2 protocols mpls interface all user@PE1# set logical-systems LS2 protocols bgp group to_VPLS_PE type internal user@PE1# set logical-systems LS2 protocols bgp group to_VPLS_PE local-address 10.20.20.20 user@PE1# set logical-systems LS2 protocols bgp group to_VPLS_PE family l2vpn signaling user@PE1# set logical-systems LS2 protocols bgp group to_VPLS_PE neighbor 10.20.20.22 user@PE1# set logical-systems LS2 protocols isis interface fe-0/0/1.0 user@PE1# set logical-systems LS2 protocols isis interface lo0.2 user@PE1# set logical-systems LS2 routing-instances new instance-type vpls user@PE1# set logical-systems LS2 routing-instances new interface fe-0/1/0.0 user@PE1# set logical-systems LS2 routing-instances new route-distinguisher 10.20.20.20:100 user@PE1# set logical-systems LS2 routing-instances new vrf-target target:30:30 user@PE1# set logical-systems LS2 routing-instances new protocols vpls site-range 10 user@PE1# set logical-systems LS2 routing-instances new protocols vpls site newPE site-identifier 1 user@PE1# set logical-systems LS2 routing-options autonomous-system 400
라우터 PE2 구성
단계별 절차
라우터 PE2에서 메인 라우터를 구성합니다.
user@PE2# set interfaces fe-0/2/0 vlan-tagging user@PE2# set interfaces fe-0/2/0 encapsulation vlan-vpls user@PE2# set interfaces fe-0/2/1 vlan-tagging user@PE2# set interfaces fe-0/2/2 vlan-tagging user@PE2# set interfaces fe-0/2/3 vlan-tagging user@PE2# set interfaces fe-0/2/3 unit 0 description "main router to CE8" user@PE2# set interfaces fe-0/2/3 unit 0 vlan-id 103 user@PE2# set interfaces fe-0/2/3 unit 0 family inet address 10.31.4.1/24 user@PE2# set interfaces so-1/2/0 encapsulation frame-relay user@PE2# set interfaces so-1/2/0 unit 3 description "main router to P0" user@PE2# set interfaces so-1/2/0 unit 3 dlci 103 user@PE2# set interfaces so-1/2/0 unit 3 family inet address 10.31.3.2/24 user@PE2# set interfaces so-1/2/0 unit 3 family iso user@PE2# set interfaces so-1/2/0 unit 3 family mpls user@PE2# set interfaces lo0 unit 0 description "main router loopback" user@PE2# set interfaces lo0 unit 0 family inet address 10.155.41.179/32 user@PE2# set protocols bgp group to_main_ls type internal user@PE2# set protocols bgp group to_main_ls local-address 10.255.41.179 user@PE2# set protocols bgp group to_main_ls export export_address user@PE2# set protocols bgp group to_main_ls neighbor 10.255.41.173 user@PE2# set protocols bgp group to_main_ls neighbor 10.255.41.175 user@PE2# set protocols ospf area 0.0.0.0 interface so-1/2/0.3 user@PE2# set protocols ospf area 0.0.0.0 interface fe-0/2/3.0 user@PE2# set protocols ospf area 0.0.0.0 interface lo0.0 user@PE2# set routing-options static route 10.255.41.180/32 next-hop 10.31.4.2 user@PE2# set routing-options autonomous-system 500 user@PE2# set policy-options policy-statement export_address from route-filter 10.255.41.180/32 exact user@PE2# set policy-options policy-statement export_address then accept user@PE2# set system login class LS1-admin logical-system LS1 user@PE2# set system login class LS1-admin permissions all user@PE2# set system login class LS1-onlooker logical-system LS2 user@PE2# set system login class LS1-onlooker permissions view user@PE2# set system login user LS1-admin class LS1-admin
라우터 PE2에서 논리적 시스템 LS1을 구성합니다.
user@PE2# set logical-systems LS1 interfaces fe-0/2/0 unit 1 description "routing-instance red interface connects to Router CE5" user@PE2# set logical-systems LS1 interfaces fe-0/2/0 unit 1 vlan-id 101 user@PE2# set logical-systems LS1 interfaces fe-0/2/0 unit 1 family inet address 10.11.4.1/24 user@PE2# set logical-systems LS1 interfaces fe-0/2/0 unit 2 description "routing-instance blue interface connects to Router CE6" user@PE2# set logical-systems LS1 interfaces fe-0/2/0 unit 2 vlan-id 102 user@PE2# set logical-systems LS1 interfaces fe-0/2/0 unit 2 family inet address 10.21.4.1/24 user@PE2# set logical-systems LS1 interfaces so-1/2/0 unit 1 description "core-facing LS1 interface" user@PE2# set logical-systems LS1 interfaces so-1/2/0 unit 1 dlci 101 user@PE2# set logical-systems LS1 interfaces so-1/2/0 unit 1 family inet address 10.11.3.2/24 user@PE2# set logical-systems LS1 interfaces so-1/2/0 unit 1 family iso user@PE2# set logical-systems LS1 interfaces so-1/2/0 unit 1 family mpls user@PE2# set logical-systems LS1 interfaces lo0 unit 1 description "LS1 loopback" user@PE2# set logical-systems LS1 interfaces lo0 unit 1 family inet address 10.10.10.12/32 user@PE2# set logical-systems LS1 interfaces lo0 unit 1 family iso address 47.1111.1111.1111.1113.00 user@PE2# set logical-systems LS1 protocols rsvp interface all user@PE2# set logical-systems LS1 protocols mpls label-switched-path to_10.10.10.10 to 10.10.10.10 user@PE2# set logical-systems LS1 protocols mpls interface all user@PE2# set logical-systems LS1 protocols bgp group to_other_PE type internal user@PE2# set logical-systems LS1 protocols bgp group to_other_PE local-address 10.10.10.12 user@PE2# set logical-systems LS1 protocols bgp group to_other_PE family inet any user@PE2# set logical-systems LS1 protocols bgp group to_other_PE family inet-vpn any user@PE2# set logical-systems LS1 protocols bgp group to_other_PE neighbor 10.10.10.10 user@PE2# set logical-systems LS1 protocols isis interface all user@PE2# set logical-systems LS1 policy-options policy-statement from_bgp_to_ospf then accept user@PE2# set logical-systems LS1 routing-instances blue instance-type vrf user@PE2# set logical-systems LS1 routing-instances blue interface fe-0/2/2.0 user@PE2# set logical-systems LS1 routing-instances blue route-distinguisher 10.10.10.12:200 user@PE2# set logical-systems LS1 routing-instances blue vrf-target target:20:20 user@PE2# set logical-systems LS1 routing-instances blue protocols bgp group to_CE local-address 10.21.4.1 user@PE2# set logical-systems LS1 routing-instances blue protocols bgp group to_CE peer-as 300 user@PE2# set logical-systems LS1 routing-instances blue protocols bgp group to_CE neighbor 10.21.4.2 user@PE2# set logical-systems LS1 routing-instances red instance-type vrf user@PE2# set logical-systems LS1 routing-instances red interface fe-0/2/1.0 user@PE2# set logical-systems LS1 routing-instances red route-distinguisher 10.10.10.12:100 user@PE2# set logical-systems LS1 routing-instances red vrf-target target:10:10 user@PE2# set logical-systems LS1 routing-instances red protocols ospf export from_bgp_to_ospf user@PE2# set logical-systems LS1 routing-instances red protocols ospf area 0.0.0.0 interface all user@PE2# set logical-systems LS1 routing-options autonomous-system 100
라우터 PE2에서 논리적 시스템 LS2를 구성합니다.
user@PE2# set logical-systems LS2 interfaces fe-0/2/0 unit 0 description "vpls interface connects to Router CE7" user@PE2# set logical-systems LS2 interfaces fe-0/2/0 unit 0 encapsulation vlan-vpls user@PE2# set logical-systems LS2 interfaces fe-0/2/0 unit 0 vlan-id 600 user@PE2# set logical-systems LS2 interfaces fe-0/2/0 unit 0 family vpls user@PE2# set logical-systems LS2 interfaces so-1/2/0 unit 0 description "core-facing LS2 interface" user@PE2# set logical-systems LS2 interfaces so-1/2/0 unit 0 dlci 100 user@PE2# set logical-systems LS2 interfaces so-1/2/0 unit 0 family inet address 10.1.3.2/24 user@PE2# set logical-systems LS2 interfaces so-1/2/0 unit 0 family iso user@PE2# set logical-systems LS2 interfaces so-1/2/0 unit 0 family mpls user@PE2# set logical-systems LS2 interfaces lo0 unit 2 description "LS2 loopback" user@PE2# set logical-systems LS2 interfaces lo0 unit 2 family inet address 10.20.20.22/32 user@PE2# set logical-systems LS2 interfaces lo0 unit 2 family iso address 47.2222.2222.2222.2224.00 user@PE2# set logical-systems LS2 protocols rsvp interface all user@PE2# set logical-systems LS2 protocols mpls label-switched-path to_10.20.20.20 to 10.20.20.20 user@PE2# set logical-systems LS2 protocols mpls interface all user@PE2# set logical-systems LS2 protocols bgp group to_VPLS_PE type internal user@PE2# set logical-systems LS2 protocols bgp group to_VPLS_PE local-address 10.20.20.22 user@PE2# set logical-systems LS2 protocols bgp group to_VPLS_PE family l2vpn signaling user@PE2# set logical-systems LS2 protocols bgp group to_VPLS_PE neighbor 10.20.20.20 user@PE2# set logical-systems LS2 protocols isis interface so-1/2/0.0 user@PE2# set logical-systems LS2 protocols isis interface lo0.2 user@PE2# set logical-systems LS2 routing-instances new instance-type vpls user@PE2# set logical-systems LS2 routing-instances new interface fe-0/2/0.0 user@PE2# set logical-systems LS2 routing-instances new route-distinguisher 10.20.20.22:100 user@PE2# set logical-systems LS2 routing-instances new vrf-target target:30:30 user@PE2# set logical-systems LS2 routing-instances new protocols vpls site-range 10 user@PE2# set logical-systems LS2 routing-instances new protocols vpls site newPE site-identifier 2 user@PE2# set logical-systems LS2 routing-options autonomous-system 400
라우터 P0 구성
단계별 절차
라우터 P0에서 기본 라우터를 구성합니다.
user@P0# set interfaces fe-1/1/3 vlan-tagging user@P0# set interfaces fe-1/1/3 unit 3 description "connects to the main router on pe1" user@P0# set interfaces fe-1/1/3 unit 3 vlan-id 103 user@P0# set interfaces fe-1/1/3 unit 3 family inet address 10.31.2.2/24 user@P0# set interfaces fe-1/1/3 unit 3 family iso user@P0# set interfaces fe-1/1/3 unit 3 family mpls user@P0# set interfaces so-1/2/0 dce user@P0# set interfaces so-1/2/0 encapsulation frame-relay user@P0# set interfaces so-1/2/0 unit 3 description "connects to the main router on pe2" user@P0# set interfaces so-1/2/0 unit 3 dlci 103 user@P0# set interfaces so-1/2/0 unit 3 family inet address 10.31.3.1/24 user@P0# set interfaces so-1/2/0 unit 3 family iso user@P0# set interfaces so-1/2/0 unit 3 family mpls user@P0# set interfaces lo0 unit 0 description "main router loopback" user@P0# set interfaces lo0 unit 0 family inet address 10.255.41.175/32 user@P0# set routing-options autonomous-system 500 user@P0# set protocols bgp group to_main_ls type internal user@P0# set protocols bgp group to_main_ls local-address 10.255.41.175 user@P0# set protocols bgp group to_main_ls neighbor 10.255.41.179 user@P0# set protocols bgp group to_main_ls neighbor 10.255.41.173 user@P0# set protocols ospf area 0.0.0.0 interface lo0.0 user@P0# set protocols ospf area 0.0.0.0 interface fe-1/1/3.3 user@P0# set protocols ospf area 0.0.0.0 interface so-1/2/0.3 user@P0# set system login class LS1-admin logical-system LS1 user@P0# set system login class LS1-admin permissions all user@P0# set system login class LS1-onlooker logical-system LS2 user@P0# set system login class LS1-onlooker permissions view user@P0# set system login user LS1-admin class LS1-admin
라우터 P0에서 논리적 시스템 LS1을 구성합니다.
user@P0# set logical-systems LS1 interfaces fe-1/1/3 unit 1 description "LS1 interface connects to LS1 on pe1" user@P0# set logical-systems LS1 interfaces fe-1/1/3 unit 1 vlan-id 101 user@P0# set logical-systems LS1 interfaces fe-1/1/3 unit 1 family inet address 10.11.2.2/24 user@P0# set logical-systems LS1 interfaces fe-1/1/3 unit 1 family iso user@P0# set logical-systems LS1 interfaces fe-1/1/3 unit 1 family mpls user@P0# set logical-systems LS1 interfaces so-1/2/0 unit 1 description "LS1 interface connects to LS1 on pe2" user@P0# set logical-systems LS1 interfaces so-1/2/0 unit 1 dlci 101 user@P0# set logical-systems LS1 interfaces so-1/2/0 unit 1 family inet address 10.11.3.1/24 user@P0# set logical-systems LS1 interfaces so-1/2/0 unit 1 family iso user@P0# set logical-systems LS1 interfaces so-1/2/0 unit 1 family mpls user@P0# set logical-systems LS1 interfaces lo0 unit 1 description "LS1 loopback" user@P0# set logical-systems LS1 interfaces lo0 unit 1 family inet address 10.10.10.11/32 user@P0# set logical-systems LS1 interfaces lo0 unit 1 family iso address 47.1111.1111.1111.1112.00 user@P0# set logical-systems LS1 protocols rsvp interface all user@P0# set logical-systems LS1 protocols mpls interface all user@P0# set logical-systems LS1 protocols isis interface all
라우터 P0에서 논리적 시스템 LS2를 구성합니다.
user@P0# set logical-systems LS2 interfaces fe-1/1/3 unit 0 description "LS2 interface connects to LS2 on pe1" user@P0# set logical-systems LS2 interfaces fe-1/1/3 unit 0 vlan-id 100 user@P0# set logical-systems LS2 interfaces fe-1/1/3 unit 0 family inet address 10.1.2.2/24 user@P0# set logical-systems LS2 interfaces fe-1/1/3 unit 0 family iso user@P0# set logical-systems LS2 interfaces fe-1/1/3 unit 0 family mpls user@P0# set logical-systems LS2 interfaces so-1/2/0 unit 0 description "LS2 interface connects to LS2 on pe2" user@P0# set logical-systems LS2 interfaces so-1/2/0 unit 0 dlci 100 user@P0# set logical-systems LS2 interfaces so-1/2/0 unit 0 family inet address 10.1.3.1/24 user@P0# set logical-systems LS2 interfaces so-1/2/0 unit 0 family iso user@P0# set logical-systems LS2 interfaces so-1/2/0 unit 0 family mpls user@P0# set logical-systems LS2 interfaces lo0 unit 2 description "LS2 loopback" user@P0# set logical-systems LS2 interfaces lo0 unit 2 family inet address 10.20.20.21/32 user@P0# set logical-systems LS2 interfaces lo0 unit 2 family iso address 47.2222.2222.2222.2223.00 user@P0# set logical-systems LS2 protocols rsvp interface all user@P0# set logical-systems LS2 protocols mpls interface all user@P0# set logical-systems LS2 protocols isis interface fe-1/1/3.0 user@P0# set logical-systems LS2 protocols isis interface so-1/2/0.0 user@P0# set logical-systems LS2 protocols isis interface lo0.2
결과
라우터 CE1에서 라우터 PE1의 논리적 시스템 LS1에서 빨간색 VPN에 연결하도록 OSPF를 구성합니다.
라우터 CE1
[edit] interfaces { fe-1/0/1 { vlan-tagging; unit 0 { description "routing-instance red CE"; vlan-id 101; family inet { address 10.11.1.1/24; } } } lo0 { unit 0 { family inet { address 10.11.1.100/32; } } } } protocols { ospf { area 0.0.0.0 { interface fe-1/0/1.0; interface lo0.0; } } }
라우터 CE2에서 라우터 PE1의 논리적 시스템 LS1에서 파란색 VPN에 연결하도록 BGP를 구성합니다.
라우터 CE2
[edit] interfaces { fe-1/0/2 { vlan-tagging; unit 0 { description "routing-instance blue CE"; vlan-id 102; family inet { address 10.21.1.1/24; } } } lo0 { unit 0 { family inet { address 10.21.1.100/32; } } } } routing-options { autonomous-system 200; } protocols { bgp { export export_loopback; group to_PE { type external; local-address 10.21.1.1; peer-as 100; neighbor 10.21.1.2; } } } policy-options { policy-statement export_loopback { from { route-filter 10.21.1.100/32 exact; } then accept; } }
라우터 CE3에서 라우터 PE1의 논리적 시스템 LS2에서 VPLS 라우팅 인스턴스와 연결하도록 VLAN 600에서 빠른 이더넷 인터페이스를 구성합니다.
라우터 CE3
[edit] interfaces { fe-1/0/0 { vlan-tagging; unit 0 { description "vpls interface"; vlan-id 600; family inet { address 10.1.1.1/24; } } } }
라우터 CE4에서 라우터 PE1의 메인 라우터와 연결할 고속 이더넷 인터페이스를 구성합니다.
라우터 CE4
[edit] interfaces { fe-1/0/3 { vlan-tagging; unit 0 { description "main router interface"; vlan-id 103; family inet { address 10.31.1.1/24; } } } lo0 { unit 0 { family inet { address 10.255.41.177/32; } } } }
라우터 PE1에서 논리적 시스템 LS1: 빨간색과 파란색에 두 개의 VPN 라우팅 및 포워딩(VRF) 라우팅 인스턴스를 생성합니다. 라우터 CE1의 트래픽이 빨간색 VPN에 배치되고 라우터 CE2의 트래픽이 파란색 VPN에 배치되도록 CE 대면 논리적 인터페이스를 구성합니다. 다음으로, fe-0/0/1.1 에서 논리적 인터페이스를 생성하여 라우터 P0의 논리적 시스템 LS1에 연결합니다.
또한 라우터 PE1에서 논리적 시스템 LS2에서 VPLS 라우팅 인스턴스를 생성합니다. 라우터 CE3의 트래픽이 VPLS 도메인으로 전송되고 라우터 P0의 논리적 시스템 LS2에 연결되도록 논리적 인터페이스를 구성합니다.
논리적 시스템 LS1의 관리자를 생성합니다. 논리적 시스템 관리자는 이 논리적 시스템의 유지 보수를 담당할 수 있습니다.
마지막으로 라우터 CE4를 라우터 P0의 주요 라우터 부분과 상호 연결하도록 논리적 인터페이스를 구성합니다.
라우터 PE1
[edit] logical-systems { LS1 { # The configuration for the first logical system begins here. interfaces { fe-0/0/1 { unit 1 { # This is the core-facing interface for Logical System LS1. description "LS1 interface"; vlan-id 101; family inet { address 10.11.2.1/24; } family iso; family mpls; } } fe-0/1/1 { unit 0 { # This logical interface connects to Router CE1. description "routing-instance red interface"; vlan-id 101; family inet { address 10.11.1.2/24; } } } fe-0/1/2 { unit 0 { # This logical interface connects to Router CE2. description "routing-instance blue interface"; vlan-id 102; family inet { address 10.21.1.2/24; } } } lo0 { unit 1 { description "LS1 loopback"; family inet { address 10.10.10.10/32; } family iso { address 47.1111.1111.1111.1111.00; } } } } protocols { # You configure RSVP, MPLS, IS-IS, and BGP for Logical System LS1. rsvp { interface all; } mpls { label-switched-path to_10.10.10.12 { to 10.10.10.12; } interface all; } bgp { group to_other_PE { type internal; local-address 10.10.10.10; family inet-vpn { any; } neighbor 10.10.10.12; } } isis { interface all; } } policy-options { policy-statement from_bgp_to_ospf { then accept; } } routing-instances { blue { instance-type vrf; # You configure instance blue within Logical System LS1. interface fe-0/1/2.0; route-distinguisher 10.10.10.10:200; vrf-target target:20:20; protocols { bgp { #BGP connects the blue instance with Router CE2. group to_CE { type external; local-address 10.21.1.2; peer-as 200; neighbor 10.21.1.1; } } } } red { instance-type vrf; # You configure instance red within Logical System LS1. interface fe-0/1/1.0; route-distinguisher 10.10.10.10:100; vrf-target target:10:10; protocols { ospf {#OSPF connects the red instance with Router CE1. export from_bgp_to_ospf; area 0.0.0.0 { interface all; } } } } } routing-options { autonomous-system 100; } } LS2 { # The configuration for the second logical system begins here. interfaces { fe-0/0/1 { unit 0 { # This is the core-facing interface for Logical System LS2. description "LS2 interface"; vlan-id 100; family inet { address 10.1.2.1/24; } family iso; family mpls; } } fe-0/1/0 { unit 0 { # This logical interface connects to Router CE3. description "vpls interface"; encapsulation vlan-vpls; vlan-id 600; family vpls; } } lo0 { unit 2 { description "LS2 loopback"; family inet { address 10.20.20.20/32; } family iso { address 47.2222.2222.2222.2222.00; } } } } protocols { # You configure RSVP, MPLS, IS-IS, and BGP for Logical System LS2. rsvp { interface all; } mpls { label-switched-path to_10.20.20.22 { to 10.20.20.22; } interface all; } bgp { group to_VPLS_PE { type internal; local-address 10.20.20.20; family l2vpn { signaling; } neighbor 10.20.20.22; } } isis { interface fe-0/0/1.0; interface lo0.2; } } routing-instances { new { instance-type vpls; # You configure VPLS within Logical System LS2. interface fe-0/1/0.0; route-distinguisher 10.20.20.20:100; vrf-target target:30:30; protocols { vpls { site-range 10; site newPE { site-identifier 1; } } } } } routing-options { autonomous-system 400; } } } interfaces { fe-0/0/1 { vlan-tagging; unit 3 { # This is the core-facing interface for the main router of PE1. description "main router to P0"; vlan-id 103; family inet { address 10.31.2.1/24; } family iso; family mpls; } } fe-0/1/3 { vlan-tagging; unit 0 { # This logical interface in the main router of PE1 connects to CE4. description "main router to CE4"; vlan-id 103; family inet { address 10.31.1.2/24; } } } fe-0/1/0 { # You must always configure physical interface statements for vlan-tagging; # logical system interfaces at the [edit interfaces] hierarchy level. encapsulation vlan-vpls; } fe-0/1/1 { vlan-tagging; } fe-0/1/2 { vlan-tagging; } lo0 { unit 0 { description "main router loopback"; family inet { address 10.255.41.173/32; } } } } routing-options { static { route 10.255.41.177/32 next-hop 10.31.1.1; } autonomous-system 500; } protocols { bgp { # The main router uses BGP as the exterior gateway protocol. group to_main_ls { type internal; local-address 10.255.41.173; export export_address; neighbor 10.255.41.179; neighbor 10.255.41.175; } } ospf { # The main router uses OSPF as the interior gateway protocol. area 0.0.0.0 { interface lo0.0; interface fe-0/0/1.3; } } } policy-options { policy-statement export_address { from { route-filter 10.255.41.177/32 exact; } then accept; } } system { login { class LS1–admin { permissions all; logical-system LS1; } user LS1–admin { class LS1–admin; authentication plain-text password; New password: password Retype new password: password } } }
라우터 P0에서 논리적 시스템 LS1, LS2 및 기본 라우터를 구성합니다. 논리적 시스템의 경우, 기본 라우터 [edit interfaces]
계층 수준에서 물리적 인터페이스 속성을 구성하고 논리적 시스템에 논리적 인터페이스를 할당해야 합니다. 그런 다음, 프로토콜(예: RSVP, MPLS, BGP 및 IS-IS), 라우팅 옵션 및 논리적 시스템에 대한 정책 옵션을 구성해야 합니다. 마지막으로, 라우터 PE1에서 구성한 논리적 시스템 LS1에 대해 동일한 관리자를 구성합니다. 논리적 시스템 LS2에 대해 이 동일한 관리자를 구성하여 LS2 구성을 볼 수 있는 권한을 가지지만 LS2의 구성은 변경하지 않습니다.
이 예에서 논리적 시스템 LS1은 라우터 CE1과 CE5 사이에 존재하는 빨간색 VPN의 트래픽을 전송합니다. 논리적 시스템 LS1은 라우터 CE2와 CE6 사이에 존재하는 파란색 VPN도 연결합니다. 논리적 시스템 LS2는 라우터 CE3과 CE7 사이에 VPLS 트래픽을 전송합니다.
라우터 P0의 메인 라우터의 경우, 라우터를 평소대로 구성할 수 있습니다. 이 예에서 메인 라우터는 라우터 CE4와 CE8 간에 트래픽을 전송합니다. 그 결과, 인터페이스 및 라우팅 프로토콜(OSPF, BGP)을 구성하여 라우터 PE1 및 PE2의 주요 라우터 부분에 연결합니다.
라우터 P0
[edit] logical-systems { LS1 { # The configuration for the first logical system begins here. interfaces { fe-1/1/3 { unit 1 { # This logical interface connects to LS1 on Router PE1. description "LS1 interface"; vlan-id 101; family inet { address 10.11.2.2/24; } family iso; family mpls; } } so-1/2/0 { unit 1 { # This logical interface connects to LS1 on Router PE2. description "LS1 interface"; dlci 101; family inet { address 10.11.3.1/24; } family iso; family mpls; } } lo0 { unit 1 { description "LS1 loopback"; family inet { address 10.10.10.11/32; } family iso { address 47.1111.1111.1111.1112.00; } } } } protocols { # You configure RSVP, MPLS, and IS-IS for Logical System LS1. rsvp { interface all; } mpls { interface all; } isis { interface all; } } } LS2 { # The configuration for the second logical system begins here. interfaces { fe-1/1/3 { unit 0 { # This logical interface connects to LS2 on Router PE1. description "LS2 interface"; vlan-id 100; family inet { address 10.1.2.2/24; } family iso; family mpls; } } so-1/2/0 { unit 0 { # This logical interface connects to LS2 on Router PE2. description "LS2 interface"; dlci 100; family inet { address 10.1.3.1/24; } family iso; family mpls; } } lo0 { unit 2 { description "LS2 loopback"; family inet { address 10.20.20.21/32; } family iso { address 47.2222.2222.2222.2223.00; } } } } protocols { # You configure RSVP, MPLS, and IS-IS for Logical System LS2. rsvp { interface all; } mpls { interface all; } isis { interface fe-1/1/3.0; interface so-1/2/0.0; interface lo0.2; } } } } interfaces { fe-1/1/3 { vlan-tagging; unit 3 { # This logical interface connects to the main router on Router PE1. description "main router interface"; vlan-id 103; family inet { address 10.31.2.2/24; } family iso; family mpls; } } so-1/2/0 { dce; # You must configure all physical interface statements for logical encapsulation frame-relay; # routers at the [edit interfaces] hierarchy level. unit 3 { # This logical interface connects to the main router on Router PE2. description "main router interface"; dlci 103; family inet { address 10.31.3.1/24; } family iso; family mpls; } } lo0 { unit 0 { description "main router loopback"; family inet { address 10.255.41.175/32; } } } } routing-options { autonomous-system 500; } protocols { # You configure BGP and OSPF for the main router. bgp { group to_main_ls { type internal; local-address 10.255.41.175 neighbor 10.255.41.179; neighbor 10.255.41.173; } } ospf { area 0.0.0.0 { interface lo0.0; interface fe-1/1/3.3; interface so-1/2/0.3; } } } system { login { class LS1–admin { permissions all; logical-system LS1; } class LS1–onlooker { permissions view; logical-system LS2; } user LS1–admin { class LS1–admin; } } }
라우터 PE2에서 논리적 시스템 LS1에서 빨간색과 파란색이라는 두 개의 VRF 라우팅 인스턴스를 생성합니다. 라우터 CE5의 트래픽이 빨간색 VPN에 배치되고 라우터 CE6의 트래픽이 파란색 VPN에 배치되도록 CE 대면 논리적 인터페이스를 구성합니다. 다음으로 , so-1/2/0.1에서 하나의 논리적 인터페이스를 생성하여 라우터 P0의 논리적 시스템 LS1에 연결합니다.
또한 라우터 PE2에서 논리적 시스템 LS2에서 VPLS 라우팅 인스턴스를 생성합니다. 라우터 CE7의 트래픽이 VPLS 도메인으로 전송되고 라우터 P0의 논리적 시스템 LS2에 연결되도록 논리적 인터페이스를 구성합니다.
라우터 CE8을 라우터 P0의 주요 라우터 부분과 상호 연결하는 논리적 인터페이스를 구성합니다.
마지막으로, 논리적 시스템 LS1에 대한 구성 권한과 논리적 시스템 LS2에 대한 보기 권한이 있는 논리적 시스템 관리자를 선택적으로 생성할 수 있습니다.
라우터 PE2
[edit] logical-systems { LS1 { # The configuration for the first logical system begins here. interfaces { fe-0/2/0 { unit 1 { # This logical interface connects to Router CE5. description "routing-instance red interface"; vlan-id 101; family inet { address 10.11.4.1/24; } } unit 2 { # This logical interface connects to Router CE6. description "routing-instance blue interface"; vlan-id 102; family inet { address 10.21.4.1/24; } } } so-1/2/0 { unit 1 {# This is the core-facing interface for Logical System LS1. description "LS1 interface"; dlci 101; family inet { address 10.11.3.2/24; } family iso; family mpls; } } lo0 { unit 1 { description "LS1 loopback"; family inet { address 10.10.10.12/32; } family iso { address 47.1111.1111.1111.1113.00; } } } } protocols { rsvp {# You configure RSVP, MPLS, IS-IS, and BGP for Logical System LS1. interface all; } mpls { label-switched-path to_10.10.10.10 { to 10.10.10.10; } interface all; } bgp { group to_other_PE { type internal; local-address 10.10.10.12; family inet { any; } family inet-vpn { any; } neighbor 10.10.10.10; } } isis { interface all; } } policy-options { policy-statement from_bgp_to_ospf { then accept; } } routing-instances { blue { instance-type vrf; # You configure instance blue within Logical System LS1. interface fe-0/2/2.0; route-distinguisher 10.10.10.12:200; vrf-target target:20:20; protocols { bgp { # BGP connects the blue instance with Router CE6. group to_CE { local-address 10.21.4.1; peer-as 300; neighbor 10.21.4.2; } } } } red { instance-type vrf; # You configure instance red within Logical System LS1. interface fe-0/2/1.0; route-distinguisher 10.10.10.12:100; vrf-target target:10:10; protocols { ospf { # OSPF connects the red instance with Router CE5. export from_bgp_to_ospf; area 0.0.0.0 { interface all; } } } } } routing-options { autonomous-system 100; } } logical-systems { LS2 { # The configuration for the second logical system begins here. interfaces { fe-0/2/0 { unit 0 { # This logical interface connects to Router CE7. description "vpls interface"; encapsulation vlan-vpls; vlan-id 600; family vpls; } } so-1/2/0 { unit 0 { # This is the core-facing interface for Logical System LS2. description "LS2 interface"; dlci 100; family inet { address 10.1.3.2/24; } family iso; family mpls; } } lo0 { unit 2 { description "LS2 loopback"; family inet { address 10.20.20.22/32; } family iso { address 47.2222.2222.2222.2224.00; } } } } protocols { # You configure RSVP, MPLS, IS-IS, and BGP for Logical System LS2. rsvp { interface all; } mpls { label-switched-path to_10.20.20.20 { to 10.20.20.20; } interface all; } bgp { group to_VPLS_PE { type internal; local-address 10.20.20.22; family l2vpn { signaling; } neighbor 10.20.20.20; } } isis { interface so-1/2/0.0; interface lo0.2; } } routing-instances { new { instance-type vpls; # You configure VPLS within Logical System LS2. interface fe-0/2/0.0; route-distinguisher 10.20.20.22:100; vrf-target target:30:30; protocols { vpls { site-range 10; site newPE { site-identifier 2; } } } } } routing-options { autonomous-system 400; } } interfaces { fe-0/2/0 { # You must always configure physical interface statements for the vlan-tagging; # logical system interfaces at the [edit interfaces] hierarchy level. encapsulation vlan-vpls; } fe-0/2/1 { vlan-tagging; } fe-0/2/2 { vlan-tagging; } fe-0/2/3 { vlan-tagging; unit 0 { # This logical interface in the main router of PE2 connects to CE8. description "main router to CE8"; vlan-id 103; family inet { address 10.31.4.1/24; } } } so-1/2/0 { encapsulation frame-relay; unit 3 { # This is the core-facing interface for the main router of PE2. description "main router to P0"; dlci 103; family inet { address 10.31.3.2/24; } family iso; family mpls; } } lo0 { unit 0 { description "main router loopback"; family inet { address 10.155.41.179/32; } } } } routing-options { static { route 10.255.41.180/32 next-hop 10.31.4.2; } autonomous-system 500; } protocols { bgp {# The main router uses BGP as the exterior gateway protocol. group to_main_ls { type internal; local-address 10.255.41.179; export export_address; neighbor 10.255.41.173; neighbor 10.255.41.175; } } ospf {# The main router uses OSPF as the interior gateway protocol. area 0.0.0.0 { interface so-1/2/0.3; interface fe-0/2/3.0; interface lo0.0; } } } policy-options { policy-statement export_address { from { route-filter 10.255.41.180/32 exact; } then accept; } } } system { login { class LS1–admin { permissions all; logical-system LS1; } class LS1–onlooker { permissions view; logical-system LS2; } user LS1–admin { class LS1–admin; } } }
라우터 CE5에서 라우터 PE2의 논리적 시스템 LS1에서 빨간색 VPN에 연결하도록 OSPF를 구성합니다.
라우터 CE5
[edit] interfaces { fe-0/3/1 { vlan-tagging; unit 0 { description "routing-instance red CE"; vlan-id 101; family inet { address 10.11.4.2/24; } } } lo0 { unit 0 { family inet { address 10.11.4.100/32; } } } } protocols { ospf { area 0.0.0.0 { interface fe-0/3/1.0; interface lo0.0; } } } system { login { class LS1–admin { permissions all; logical-system LS1; } class LS1–onlooker { permissions view; logical-system LS2; } user LS1–admin { class LS1–admin; } } }
라우터 CE6에서 라우터 PE2의 논리적 시스템 LS1에서 파란색 VPN에 연결하도록 BGP를 구성합니다.
라우터 CE6
[edit] interfaces { fe-0/3/2 { vlan-tagging; unit 0 { description "routing-instance blue CE"; vlan-id 102; family inet { address 10.21.4.2/24; } } } lo0 { unit 0 { family inet { address 10.21.4.100/32; } } } } routing-options { autonomous-system 300; } protocols { bgp { export export_loopback; group to_PE { type external; local-address 10.21.4.2; peer-as 100; neighbor 10.21.4.1; } } } policy-options { policy-statement export_loopback { from { route-filter 10.21.4.100/32 exact; } then accept; } }
라우터 CE7에서 라우터 PE2의 논리적 시스템 LS2에서 VPLS 라우팅 인스턴스와 연결하도록 VLAN 600에서 고속 이더넷 인터페이스를 구성합니다.
라우터 CE7
[edit] interfaces { fe-0/3/0 { vlan-tagging; unit 0 { description "vpls interface"; vlan-id 600; family inet { address 10.1.1.2/24; } } } }
라우터 CE8에서 라우터 PE2에서 기본 라우터와 연결하도록 고속 이더넷 인터페이스를 구성합니다.
라우터 CE8
[edit] interfaces { fe-0/3/3 { vlan-tagging; unit 0 { description "main router interface"; vlan-id 103; family inet { address 10.31.4.2/24; } } } } lo0 { unit 0 { family inet { address 10.255.41.180/32; } } }
확인
다음 명령을 실행하여 구성이 제대로 작동하는지 확인합니다.
show bgp summary (논리적 시스템 logical-system-name)
show isis adjacency (논리적 시스템 logical-system-name)
show mpls lsp (논리적 시스템 logical-system-name)
show(ospf | ospf3) neighbor (논리적 시스템 logical-system-name)
show route (논리적 시스템 logical-system-name)
show route protocol (논리적 시스템 logical-system-name)
show rsvp 세션 (논리적 시스템 logical-system-name )
다음 섹션에는 구성 예와 함께 사용된 명령의 출력이 표시됩니다.
- 라우터 CE1 상태
- 라우터 CE2 상태
- 라우터 CE3 상태
- 라우터 PE1 상태: 메인 라우터
- 라우터 PE1 상태: 논리적 시스템 LS1
- 라우터 PE1 상태: 논리적 시스템 LS2
- 라우터 P0 상태: 메인 라우터
- 라우터 P0 상태: 메인 라우터
- 라우터 P0 상태: 논리적 시스템 LS1
- 라우터 P0 상태: 논리적 시스템 LS2
- 라우터 PE2 상태: 메인 라우터
- 라우터 PE2 상태: 논리적 시스템 LS1
- 라우터 PE2 상태: 논리적 시스템 LS2
- 라우터 CE5 상태
- 라우터 CE6 상태
- 라우터 CE7 상태
- 논리적 시스템 관리자 검증 출력
라우터 CE1 상태
목적
연결을 확인합니다.
작업
user@CE1> show route table inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.11.1.0/24 *[Direct/0] 00:20:20 > via fe-1/0/1.0 10.11.1.1/32 *[Local/0] 00:20:24 Local via fe-1/0/1.0 10.11.1.100/32 *[Direct/0] 00:21:53 > via lo0.0 10.11.4.0/24 *[OSPF/150] 00:18:30, metric 0, tag 3489661028 > to 10.11.1.2 via fe-1/0/1.0 10.11.4.100/32 *[OSPF/10] 00:18:30, metric 2 > to 10.11.1.2 via fe-1/0/1.0 224.0.0.5/32 *[OSPF/10] 00:21:58, metric 1 MultiRecv
라우터 CE2 상태
목적
연결을 확인합니다.
작업
user@CE2> show route table inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.21.1.0/24 *[Direct/0] 00:20:30 > via fe-1/0/2.0 10.21.1.1/32 *[Local/0] 00:20:34 Local via fe-1/0/2.0 10.21.1.100/32 *[Direct/0] 00:22:03 > via lo0.0 10.21.4.0/24 *[BGP/170] 00:18:43, localpref 100 AS path: 100 I > to 10.21.1.2 via fe-1/0/2.0 10.21.4.100/32 *[BGP/170] 00:18:43, localpref 100 AS path: 100 300 I > to 10.21.1.2 via fe-1/0/2.0
라우터 CE3 상태
목적
연결을 확인합니다.
작업
user@CE3> show route table inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.1.1.0/24 *[Direct/0] 00:20:13 > via fe-1/0/0.0 10.1.1.1/32 *[Local/0] 00:20:17 Local via fe-1/0/0.0
라우터 PE1 상태: 메인 라우터
목적
BGP 작업을 확인합니다.
작업
user@PE1> show bgp summary Groups: 1 Peers: 2 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending inet.0 1 0 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/DwnState|#Active/Received/Damped... 10.255.41.175 500 5 8 0 0 2:31 0/0/0 0/0/0 10.255.41.179 500 6 9 0 0 2:35 0/1/0 0/0/0
user@PE1> show route protocol bgp inet.0: 20 destinations, 21 routes (20 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.255.41.180/32 [BGP/170] 00:02:48, localpref 100, from 10.255.41.179 AS path: I > to 10.31.2.2 via fe-0/0/1.3 iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) user@PE1> show ospf neighbor Address Interface State ID Pri Dead 10.31.2.2 fe-0/0/1.3 Full 10.255.41.175 128 32 user@PE1> show isis adjacency IS-IS instance is not running
라우터 PE1 상태: 논리적 시스템 LS1
목적
BGP 작업을 확인합니다.
작업
user@PE1> show bgp summary logical-system LS1 Groups: 2 Peers: 2 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.l3vpn.0 4 4 0 0 0 0 bgp.l3vpn.2 0 0 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/DwnState|#Active/Received/Damped... 10.10.10.12 100 13 14 0 0 2:50 Establ bgp.l3vpn.0: 4/4/0 bgp.l3vpn.2: 0/0/0 blue.inet.0: 2/2/0 red.inet.0: 2/2/0 10.21.1.1 200 13 14 0 0 4:33 Establ blue.inet.0: 1/1/0
빨간색 VPN
기본 관리자 또는 논리적 시스템 관리자는 다음 명령을 실행하여 특정 논리적 시스템의 출력을 확인할 수 있습니다.
user@PE1> show route logical-system LS1 table red red.inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.11.1.0/24 *[Direct/0] 00:04:51 > via fe-0/1/1.0 10.11.1.2/32 *[Local/0] 00:05:45 Local via fe-0/1/1.0 10.11.1.100/32 *[OSPF/10] 00:04:02, metric 1 > to 10.11.1.1 via fe-0/1/1.0 10.11.4.0/24 *[BGP/170] 00:03:05, localpref 100, from 10.10.10.12 AS path: I > to 10.11.2.2 via fe-0/0/1.1, label-switched-path to_10.10.10.12 10.11.4.100/32 *[BGP/170] 00:03:05, MED 1, localpref 100, from 10.10.10.12 AS path: I > to 10.11.2.2 via fe-0/0/1.1, label-switched-path to_10.10.10.12 224.0.0.5/32 *[OSPF/10] 00:07:02, metric 1 MultiRecv
파란색 VPN
기본 관리자 또는 논리적 시스템 관리자는 다음 명령을 실행하여 특정 논리적 시스템의 출력을 확인할 수 있습니다.
user@PE1> show route logical-system LS1 table blue blue.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.21.1.0/24 *[Direct/0] 00:05:29 > via fe-0/1/2.0 10.21.1.2/32 *[Local/0] 00:06:23 Local via fe-0/1/2.0 10.21.1.100/32 *[BGP/170] 00:05:26, localpref 100 AS path: 200 I > to 10.21.1.1 via fe-0/1/2.0 10.21.4.0/24 *[BGP/170] 00:03:43, localpref 100, from 10.10.10.12 AS path: I > to 10.11.2.2 via fe-0/0/1.1, label-switched-path to_10.10.10.12 10.21.4.100/32 *[BGP/170] 00:03:43, localpref 100, from 10.10.10.12 AS path: 300 I > to 10.11.2.2 via fe-0/0/1.1, label-switched-path to_10.10.10.12 user@PE1> show route logical-system LS1 table inet.0 inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.10.10.10/32 *[Direct/0] 00:08:05 > via lo0.1 10.10.10.11/32 *[IS-IS/15] 00:05:07, metric 10 > to 10.11.2.2 via fe-0/0/1.1 10.10.10.12/32 *[IS-IS/15] 00:04:58, metric 20 > to 10.11.2.2 via fe-0/0/1.1 10.11.2.0/24 *[Direct/0] 00:05:38 > via fe-0/0/1.1 10.11.2.1/32 *[Local/0] 00:06:51 Local via fe-0/0/1.1 10.11.3.0/24 *[IS-IS/15] 00:05:07, metric 20 > to 10.11.2.2 via fe-0/0/1.1 user@PE1> ping logical-system LS1 routing-instance red 10.11.4.100 PING 10.11.4.100 (10.11.4.100): 56 data bytes 64 bytes from 10.11.4.100: icmp_seq=0 ttl=251 time=1.055 ms ^C --- 10.11.4.100 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.055/1.055/1.055/0.000 ms
라우터 PE1 상태: 논리적 시스템 LS2
목적
VPLS 작업을 확인합니다.
작업
user@PE1> show vpls connections logical-system LS2 Layer-2 VPN Connections: Legend for connection status (St) OR -- out of range WE -- intf encaps != instance encaps EI -- encapsulation invalid Dn -- down EM -- encapsulation mismatch VC-Dn -- Virtual circuit down CM -- control-word mismatch -> -- only outbound conn is up CN -- circuit not provisioned <- -- only inbound conn is up OL -- no outgoing label Up -- operational NC -- intf encaps not CCC/TCC XX -- unknown NP -- intf h/w not present Legend for interface status Up -- operational Dn -- down Instance: new Local site: newPE (1) connection-site Type St Time last up # Up trans 2 rmt Up Jul 16 14:05:25 2003 1 Local interface: vt-1/2/0.49152, Status: Up, Encapsulation: VPLS Remote PE: 10.20.20.22, Negotiated control-word: No Incoming label: 800001, Outgoing label: 800000
라우터 P0 상태: 메인 라우터
목적
연결을 확인합니다.
작업
user@P0> show interfaces terse lo0 Interface Admin Link Proto Local Remote lo0 up up lo0.0 up up inet 10.255.41.175 --> 0/0 127.0.0.1 --> 0/0 iso 47.0005.80ff.f800.0000.0108.0003.0102.5501.4175.00 inet6 fe80::2a0:a5ff:fe12:2b09 feee::10:255:14:175 lo0.1 up up inet 10.10.10.11 --> 0/0 iso 47.1111.1111.1111.1112.00 lo0.2 up up inet 10.20.20.21 --> 0/0 iso 47.2222.2222.2222.2223.00 lo0.16383 up up inet user@P0> show ospf neighbor Address Interface State ID Pri Dead 10.31.2.1 fe-1/1/3.3 Full 10.255.41.173 128 34 10.31.3.2 so-1/2/0.3 Full 10.255.41.179 128 37
라우터 P0 상태: 메인 라우터
목적
라우팅 프로토콜 작동을 확인합니다.
작업
user@P0> show interfaces terse lo0 Interface Admin Link Proto Local Remote lo0 up up lo0.0 up up inet 10.255.41.175 --> 0/0 127.0.0.1 --> 0/0 iso 47.0005.80ff.f800.0000.0108.0003.0102.5501.4175.00 inet6 fe80::2a0:a5ff:fe12:2b09 feee::10:255:14:175 lo0.1 up up inet 10.10.10.11 --> 0/0 iso 47.1111.1111.1111.1112.00 lo0.2 up up inet 10.20.20.21 --> 0/0 iso 47.2222.2222.2222.2223.00 lo0.16383 up up inet user@P0> show ospf neighbor Address Interface State ID Pri Dead 10.31.2.1 fe-1/1/3.3 Full 10.255.41.173 128 34 10.31.3.2 so-1/2/0.3 Full 10.255.41.179 128 37
라우터 P0 상태: 논리적 시스템 LS1
목적
라우팅 프로토콜 작동을 확인합니다.
작업
user@P0> show isis adjacency logical-system LS1 Interface System L State Hold (secs) SNPA fe-1/1/3.1 PE1 2 Up 21 0:90:69:9:4:1 fe-1/1/3.1 PE1 1 Up 24 0:90:69:9:4:1 so-1/2/0.1 PE2 3 Up 25 user@P0> show bgp summary logical-system LS1 BGP is not running user@P0> show route protocol isis logical-system LS1 inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.10.10.10/32 *[IS-IS/15] 00:09:15, metric 10 > to 10.11.2.1 via fe-1/1/3.1 10.10.10.12/32 *[IS-IS/15] 00:09:39, metric 10 > to 10.11.3.2 via so-1/2/0.1 iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) mpls.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
라우터 P0 상태: 논리적 시스템 LS2
목적
라우팅 프로토콜 작동을 확인합니다.
작업
user@P0> show bgp summary logical-system LS2 BGP is not running user@P0> show isis adjacency logical-system LS2 Interface System L State Hold (secs) SNPA fe-1/1/3.0 PE1 2 Up 24 0:90:69:9:4:1 fe-1/1/3.0 PE1 1 Up 23 0:90:69:9:4:1 so-1/2/0.0 PE2 3 Up 24 user@P0> show route protocol isis logical-system LS2 inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.20.20.20/32 *[IS-IS/15] 00:09:44, metric 10 > to 10.1.2.1 via fe-1/1/3.0 10.20.20.22/32 *[IS-IS/15] 00:09:45, metric 10 > to 10.1.3.2 via so-1/2/0.0 iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) mpls.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
라우터 PE2 상태: 메인 라우터
목적
라우팅 프로토콜 작동을 확인합니다.
작업
user@PE2> show ospf neighbor Address Interface State ID Pri Dead 10.31.4.2 fe-0/2/3.0 Full 10.255.41.180 128 38 10.31.3.1 so-1/2/0.3 Full 10.255.41.175 128 36
user@PE2> show interfaces terse lo0 Interface Admin Link Proto Local Remote lo0 up up lo0.0 up up inet 10.255.41.179 --> 0/0 127.0.0.1 --> 0/0 iso 47.0005.80ff.f800.0000.0108.0003.0102.5501.4179.00 inet6 fe80::2a0:a5ff:fe12:29ff feee::10:255:14:179 lo0.1 up up inet 10.10.10.12 --> 0/0 iso 47.1111.1111.1111.1113.00 lo0.2 up up inet 10.20.20.22 --> 0/0 iso 47.2222.2222.2222.2224.00 lo0.16383 up up inet user@PE2> show bgp summary Groups: 1 Peers: 2 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending inet.0 1 1 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/DwnState|#Active/Received/Damped... 10.255.41.175 500 24 27 0 0 11:46 0/0/0 0/0/0 10.255.41.173 500 25 25 0 0 11:11 1/1/0 0/0/0
user@PE2> show route protocol ospf inet.0: 20 destinations, 22 routes (19 active, 0 holddown, 1 hidden) + = Active Route, - = Last Active, * = Both 10.255.41.175/32 *[OSPF/10] 00:00:20, metric 1 > via so-1/2/0.3 10.255.41.180/32 [OSPF/10] 00:00:20, metric 1 > to 10.31.4.2 via fe-0/2/3.0 10.255.41.173/32 *[OSPF/10] 00:00:20, metric 2 > via so-1/2/0.3 10.31.2.0/24 *[OSPF/10] 00:00:20, metric 2 > via so-1/2/0.3 10.31.3.0/24 [OSPF/10] 00:00:20, metric 1 > via so-1/2/0.3 224.0.0.5/32 *[OSPF/10] 00:13:46, metric 1 MultiRecv iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) user@PE2> show route protocol bgp inet.0: 20 destinations, 22 routes (19 active, 0 holddown, 1 hidden) + = Active Route, - = Last Active, * = Both 10.255.41.177/32 *[BGP/170] 00:11:23, localpref 100, from 10.255.41.173 AS path: I > via so-1/2/0.3 iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
라우터 PE2 상태: 논리적 시스템 LS1
목적
라우팅 프로토콜 작동을 확인합니다.
작업
user@PE2> show bgp summary logical-system LS1 Groups: 2 Peers: 2 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending inet.0 0 0 0 0 0 0 inet.2 0 0 0 0 0 0 bgp.l3vpn.0 4 4 0 0 0 0 bgp.l3vpn.2 0 0 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Damped... 10.10.10.10 100 29 31 0 0 11:25 Establ bgp.l3vpn.0: 4/4/0 bgp.l3vpn.2: 0/0/0 blue.inet.0: 2/2/0 red.inet.0: 2/2/0 10.21.4.2 300 27 28 0 0 11:40 Establ blue.inet.0: 1/1/0
빨간색 VPN
user@PE2> show route logical-system LS1 table red red.inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.11.1.0/24 *[BGP/170] 00:12:02, localpref 100, from 10.10.10.10 AS path: I > via so-1/2/0.1, label-switched-path to_10.10.10.10 10.11.1.100/32 *[BGP/170] 00:12:02, MED 1, localpref 100, from 10.10.10.10 AS path: I > via so-1/2/0.1, label-switched-path to_10.10.10.10 10.11.4.0/24 *[Direct/0] 00:13:22 > via fe-0/2/1.0 10.11.4.1/32 *[Local/0] 00:13:29 Local via fe-0/2/1.0 10.11.4.100/32 *[OSPF/10] 00:12:35, metric 1 > to 10.11.4.2 via fe-0/2/1.0 224.0.0.5/32 *[OSPF/10] 00:15:02, metric 1 MultiRecv
파란색 VPN
user@PE2> show route logical-system LS1 table blue blue.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.21.1.0/24 *[BGP/170] 00:13:12, localpref 100, from 10.10.10.10 AS path: I > via so-1/2/0.1, label-switched-path to_10.10.10.10 10.21.1.100/32 *[BGP/170] 00:13:12, localpref 100, from 10.10.10.10 AS path: 200 I > via so-1/2/0.1, label-switched-path to_10.10.10.10 10.21.4.0/24 *[Direct/0] 00:14:32 > via fe-0/2/2.0 10.21.4.1/32 *[Local/0] 00:14:39 Local via fe-0/2/2.0 10.21.4.100/32 *[BGP/170] 00:13:27, localpref 100 AS path: 300 I > to 10.21.4.2 via fe-0/2/2.0 user@PE2> show mpls lsp logical-system LS1 Ingress LSP: 1 sessions To From State Rt ActivePath P LSPname 10.10.10.10 10.10.10.12 Up 0 * to_10.10.10.10 Total 1 displayed, Up 1, Down 0 Egress LSP: 1 sessions To From State Rt Style Labelin Labelout LSPname 10.10.10.12 10.10.10.10 Up 0 1 FF 3 - to_10.10.10.12 Total 1 displayed, Up 1, Down 0 Transit LSP: 0 sessions Total 0 displayed, Up 0, Down 0 user@PE2> show rsvp session logical-system LS1 Ingress RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 10.10.10.10 10.10.10.12 Up 0 1 FF - 100000 to_10.10.10.10 Total 1 displayed, Up 1, Down 0 Egress RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 10.10.10.12 10.10.10.10 Up 0 1 FF 3 - to_10.10.10.12 Total 1 displayed, Up 1, Down 0 Transit RSVP: 0 sessions Total 0 displayed, Up 0, Down 0
라우터 PE2 상태: 논리적 시스템 LS2
목적
라우팅 프로토콜 작동을 확인합니다.
작업
user@PE2> show vpls connections logical-system LS2 Layer-2 VPN Connections: Legend for connection status (St) OR -- out of range WE -- intf encaps != instance encaps EI -- encapsulation invalid Dn -- down EM -- encapsulation mismatch VC-Dn -- Virtual circuit down CM -- control-word mismatch -> -- only outbound conn is up CN -- circuit not provisioned <- -- only inbound conn is up OL -- no outgoing label Up -- operational NC -- intf encaps not CCC/TCC XX -- unknown NP -- intf h/w not present Legend for interface status Up -- operational Dn -- down Instance: new Local site: newPE (2) connection-site Type St Time last up # Up trans 1 rmt Up Jul 16 14:05:25 2003 1 Local interface: vt-1/1/0.40960, Status: Up, Encapsulation: VPLS Remote PE: 10.20.20.20, Negotiated control-word: No Incoming label: 800000, Outgoing label: 800001
user@PE2> show bgp summary logical-system LS2 Groups: 1 Peers: 1 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.l2vpn.0 1 1 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/DwnState|#Active/Received/Damped... 10.20.20.20 400 29 31 0 0 13:29 Establ bgp.l2vpn.0: 1/1/0 new.l2vpn.0: 1/1/0
user@PE2> show mpls lsp logical-system LS2 Ingress LSP: 1 sessions To From State Rt ActivePath P LSPname 10.20.20.20 10.20.20.22 Up 0 * to_10.20.20.20 Total 1 displayed, Up 1, Down 0 Egress LSP: 1 sessions To From State Rt Style Labelin Labelout LSPname 10.20.20.22 10.20.20.20 Up 0 1 FF 3 - to_10.20.20.22 Total 1 displayed, Up 1, Down 0 Transit LSP: 0 sessions Total 0 displayed, Up 0, Down 0 user@PE2> show rsvp session logical-system LS2 Ingress RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 10.20.20.20 10.20.20.22 Up 0 1 FF - 100016 to_10.20.20.20 Total 1 displayed, Up 1, Down 0 Egress RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 10.20.20.22 10.20.20.20 Up 0 1 FF 3 - to_10.20.20.22 Total 1 displayed, Up 1, Down 0 Transit RSVP: 0 sessions Total 0 displayed, Up 0, Down 0
라우터 CE5 상태
목적
연결을 확인합니다.
작업
user@CE5> show route table inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.11.1.0/24 *[OSPF/150] 00:19:47, metric 0, tag 3489661028 > to 10.11.4.1 via fe-0/3/1.0 10.11.1.100/32 *[OSPF/10] 00:19:47, metric 2 > to 10.11.4.1 via fe-0/3/1.0 10.11.4.0/24 *[Direct/0] 00:21:12 > via fe-0/3/1.0 10.11.4.2/32 *[Local/0] 00:21:24 Local via fe-0/3/1.0 10.11.4.100/32 *[Direct/0] 00:22:37 > via lo0.0 224.0.0.5/32 *[OSPF/10] 00:22:44, metric 1 MultiRecv
라우터 CE6 상태
목적
연결을 확인합니다.
작업
user@CE6> show route table inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.21.1.0/24 *[BGP/170] 00:19:53, localpref 100 AS path: 100 I > to 10.21.4.1 via fe-0/3/2.0 10.21.1.100/32 *[BGP/170] 00:19:53, localpref 100 AS path: 100 200 I > to 10.21.4.1 via fe-0/3/2.0 10.21.4.0/24 *[Direct/0] 00:21:16 > via fe-0/3/2.0 10.21.4.2/32 *[Local/0] 00:21:28 Local via fe-0/3/2.0 10.21.4.100/32 *[Direct/0] 00:22:41 > via lo0.0
라우터 CE7 상태
목적
연결을 확인합니다.
작업
user@CE7> show route table inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.1.1.0/24 *[Direct/0] 00:21:03 > via fe-0/3/0.0 10.1.1.2/32 *[Local/0] 00:21:15 Local via fe-0/3/0.0
논리적 시스템 관리자 검증 출력
목적
논리적 시스템 관리자는 할당된 논리적 시스템의 구성 정보에만 액세스할 수 있기 때문에 확인 출력은 이러한 논리적 시스템에도 제한됩니다. 다음 출력은 이 예의 구성에서 논리적 시스템 관리자 LS1 관리자 가 무엇을 볼 수 있는지 보여줍니다.
각 CE 라우터 쌍에 엔드 투 엔드 연결이 있는지 확인하려면 라우터 CE1, CE2 및 CE3에 대한 명령을 실행 ping
합니다.
작업
CE1에서 CE5(빨간색 VPN)를 핑합니다.
CE2에서 CE6(Blue VPN)을 핑합니다.
CE3에서 CE7(VPLS)을 핑합니다.
user@CE1> ping 10.11.4.100 PING 10.11.4.100 (10.11.4.100): 56 data bytes 64 bytes from 10.11.4.100: icmp_seq=0 ttl=252 time=1.216 ms 64 bytes from 10.11.4.100: icmp_seq=1 ttl=252 time=1.052 ms ^C --- 10.11.4.100 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.052/1.134/1.216/0.082 ms
user@CE2> ping 10.21.4.100 PING 10.21.4.100 (10.21.4.100): 56 data bytes 64 bytes from 10.21.4.100: icmp_seq=0 ttl=252 time=1.205 ms 64 bytes from 10.21.4.100: icmp_seq=1 ttl=252 time=1.021 ms ^C --- 10.21.4.100 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.021/1.113/1.205/0.092 ms
user@CE3> ping 10.1.1.2 PING 10.1.1.2 (10.1.1.2): 56 data bytes 64 bytes from 10.1.1.2: icmp_seq=0 ttl=255 time=1.186 ms 64 bytes from 10.1.1.2: icmp_seq=1 ttl=255 time=1.091 ms 64 bytes from 10.1.1.2: icmp_seq=2 ttl=255 time=1.081 ms ^C --- 10.1.1.2 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.081/1.119/1.186/0.047 ms