[c-nsp] BGP inbound route maps

hjan hjan at libero.it
Thu Sep 28 12:02:24 EDT 2006


Sorry i've made a mistake in writing, try 

ip as-path access-list 77 permit ^(ABCD)+[0-9]+_[0-9]+_.*
instead of 
ip as-path access-list 77 permit ^(ABCD_)+[0-9]+_[0-9]+_.*

and however you can use the sh bgp regexp your_regexp to see the match in real time.

Regards,
Gianluca
  ----- Original Message ----- 
  From: Kanagaraj Krishna 
  To: hjan 
  Cc: cisco-nsp at puck.nether.net 
  Sent: Thursday, September 28, 2006 10:34 AM
  Subject: Re: [c-nsp] BGP inbound route maps


  Hi,
      What does the added expressions mean? 

  +_[0-9]+_.*    

  Are there any proper tutorial or manual for this expressions? Most of the stuff that I found have only basic examples. Thanks.

  Regards,
  Kana
    ----- Original Message ----- 
    From: hjan 
    To: Kanagaraj Krishna 
    Sent: Saturday, September 16, 2006 5:09 PM
    Subject: Re: [c-nsp] BGP inbound route maps


    From: "Kanagaraj Krishna" <kanagaraj at aims.com.my>
    > Hi,
    >   We are trying to set local preference 90 for specific inbound routes 
    > only.
    > The specific routes are:
    >...............
    > neighbor xxx.xxx.xxx.xxx remote-as ABCD
    > neighbor xxx.xxx.xxx.xxx route-map test-inbound in
    > neighbor xxx.xxx.xxx.xxx route-map test-outbound out
    >
    > ip as-path access-list 77 permit ^ABCD$
    > ip as-path access-list 77 permit ^(ABCD_)+[0-9]+$
    > ip as-path access-list 77 permit ^(ABCD_)+[0-9]+[0-9]+$
    >

    Try
    ip as-path access-list 77 permit ^(ABCD_)+[0-9]+_[0-9]+_.*
    as your third statement.

    Regards,
    Gianluca


More information about the cisco-nsp mailing list