Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

New Member

access-list query

hello,

i have matched some bgp routes with prefix-list and set local higher local pref for some destination prefixes but same i am getting output when i am matching same routes with standard access-list then why should i use confusing or complex prefix-list? what the exact use of it? and when?

thanks and regards,

sourabh

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: access-list query

Lets take an example :

You need to permit 150.5.x.x network an only which has a default class B subnet mask and allow on the routes which have grtaer than 28 bit mask.

ip prefix-list abc permit 150.50.0.0/16 ge 28

With prefix-list above only the masks which are greater than 28 will be selected.

You wont be able to match it with an ACL.

4 REPLIES
Cisco Employee

Re: access-list query

Prefix-list with BGP is used for more granular filtering of the routes.

With ACL's you can only match the networks, while with prefix-list you can match on both network + mask.

HTH,

-amit singh

New Member

Re: access-list query

hello Mr.Amit,

But for mask we can use wildcard mask with standard or extended access-list to match the mask of network, am i right? pls suggest.

Thanks and regards

sourabh

Cisco Employee

Re: access-list query

Lets take an example :

You need to permit 150.5.x.x network an only which has a default class B subnet mask and allow on the routes which have grtaer than 28 bit mask.

ip prefix-list abc permit 150.50.0.0/16 ge 28

With prefix-list above only the masks which are greater than 28 will be selected.

You wont be able to match it with an ACL.

New Member

Re: access-list query

thanks a lot for providing very simple example for me..

154
Views
0
Helpful
4
Replies
CreatePlease to create content