Routing Policy File Syntax

A routing policy file contains one or more policy rule entries. Each routing policy entry consists of:

Each policy entry in the file uses the following syntax:

entry <routingrulename>{
	if <match-type> {
		<match-conditions>;
	} then {
		<action>;
	}
}

The following is an example of a policy entry:

entry ip_entry {
	if match any {
		nlri  10.203.134.0/24;
		nlri  10.204.134.0/24;
	} then {
		next-hop   192.168.174.92;
		origin   egp;
	}
}

Policy entries are evaluated in order, from the beginning of the file to the end, as follows:

Often a policy has a rule entry at the end of the policy with no match conditions. This entry matches anything not otherwise processed, so that the user can specify an action to override the default deny action.

Policy match type, match conditions and action statements are discussed in the following sections: