cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
789
Views
0
Helpful
3
Replies

How to block a incomplete origin code route in BGP

mohindersingh
Level 1
Level 1

Hi Fellow Networkers,

I was trying to block a BGP route with incomplete origin code(?) but got no luck.

i tried route-map but there is no match statement for origin code, i also tried regular expression but still it didn,t work...

Routers are connected in below mentioned fashin.

R1 <---> R2 <---> R3

BGP route is coming from R1 and i am stopping it on R3.

any help really appreciated.

3 Replies 3

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Mohinder,

? is a special character in reg exp.

try to use \? to say you want match exactly char '?'

Hope to help

Giuseppe

Hi Guisiar,

Thanks for the reply.

but how to stop the incomplete route..normally regular expression we use with as-path acccess list. but we have to stop a route with incomplete origin code so we can,t use regular expression.

do you know any method to block origin code with regular expression.

Mahi

Hello Mahi,

what you write inside an as path list is actually a regular expression

define an as path list that matches ? at the end of as path

\?$

use the as-path access-list inside a route-map

route-map stop-incomplete deny 10

match as-path X

match ip address

route-map stop-incomplete permit 20

empty block to permit all other routes

apply the route-map inbound on R3 on the BGP session with R2 and you should get the result.

Hope to help

Giuseppe

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card