Setup guide

General Information
Summary
Prefix lists are used to filter routes received from or sent to other routers.
Specifications
Packages required: routing
License required: level1
routing prefix-list
Hardware usage: Not significant
Related Documents
Package Management
IP Addresses and ARP
Routes, Equal Cost Multipath Routing, Policy Routing
RIP
BGP
Description
Filtering by prefix list involves matching the prefixes of routes with those listed in the prefix list.
When there is a match, the route is used. The prefix lists are used when specifying the BGP peers
under /routing bgp peer or RIP interfaces under /routing rip interface.
To match a prefix-list entry, a route should have its prefix (i.e. destination address) matching prefix
property of the entry, and it should have the length of its prefix (i.e. mask of destination address)
matching prefix-length property of the entry.
Setup
routing prefix-list
Property Description
name (name; default: "") - a name for the prefix list
default-action (accept | reject; default: accept) - default action for all members of the list
Notes
An empty prefix list matches all prefixes
Example
To add a cybernet list that rejects the routes by default:
[admin@Wandy] routing prefix-list> add name=cybernet default-action=reject
[admin@Wandy] routing prefix-list> print
# NAME DEFAULT-ACTION
0 cybernet reject
[admin@Wandy] routing prefix-list>