regular expression _154$ and ^154$ ?

zillahzillah Member Posts: 42 ■■□□□□□□□□
Requirement :
Part of the acquisition agreement between AS 300 and AS 200 includes stipulations on what traffic AS 300 will provide transit for.

This agreement states that AS 300 will not provide transit for traffic coming from AS 60 and its customers, that is destined for AS 154. Configure AS 300 to reflect this policy


Configuration:
router bgp 300
neighbor 204.12.1.154 route-map STOP_TRANSIT_TO_AS_154 out
!
ip as-path access-list 5 permit _154$
!
route-map STOP_TRANSIT_TO_AS_154 deny 20
match as-path 5
!
route-map STOP_TRANSIT_TO_AS_154 permit 30

In the configuration above ,can we configure regular expression _154$ as ^154$ ?

Comments

  • Ten9t6Ten9t6 Member Posts: 691
    you have to watch what you want to allow:

    _154$ ... matches routes originating from AS 154 and ones that are prepended with 154

    ^154$ ...matches all routes that start and end with AS 154....no prepending.



    on a side note, which test are you studying for? Yesterday, you had switching questions....now Regular Expressions for AS Path filtering...(BGP).... I am just curious. Talk to you later...

    Kenny
    Kenny

    A+, Network+, Linux+, Security+, MCSE+I, MCSE:Security, MCDBA, CCNP, CCDP, CCSP, CCVP, CCIE Written (R/S, Voice),INFOSEC, JNCIA (M and FWV), JNCIS (M and FWV), ENA, C|EH, ACA, ACS, ACE, CTP, CISSP, SSCP, MCIWD, CIWSA
  • EdTheLadEdTheLad Member Posts: 2,111 ■■■■□□□□□□
    Ten9t6 wrote:
    on a side note, which test are you studying for? Yesterday, you had switching questions....now Regular Expressions for AS Path filtering...(BGP).... I am just curious. Talk to you later...
    Kenny

    I'm wondering exactly the same thing as your questions are so random icon_smile.gif
    Networking, sometimes i love it, mostly i hate it.Its all about the $$$$
Sign In or Register to comment.