What Policy-based routing (PBR) represent

11

Policy-based routing (PBR) is a mechanism that makes routing decisions based on user-defined policies.

Other related questions:
How to configure policy route on S switch?
For example: we will redirect the traffic will will enter GE2/0/1,the source ip is 192.168.100.0/24, the nexthop will be redirected to 10.1.20.1,the source ip is 192.168.101.0/24, the nexthop will be redirected to 10.1.30.1�?working flow�?1. Configure acl to match the traffic which need be redirected. [Switch] acl 3001 [Switch-acl-adv-3001] rule permit ip source 192.168.100.0 0.0.0.255 [Switch-acl-adv-3001] quit [Switch] acl 3002 [Switch-acl-adv-3002] rule permit ip source 192.168.101.0 0.0.0.255 [Switch-acl-adv-3002] quit 2. Configure traffic classification. [Switch] traffic classifier c1 operator or [Switch-classifier-c1] if-match acl 3001 [Switch-classifier-c1] quit [Switch] traffic classifier c2 operator or [Switch-classifier-c2] if-match acl 3002 [Switch-classifier-c2] quit 3. Configure traffic behavior. [Switch] traffic behavior b1 [Switch-behavior-b1] redirect ip-nexthop 10.1.20.1 [Switch-behavior-b1] quit [Switch] traffic behavior b2 [Switch-behavior-b2] redirect ip-nexthop 10.1.30.1 [Switch-behavior-b2] quit 4. Configure traffic policy. [Switch] traffic policy p1 [Switch-trafficpolicy-p1] classifier c1 behavior b1 [Switch-trafficpolicy-p1] classifier c2 behavior b2 [Switch-trafficpolicy-p1] quit 5. Apply the traffic policy on the interface. [Switch] interface gigabitethernet 2/0/1 [Switch-GigabitEthernet2/0/1] traffic-policy p1 inbound [Switch-GigabitEthernet2/0/1] return Notes�?we can configure multiple classifier and behavior in one policy.

Matching sequence of policy-based routes
Policy-based routes are matched based on their node sequence numbers in ascending order.

Differences between policy-based routing and default routing
The operation object of policy-based routing is packets. Even if a routing table is available, packets are not forwarded according to the routing table, and they are forwarded based on a policy according to requirements. According to the conventional routing and forwarding principle, packets are forwarded according to the destination addresses of the packets. Nowadays, more and more users expect that packets are forwarded and routed according to their defined policies on the basis of the conventional routing and forwarding. Policy-based routing enables the network administrator to formulate routing policies according to the source and destination addresses of packets, packet size, and link quality in order to change the forwarding paths of packets and meet user requirements.

How many PBR-based routes do Huawei switches support
Huawei switches support four PBR-based routes. That is, a maximum of four next hop addresses can be defined in a traffic behavior. When the redirect ip-nexthop or redirect ipv6-nexthop command is used to configure multiple next hop IP addresses, the switch redirects packets in active/standby mode. The device determines the primary path and backup paths according to the sequence in which next hop IP addresses were configured. The next hop IP address that was configured first has the highest priority and this next hop is used as the primary path. Other next hops are used as backup paths. When the primary link becomes Down, a next hop with higher priority is used as the primary link. When the redirect ip-multihop or redirect ipv6-multihop command is used to configure multiple next hop IP addresses, the switch redirects packets using equal-cost routes in load balancing mode. The switch selects a next hop IP address based on source IP addresses of the packets. That is, if the source IP addresses of the packets are the same, the switch forwards the packets to the same next hop regardless of the traffic volume.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top