Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /homepages/36/d681171600/htdocs/stalinbabu/wp-includes/plugin.php on line 601
Using prefix-list example scenarios – StalinBabu.com – My Personal Blog
Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /homepages/36/d681171600/htdocs/stalinbabu/wp-includes/plugin.php on line 601
Technology

Using prefix-list example scenarios

Prefix lists are used to filter routes based on prefix and subnet masks. The following are some prefix-list examples. Prefix list can be applied directly on a neighbor statement for BGP or using a route-map

! Match only 192.168.1.0/24 – more specific. Only the below prefix with /24 is permitted
ip prefix-list LIST1 192.168.1.0/24

!Matches prefix 192.168.1.0 and a mask bteen 24-30 (24,25,26,27,28,29,30)
ip prefix-list LIST2 192.168.1.0/24 ge 24 le 30

!Matches only default route
ip prefix-list DEFAULT permit 0.0.0.0/0

! Matches any prefixes with masks between 0 and 32
ip prefix-list ANY permit 0.0.0.0/0 le 32

The following is an example of use with BGP

ip prefix-list LIST1 permit 192.168.1.0/24
ip prefix-list LIST2 permit 10.0.0.0/8 ge 8 le 16

router bgp 100
neighbor 150.1.1.1 prefix-list LIST1 in
neighbor 150.1.1.1 prefix-list LIST2 out