Configuring policy-based routing
Application example
ip-rule 10
next-hop list 1
source-ip 6.0.0.0. 0.255.255.255
dscp 41
exit
ip-rule 20
next-hop list 1
source-ip 6.0.0.0. 0.255.255.255
dscp 43
exit
ip-rule 30
next-hop list 1
source-ip 6.0.0.0. 0.255.255.255
dscp 44
exit
ip-rule 40
next-hop list 1
source-ip 6.0.0.0. 0.255.255.255
dscp 46
exit
exit
The following commands create PBR list 802, named Data_To_H.Q.
ip pbr-list 802
name "Data_To_H.Q."
The following commands create, in PBR list 802, policy-based routing rules 1 and 10. These rules match
packets with any of the following:
•
TCP protocol
•
Source IP address between 5.0.0.0. and 5.255.255.255
•
Destination IP address 149.49.43.188 or 149.49.43.189
•
Destination TCP port 20, 21, or HTTP
These rules route packets matching one of the rules to next hop list 2.
ip-rule 1
next-hop list 2
ip-protocol tcp
source-ip 5.0.0.0. 0.255.255.255
destination-ip host 149.49.43.189
tcp destination-port range 20 21
exit
ip-rule 10
next-hop list 2
ip-protocol tcp
source-ip 5.0.0.0. 0.255.255.255
destination-ip host 149.49.43.188
tcp destination-port eq Http
exit
exit
184
Administration of the Avaya G350 Media Gateway
June 2004