Method of configuring interface policy routing of an AR router

The roadmap of configuring interface policy routing of an AR router is as follows:
1. Configure a traffic classifier.
2. Configure a traffic behavior (redirection to a next hop or an outbound interface).
3. Configure a traffic policy.
4. Apply the traffic policy to the interface in the inbound direction.
Supposed that the intranet is composed of two network segments 1.0 and 2.0, and traffic transmitted over 1.0 is redirected to China Telecom and traffic transmitted over 2.0 is redirected to China Unicom, then the configuration is as follows:
#
acl number 3001
rule 5 permit ip source 10.1.1.0 0.0.0.255
acl number 3002
rule 5 permit ip source 10.1.2.0 0.0.0.255
#
traffic classifier redirect-dx operator or
if-match acl 3001
traffic classifier redirect-lt operator or
if-match acl 3002
#
traffic behavior redirect-dx
redirect ip-nexthop 1.1.1.1
traffic behavior redirect-lt
redirect ip-nexthop 2.2.2.2
#
traffic policy celvluyou
classifier redirect-dx behavior redirect-dx
classifier redirect-lt behavior redirect-lt
#
interface GigabitEthernet0/0/1
traffic-policy celvluyou inbound
#
For details about specific configuration cases, see the URL:
Example for Configuring Interface PBR.

Scroll to top