读书人

CCNA路由过滤命令解析(四)

发布时间: 2012-12-12 20:48:40 作者: maylh

  (四) ip as-path access-list

  功能:

  根据 BGP 的 AS-PATH 属性过滤 BGP 的分发路由条目。

  Case Study: Syntax

  ip as-path access-list acl-number permit | deny regexp

  no ip as-path access-list acl-number

  注:acl-number 有效值为0 ~ 500。

  Case Study: Configuration Guide

  <1> 过滤所有的私有 AS 的 Routes 更新

  ip as-path access-list 1 deny (_64[6-9][0-9][0-9]_|_65[0-9][0-9][0-9]_) ip as-path access-list 1 permit .*

  <2> 应用实例

  router bgp 3

  no synchronization

  neighbor 172.16.1.2 remote-as 3

  neighbor 172.16.20.1 remote-as 1

  neighbro 172.16.20.1 filter-list 1 out

  no auto-summary

  !

  ip as-path access-lsit 1 permit ^$

读书人网 >思科认证

热点推荐