Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Support
Technical Documentation
Content Explorer New
 
Enterprise MIBs
 
EOL Documentation
 
Feature Explorer Login required New
 
File Format Help
 
Glossary
 
Portable Libraries
 
 
Home > Support > Technical Documentation > JunosE Software > ip as-path access-list
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...

ip as-path access-list

Syntax

ip as-path access-list accessListName { permit | deny } pathExpression

no ip as-path access-list accessListName [ { permit | deny } pathExpression ]

Release Information

Command introduced before JunosE Release 7.1.0.

Description

Defines a BGP-related access list. You can specify an access list filter on both inbound and outbound BGP routes. Each filter is an access list based on regular expressions. If the regular expression matches the representation of the AS path of the route as an ASCII string, then the permit or deny condition applies. The AS path does not contain the local AS number. The no version removes a single access list entry if permit or deny and a pathExpression are specified. Otherwise, the entire access list is removed.

Options

  • accessListName—Name of the access list; a string of up to 32 characters
  • permit—Permits access for matching conditions
  • deny—Denies access to matching conditions
  • pathExpression—Regular expression describing the AS paths to be matched

    Use a sequence of one or more elements, each of which is either an AS number or one of the following punctuation characters:

    • ^ start of the path
    • $ end of the path
    • { start of an AS_SET
    • } end of an AS_SET
    • ( start of an AS_CONFED_SET or AS_CONFED_SEQ
    • ) end of an AS_CONFED_SET or AS_CONFED_SEQ

    Use the following regular expression metacharacters to match individual elements:

    • . matches any single element
    • * matches zero or more occurrences of any element
    • + matches one or more occurrences of any element
    • [ ] matches any elements enclosed between brackets ([ ])
    • - hyphen; used within brackets to specify a range of AS numbers
    • ^ matches any AS number except the ones specified when used as a first item within brackets
    • _ underscore; used in implementations on routers from other vendors on either side of a path to specify a literal and disallow substring matching. Allowed but not required in our CLI.

Mode

Global Configuration

Published: 2012-06-28

 
  • About Juniper
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Green Networking
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Developers
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out