Configuring policy-based routing
Defining Rules
Defining Rules
Each PBR list can have up to 1,500 rules. The first rule that matches the packet specifies the routing for
the packet. If no rule matches the packet, the packet is routed according to DBR.
This section provides information on how to configure rules in a PBR list and contains the following
topics:
•
Overview of rule criteria
•
Creating and editing rules
•
Rule criteria
Overview of rule criteria
You can configure policy rules to match packets based on one or more of the following criteria:
•
Source IP address, or a range of addresses
•
Destination IP address or a range of addresses
•
IP protocol, such as TCP, UDP, ICMP, IGMP
•
Source TCP or UDP port or a range of ports
•
Destination TCP or UDP port or a range of ports
•
ICMP type and code
•
DSCP field
Use IP wildcards to specify a range of source or destination IP addresses. The zero bits in the wildcard
correspond to bits in the IP address that remain fixed. The one bits in the wildcard correspond to bits in
the IP address that can vary. Note that this is the opposite of how bits are used in a subnet mask.
Creating and editing rules
To create or edit a policy-based routing rule, you must enter the context of the rule. If the rule already
exists, you can edit the rule from the rule context. If the rule does not exist, entering the rule context
creates the rule.
To enter a rule context:
1
Enter the context of the PBR list in which you want to create or edit a rule.
2
Type the command
example, to create rule 1, type
To view the existing rules in a PBR list, enter the list's context and type
Rule criteria
The rule criteria for PBR rules are largely the same as the rule criteria for other policy list rules. Refer to
Rule criteria
on page 166.
180
— an overview of the criteria that can be used in configuring PBR rules
— instructions on how to create and edit a PBR rule
— instructions on how to configure a PBR rule's criteria
, followed by the number of the rule you want to create or edit. For
ip-rule
.
ip-rule 1
Administration of the Avaya G350 Media Gateway
ip show-rule
.
June 2004