cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
284
Views
0
Helpful
3
Replies

policy routing C3560G version 12.2(55) SE9 (image-IPSERVICESK9-M).Cannot apply ip policy route-map on interface

imos19861
Level 1
Level 1

 Route-map config

 route-map corporate permit 10
 match ip address 101
 set ip next-hop x.x.x.x
 

 

Interface config

interface GigabitEthernet0/15
 description xyz
 switchport mode access

 

router(config-if) ip ? " cannot find policy route-map on interface"

sh sdm prefer

 The current template is "desktop IPv4 and IPv6 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:                  1.5K
  number of IPv4 IGMP groups + multicast routes:    1K
  number of IPv4 unicast routes:                    2.75K
    number of directly-connected IPv4 hosts:        1.5K
    number of indirect IPv4 routes:                 1.25K
  number of IPv6 multicast groups:                  1.125k
  number of directly-connected IPv6 addresses:      1.5K
  number of indirect IPv6 unicast routes:           1.25K
  number of IPv4 policy based routing aces:         0.25K
  number of IPv4/MAC qos aces:                      0.5K
  number of IPv4/MAC security aces:                 0.5K
  number of IPv6 policy based routing aces:         0.25K
  number of IPv6 qos aces:                          0.625k
  number of IPv6 security aces:                     0.5K

 

STILL cannot apply ip policy route-map on an interface, any suggestions.

Thanks

Irfan

 

 

3 Replies 3

Dennis Mink
VIP Alumni
VIP Alumni

your interface GigabitEthernet0/15  is not a routed interface. apply the route policy to an SVI or L3 interface, not to an access port i.e. switchport like you are trying to do   ;-)

 

HTH

Please remember to rate useful posts, by clicking on the stars below.

Hi Dennis,

 i have 2 devices connected to the access port on the switch. I need to route the traffic from router connected to the  device A - switch-  device B - next hop. Since both the ports are access ports on 3560 can i use set interface command to route the traffic out from interface connected to device B as i cannot apply policy routing on access port.Does this sound correct?

Thanks

hmm, dont fully understand your set up, but all I am getting at is, if you want to use policy based routing to force traffic from device A to go to device B, first of all the two devices will need to be in a separate subnet/VLAN  for instance:

 

device a 1.1.1.1  default GW 1.1.1.2

device b 2.2.2.1  default GW 2.2.2.2 

 

the apply the ip policy map to the interface with IP address 1.1.1.2

 

again, you cannot use policy based routing withing the same subnet, i.e. apply to a L2 if.

Please remember to rate useful posts, by clicking on the stars below.

Review Cisco Networking for a $25 gift card