I have the following set up.
- R1 is linked to R1 with a point to point link 172.16.0.1 and 172.16.0.2
- R2 has two loop backs set up 192.168.1.10/24 and 192.168.2.10/24
- R1 has two static routes set up pointing to the 192.168.1.0 and 192.168.2.0
I can ping the 172.16.0.1 address or router R1 from all the other IP address, and between the 192.168.. sub nets.
So what I want to do is set up routing policies so that the two 192.168.0.. subnets are not able to take direct to each other and packets instead get forwarded to R1 to be dealt with. (ignore for the moment why, just accept this is test traffic in in the real world the traffic between the two vlans must pass though a fire wall that is remote to there location).
So i set up a route map
ip access-list standard force
permit 192.168.0.0 0.0.255.255 log
!
!
route-map MAP permit 10
match ip route-source force
set ip next-hop 172.16.0.1
and applied this to both loop back interfaces
I assumed this would mean that any incoming packets with the source address 192.168.x.x would be directed to R1. however when pinging 192.168.1.10 from source 192.168.1.20 the ping runs fine, but with a packet sniffer on the link between R1 and R2 I see no data.
Have I got the config completely wrong or is there some thing else I am missing?
Cheers