09-17-2015 08:55 PM - edited 03-08-2019 01:50 AM
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
09-17-2015 09:47 PM
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
09-17-2015 10:23 PM
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
09-18-2015 12:01 AM
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.
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