Routing
Routing

What is difference between prefix-list-filter and prefix-list?

05.14.17   |  
‎05-14-2017 06:58 PM

Hi Please see the below. What is difference between prefix-list-filter and prefix-list ? Thank you

 

set policy-options policy-statement IMPORT_P term 10 from prefix-list-filter RFC orlonger
set policy-options policy-statement IMPORT_P term 10 then reject

 

set policy-options policy-statement IMPORT_P term 10 from prefix-list RFC orlonger
set policy-options policy-statement IMPORT_P term 10 then reject

 

 

When I type in router "C1# set policy-options policy-statement IMPORT_P term 10 from ?"

I got the below:

> prefix-list List of prefix-lists of routes to match
> prefix-list-filter List of prefix-list-filters to match

 

Anyone can explain it? Thank you

3 REPLIES
Routing

Re: What is difference between prefix-list-filter and prefix-list?

05.14.17   |  
‎05-14-2017 07:45 PM

Please refer the below link; if you face any challenge understanding the concept please let us know!

 

https://www.juniper.net/documentation/en_US/junos/topics/example/policy-prefix-list.html

 

_
Regards
Malik
4xJNCIE, 3xJNCSP, 3xJNCDS, CCIE, CISSP, JNCIS-ENT-Cloud, PCNSE7
[If it helped to solve your problem Please mark it "Accept as solution"; Kudos are always Appreciated]
Highlighted
Routing
Solution
Accepted by topic author eesunj
‎05-15-2017 10:06 AM

Re: What is difference between prefix-list-filter and prefix-list?

05.15.17   |  
‎05-15-2017 03:10 AM

Hi,

 

In short using prefix-list is an exact match of prefixes in the prefix-list while prefix-list-filter allows further filtering such as 'orlonger'.

set policy-options policy-statement IMPORT_P term 10 from prefix-list-filter RFC orlonger

set policy-options policy-statement IMPORT_P term 10 from prefix-list RFC orlonger   --> Results in syntax error

 

Cheers,

Ashvin

Routing

Re: What is difference between prefix-list-filter and prefix-list?

05.15.17   |  
‎05-15-2017 10:07 AM

Thank you Ashvin