Policy Routing Routing Routes - The 13 series from scratch to learn RouterOS

This chapter tutorial is mainly about how RouterOS The PBR is implemented.

The last chapter we said static routing, static routing, but there is not good, because once we specify static routing, it is global control. That we 192.168.11.0/24 network access throughout the entire IP 114.114.114.114 time will go by telecommunications gateway, but if we just need this one a IP gateway out of it, then you need to come through policy-based routing Achieved.

The PBR is a special static routing priority than static reason to be a little high.

This topology is:

webp

Look at our PC access route 114.114.114.114 tracking information:

webp

At this point we want to PC2 policy-based routing, making it accessible 114.114.114.114 out of Unicom's network.

At this point we have to help Mangle of the mark-routing.

PC2 ip is 192.168.11.250

We need to IP> firewall> mangle, mangle create a new rule.

webp

Marked routes marked 250Routing

webp

At this point we have to drag this rule the second position, because in the past our packet marking is canceled Passthrough, so the new rule in the final, you will not see any data.

webp

At this point we have completed the routing tag, but we also need to export specified by this route in the routing table inside.

Click IP-Routes, New Rule

webp

Test to see PC1 and PC2 access traceroute 114.114.114.114 is like:

webp

PC1 and PC2 can see this visit 114.114.114.114 IP interface go out are not the same, that we have access to 192.168.11.250 successful strategy 114.114.114.114, it is a policy-based routing mark routing.


Guess you like

Origin blog.51cto.com/13796759/2429586