05-16-2018 03:26 PM - edited 03-08-2019 03:02 PM
Hello, does this firmware support policy based routing ?
Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.4(2)T1, RELEASE SOFTWARE (fc3).
I have a route map which is not working i.e. the access list that the route map refers to is incrementing hits, but traffic not being routed towards my 'ip default next-hop 10.21.150.45' command i.e it is still being routed out the the route in the Cisco route table (which is not my intention).
Stangely, I see the route map is receiving matches, but the source client 10.23.150.15 traceroute shows traffic is still going via the wrong path:
MyRouter#show route-map codec
route-map codec, permit, sequence 10
Match clauses:
ip address (access-lists): codec
Set clauses:
ip default next-hop 10.21.150.45
Policy routing matches: 149 packets, 15734 bytes
CLIENT traceroute:
C:\Users\dsvc_DTIUNGWKSTN>tracert -d 192.168.8.22
Tracing route to 192.168.8.22 over a maximum of 30 hops
1 1 ms <1 ms <1 ms 10.23.150.1
2 3 ms 3 ms 3 ms 192.168.3.78******this is not the next hop address i specified in my route map. I would be expecting to see 10.21.150.45 here.***************
3 16 ms 16 ms 16 ms 192.168.2.5
4 18 ms 19 ms 18 ms 192.168.2.6
Route map ACL being matched:
MWTIURTR1#sh access-list codec
Extended IP access list codec
10 permit ip host 10.23.150.15 192.168.8.0 0.0.0.255 (196 matches)*******as expected
20 permit ip host 10.23.150.15 192.168.9.0 0.0.0.255
30 permit ip host 10.23.150.15 192.168.10.0 0.0.0.255
40 permit ip host 10.23.150.15 192.168.11.0 0.0.0.255
50 permit ip host 10.23.150.15 192.168.13.0 0.0.0.255
The specified next hop in the route map is reachable by this router:
MyRouter#sh ip route 10.21.150.45
Routing entry for 10.21.150.0/24
Known via "connected", distance 0, metric 0 (connected, via interface)
Advertised by bgp 65150
Routing Descriptor Blocks:
* directly connected, via GigabitEthernet0/0.10
Route metric is 0, traffic share count is 1
This is my intention:
I have a host 10.23.150.15. I want to modify the next hop for traffic ONLY from this host to ONLY 192.168.8.0, 192.168.9.0, 192.168.10.0 and 192.168.13.0.
All other traffic from this host will follow the normal default gateway configured on their NIC.
Thank you kindly.
Extended IP access list codec
10 permit ip host 10.23.150.15 192.168.8.0 0.0.0.255
20 permit ip host 10.23.150.15 192.168.9.0 0.0.0.255
30 permit ip host 10.23.150.15 192.168.10.0 0.0.0.255
40 permit ip host 10.23.150.15 192.168.11.0 0.0.0.255
50 permit ip host 10.23.150.15 192.168.13.0 0.0.0.255
route-map codec
match ip address codec
set default next-hop 10.21.250.45
Then on the router:
int gi0/0.30
ip policy route-map codec
Here is the config:
Current configuration : 9762 bytes
!
! Last configuration change at 08:29:09 NZST Thu May 17 2018 by lastresort
!
Solved! Go to Solution.
05-16-2018 04:19 PM
Hi,
As mentioned in other post check/post your routing table. For PBR-
*******************************************************
The set ip default next-hop command verifies the existence of the destination IP address in the routing table, and…
if the destination IP address exists, the command does not policy route the packet, but forwards the packet based on the routing table.
if the destination IP address does not exist, the command policy routes the packet by sending it to the specified next hop.
The set ip next-hop command verifies the existence of the next hop specified, and…
if the next hop exists in the routing table, then the command policy routes the packet to the next hop.
if the next hop does not exist in the routing table, the command uses the normal routing table to forward the packet.
***************************************************
hth
MS
05-16-2018 03:41 PM
can you put here?
show ip route
05-16-2018 04:07 PM - edited 05-19-2018 12:20 PM
05-16-2018 04:19 PM
Hi,
As mentioned in other post check/post your routing table. For PBR-
*******************************************************
The set ip default next-hop command verifies the existence of the destination IP address in the routing table, and…
if the destination IP address exists, the command does not policy route the packet, but forwards the packet based on the routing table.
if the destination IP address does not exist, the command policy routes the packet by sending it to the specified next hop.
The set ip next-hop command verifies the existence of the next hop specified, and…
if the next hop exists in the routing table, then the command policy routes the packet to the next hop.
if the next hop does not exist in the routing table, the command uses the normal routing table to forward the packet.
***************************************************
hth
MS
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