PBR next hop type of study

        PBR long time ago is achieved through QoS, and later put this feature as a separate commands to configure that PBR (policy-based-route). Recently encountered a place to use, suddenly I found the option next hop one more default-next-hop, he has been not to notice, next-hop has previously been used. No time to go into the field, have time tonight to look at what the two open simulators are not the same.

        Judging from the literal meaning, by default hop, here we should compare it in the end and the normal default route, specific routes in the end how to compare a priority.

        Topology follows, is very simple, the left side of the router using a local address 1.1.1.1, the right to ping a router 2.2.2.2. In the middle of the two paths designed for comparison.

image.png

1. Only PBR routing

image.png

image.pngimage.png

The following test

image.png

The test results within the expected range, because only this one route can be used.

Case 2, we add a default route

image.png

We then test it and see

image.png

No change in the path, or take the PBR

Case 3, delete the default route, plus a precise route

image.png

We can see that the path has changed.

       Through three experiments above, we should understand it, policy-based routing priority routes> Route Details> Default Policy Routing> default route, as to where exactly will be used, certainly in the case of multiple outlets, multiple public on exports coupled with the network exit, and then also the need for diversion cases, the specific situation you encounter, and then run flexible.

Guess you like

Origin blog.51cto.com/648909/2407064