What i wanna do is that.
If a traffic at F0/1 of R1 comes in for any source but destination 202.100.30.248/29 then the next hop shall be 192.168.1.1
Both R3 and R2 have default static route designated towards R1 router so i'm able to ping 192.168.1.1 from Router R3.
But when i try to ping 200.100.30.252 from R3 i don't get reply infact i want to know that my PBR works and forwards the packets or not.The 200.100.30.252 isn't in the R1 routing table.There is no routing protocol running.
Here is what i configure on R1
route-map PBR, permit, sequence 10
Match clauses:
ip address (access-lists): 104
Set clauses:
ip default next-hop 192.168.1.1
Extended IP access list 104
10 permit ip any 202.100.30.248 0.0.0.7 log-input
interface FastEthernet0/1
ip address 172.16.1.2 255.255.255.252
ip policy route-map PBR
R1 configuration
R1#sh running-config
Building configuration...
Current configuration : 1295 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
ip tcp synwait-time 5
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.16.1.2 255.255.255.252
ip policy route-map PBR
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
ip forward-protocol nd
!
no ip http server
!
!
access-list 104 permit ip any 202.100.30.248 0.0.0.7 log-input
no cdp log mismatch duplex
!
route-map PBR permit 10
match ip address 104
set ip default next-hop 192.168.1.1
!
control-plane
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end
I analyze Packets from R3 to R1 and it only shows ARP broadcast asking for who is 202.100.30.252 and there is no reply coming back for that ARP.
May be I'm doing a big blunder i'm learning about this please correct me for my mistakes.
If you need anything more just ask.