Goal : Make sure R2 forward traffic from 126.96.36.199 to 188.8.131.52 use s3/2 as outgoing interface, other traffic use fa1/0 interface.
- All router is reachable by EIGRP
- R2 has a normal routing table for destination 184.108.40.206 is via 192.168.23.3, because Fastethernet link is has a better bandwidth than serial link.
- Create access-list permit traffic from host 220.127.116.11 to 18.104.22.168
- Create route-map & set outgoing interface
- Apply PBR to incoming interface
-Verify & make sure, only traffic from 22.214.171.124 to 126.96.36.199 should go to serial link.
Configuration : (All configuration is done in R2)
1. Create access list
access-list 100 permit ip host 188.8.131.52 host 184.108.40.206
2. Create route-map
route-map MYPBR permit 10
match ip address 100
set interface Serial3/2
3. Apply PBR to incoming interface
ip address 192.168.12.2 255.255.255.0
ip policy route-map MYPBR
- show ip policy in R2
- show route-map in R2
- show ip route in R2
- traceroute in R1
- debug ip policy in R2
As we can see first traceroute is use normal forwarding & second match by ip policy. So R2 will forward traffic from 220.127.116.11 to 18.104.22.168 via s3/2 next-hop192.168.24.4