User Manual
446
Users Manual of XGS-6350-24X4C
filter * in prefix max24
!
ip prefix-list max24 seq 5 permit 0.0.0.0/0 ge 8 le 24
!
In the following example, the router filters all the routes and only accepts the routes whose prefix length
ranges from 8 to 24:
router bgp 12
filter * in prefix-list max24
ip prefix-list max24 seq 5 permit 0.0.0.0/0 ge 8 le 24
The following example shows that route whose prefix length is no more than 24 is permitted in network 192/8:
ip prefix-list abc permit 192.0.0.0/8 le 24
The following example shows that route whose prefix length exceeds 25 is permitted in network 192/8:
ip prefix-list abc deny 192.0.0.0/8 ge 25
The following example shows that routes whose prefix length is larger than 8 and smaller than 24 are
permitted:
ip prefix-list abc permit 0.0.0.0/0 ge 8 le 24
The following example shows that routes whose prefix length exceeds 25 are denied:
ip prefix-list abc deny 0.0.0.0/0 ge 25
The following example shows that all routes from network 10/8 are denied. If the mask of A-class network
10.0.0.0/8 is less than or equal to 32 bits, all routes are denied:
ip prefix-list abc deny 10.0.0.0/8 le 32
The following example shows that all routes are denied because the mask length of network 204.70.1/24
exceeds 25:
ip prefix-list abc deny 204.70.1.0/24 ge 25
The following example shows that all routes are permitted:
ip prefix-list abc permit any
45.4.4.6 BGP route aggregation example
The following example shows how to create the aggregation route in BGP through route forwarding or the
conditional route aggregation function:
In the following example, the command redistribute static is used to forward the aggregation route 193. * . * .
* :
ip route 193.0.0.0 255.0.0.0 null 0
!
router bgp 100
redistribute static
If at least one route in the routing table belongs to the designated range, an aggregation route is created in










