show route aspath-regex
Syntax
show route aspath-regex regular-expression <logical-system (all | logical-system-name)>
Syntax (EX Series Switches)
show route aspath-regex regular-expression
Description
지정된 AS(Autonomous System) 경로 정규 표현식과 일치하는 라우팅 테이블에 엔트리를 표시합니다.
Options
정규 표현식 | 전체 AS 경로에 일치하는 정규 표현식 |
논리적 시스템(|-system-name) | (선택 사항) 모든 논리적 시스템 또는 특정 논리적 시스템에서 이 작업을 수행합니다. |
Additional Information
정규 표현식을 다음으로 지정할 수 있습니다.
개별 AS 번호
AS 번호에 사용된 와일드카드 기간
괄호 안에 AS 경로 정규 표현식
또한, Junos Policy Framework Configuration Guide의AS 경로 정규 표현식 운영자 표에 설명된 운영자도 포함할 수 있습니다. 다음 목록에는 이들 운영자가 요약됩니다.
{m,n}
—AS 경로 용어의 최소 최소 및 최소 n 번만 재시도.{m}
—AS 경로 용어의 정확한 재시도.{m,}
— AS 경로 용어의 m 이상.*
—AS 경로 용어의 제로 이상.+
—AS 경로 용어에 대한 하나 이상의 재시도.?
—AS 경로 용어의 제로 또는 1회의 재시도.aspath_term
|
aspath_term
—2개의 AS 경로 조건 중 하나를 일치.두 개 이상의 AS 번호 또는 경로 용어를 지정하거나 운영자가 정규 표현식에 포함된 경우 전체 정규 표현식을 견적 마크로 동봉합니다. 예를 들어, AS 번호 234가 포함된 모든 경로를 일치시 다음 명령을 지정합니다.
show route aspath-regex ".* 234 .*"
Required Privilege Level
보기
Output Fields
출력 필드에 대한 정보는 show route 명령의 출력 필드 테이블을 참조하십시오.
Sample Output
- show route aspath-regex (Matching a Specific AS Number)
- show route aspath-regex (Matching Any Path with Two AS Numbers)
show route aspath-regex (Matching a Specific AS Number)
user@host> show route aspath-regex 65477 inet.0: 46411 destinations, 46411 routes (46409 active, 0 holddown, 2 hidden) + = Active Route, - = Last Active, * = Both 111.222.1.0/25 *[BGP/170] 00:08:48, localpref 100, from 111.222.2.24 AS Path: [65477] ({65548 65536}) IGP to 111.222.18.225 via fpa0.0(111.222.18.233) 111.222.1.128/25 *[IS-IS/15] 09:15:37, metric 37, tag 1 to 111.222.18.225 via fpa0.0(111.222.18.233) [BGP/170] 00:08:48, localpref 100, from 111.222.2.24 AS Path: [65477] ({65548 65536}) IGP to 111.222.18.225 via fpa0.0(111.222.18.233) ...
show route aspath-regex (Matching Any Path with Two AS Numbers)
user@host> show route aspath-regex ".* 234 3561 .*" inet.0: 46351 destinations, 46351 routes (46349 active, 0 holddown, 2 hidden) + = Active Route, - = Last Active, * = Both 9.20.0.0/17 *[BGP/170] 01:35:00, localpref 100, from 131.103.20.49 AS Path: [666] 234 3561 2685 2686 Incomplete to 192.156.169.1 via 192.156.169.14(so-0/0/0) 12.10.231.0/24 *[BGP/170] 01:35:00, localpref 100, from 131.103.20.49 AS Path: [666] 234 3561 5696 7369 IGP to 192.156.169.1 via 192.156.169.14(so-0/0/0) 24.64.32.0/19 *[BGP/170] 01:34:59, localpref 100, from 131.103.20.49 AS Path: [666] 234 3561 6327 IGP to 192.156.169.1 via 192.156.169.14(so-0/0/0) ...
Release Information
릴리스 7.Junos OS 전에 명령어가 도입되었습니다.