Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Policy routing PBR

Shulou Source: shulou.com Published: 2022-06-01 06:45:50 10月03日 Update

Policy routing experimental environment GNS3 policy routing: better than the routing table, more flexible, can specify the next-hop forwarding address, has a stronger control. Specific other online search, a lot. I won't explain it in detail.

Experimental procedure

Step 1: set each IP address and refer to a default route to R3 on R1Magic R2 and R4 respectively (there is no route entry on R3)

Ip route 0.0.0.0 0.0.0.0 23.1.1.3

Step 2: set ACL on R3, catch the entry, and let the entry go straight to the next hop

Route-map aa permit 10

Match ip address 10

Set ip next-hop 34.1.1.4

Route-map bb permit 10

Match ip address 20

Set ip next-hop 34.1.1.4

Int f0/0

Ip policy route-map aa (configured in the interface)

Int f0/1

Ip policy route-map bb

Access-list 10 permit 13.1.1.0 0.0.0.255

Access-list 20 permit 23.1.1.0 0.0.0.255

The experiment is relatively simple, but not only this way of play, there are a lot of fun waiting for us to dig.

Tags: Routing entries labs policies addresses fun one search interfaces controls steps flexibility play environment control interpretation configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Tech Info Redmi NVidia Xiaomi