09-13-2022 12:47 PM
Hi Guys,
I am wondering if we can create routes based on the interface through which the traffic is received. Please refer to the below diagram of the network.
So, what I want to achieve is, that when any traffic is received by the switch on the interface G0/1 with the destination of the Web Server, the switch should directly send it to the Web Server via interface G0/2.
But, if the traffic is received on G0/3 with the same destination of "Web Server", it should forward to the DPI server. Is that possible?
Solved! Go to Solution.
09-13-2022 01:04 PM
two solution
1-G0/3 and DPI G0/4 in one VRF not in global
2- using PBR in g0/3 to direct the traffic to G0/4
09-13-2022 01:04 PM
two solution
1-G0/3 and DPI G0/4 in one VRF not in global
2- using PBR in g0/3 to direct the traffic to G0/4
09-14-2022 12:55 AM
Hi, Thanks for replying. Just want to know with PBR can we define routes based on the interface? Can you please elaborate on this a little bit?
09-14-2022 01:34 AM - edited 09-14-2022 01:36 AM
Hi there,
Policy Based Routing comprises of an ACL to match traffic flows and a route-map which in your example would specify the egress interface Gi0/4. The ip policy is then applied on the ingress interface (gi0/3).
!
ip access-list extended 101
permit 192.168.0.0 0.0.0.255 any
!
route-map DPI
match ip address 101
set interface gi0/4
!
int gi0/3
ip policy route-map DPI
!
cheers,
Seb.
09-14-2022 03:22 AM
https://www.mustbegeek.com/configure-policy-based-routing-on-cisco-router/
example how you apply PBR
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide