Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
Community Member

Cannot Ping Default Gateway with Route Map Applied

Hi Everyone,

I have a 3560G and an ASA FW, for which I am trying to use PBR to append the next hop. The gateway is the switch VLAN address and the amended net hop is the same VLAN interface on the ASA. Trouble is, I can ping the FW from a client, but not the switch. If I remove the route map, I can ping both. Even more strange is this is the case for some VLANs, but not all!







interface g0/0.96

ip address

interface Vlan96

description Information Network

ip address

ip access-group 2030 in

ip policy route-map Information-RM

access-list 2030 remark ***Information Network ACL***

access-list 2030 remark ###PST to All Networks(ICMP Traffic)###

access-list 2030 permit icmp host any echo log

access-list 2030 permit icmp host any echo-reply log

access-list 2030 deny   ip any any log

access-list 2530 remark ***Information Network Route Map ACL***

access-list 2530 permit ip any

route-map Information-RM permit 10

match ip address 2530

set ip next-hop

SL-3560G-Switch#sh sdm prefer

The current template is "desktop routing" template.

The selected template optimizes the resources in

the switch to support this level of features for

8 routed interfaces and 1024 VLANs.

  number of unicast mac addresses:                  3K

  number of IPv4 IGMP groups + multicast routes:    1K

  number of IPv4 unicast routes:                    11K

    number of directly-connected IPv4 hosts:        3K

    number of indirect IPv4 routes:                 8K

  number of IPv4 policy based routing aces:         0.5K

  number of IPv4/MAC qos aces:                      0.5K

  number of IPv4/MAC security aces:                 1K

SL-3560G-Switch#sh route-map Information-RM

route-map Information-RM, permit, sequence 10

  Match clauses:

    ip address (access-lists): 2530

  Set clauses:

    ip next-hop

  Policy routing matches: 1734 packets, 164439 bytes

Cannot understand why I cannot ping my d/g (switch) when the route map is applied.

Any help would be great.



Community Member

Cannot Ping Default Gateway with Route Map Applied

anyone got any ideas?

Im really confused as I have another VLAN, and this works fine it seems. The config is the same.


Hall of Fame Super Gold

Cannot Ping Default Gateway with Route Map Applied


I believe that the issue with the route map is fairly simple. The way the route map is configured it takes any incoming packet with source address in subnet 96 and forwards it to the firewall. So when you attempt to ping the default gateway the PC sends the ping packet, the switch sets the next hop as the firewall and forwards it, and the firewall does not send the packet back to the switch (and even if it did the policy would forward it back to the firewall again creating a loop). So what you need to do to fix this is to change the access list used in the route map. The new access list should deny packets with source in subnet 96 and destination of the switch interface address and then the existing statement ot permit packets from subnet 96.



Community Member

Re: Cannot Ping Default Gateway with Route Map Applied

Thank you. I was facing same issue.Deny local traffic resolves the issue.



Extended IP access list 101
10 deny ip (1113 matches)
20 permit ip any (149 matches)

CreatePlease to create content