10-30-2018 09:00 AM - edited 03-08-2019 04:30 PM
Hi Community
I have a new switch C2960L, and try to configure "policy-map" on it.
But I can assign "policy-map" to only 8 ports, the rest of the ports report an error:
"Service Policy attachment failed"
Is there any limit to the number of ports with "policy-map"?
Switch:
WS-C2960L-48TS-LL ios: c2960l-universalk9-mz.152-6.E2.bin
License Name : Lanlite
Log.event:
Oct 30 15:20:01: %QOS-6-POLICY_INST_FAILED:
Service policy installation failed
Port Configuration:
interface range gigabitEthernet 0/1-44
switchport access vlan 100
switchport mode access
spanning-tree portfast edge
spanning-tree bpduguard enable
Then I use CTRL+C and CTRL+V per port number 1-44:
int Gi0/18
description ## some description ##
service-policy input PM-NAME-OF-POLICY-MAP
Result:
sh run | i GigabitEthernet0|service-policy
interface GigabitEthernet0/1
service-policy input PM-NAME-OF-POLICY-MAP
interface GigabitEthernet0/2
service-policy input PM-NAME-OF-POLICY-MAP
interface GigabitEthernet0/3
service-policy input PM-NAME-OF-POLICY-MAP
interface GigabitEthernet0/4
interface GigabitEthernet0/5
interface GigabitEthernet0/6
interface GigabitEthernet0/7
interface GigabitEthernet0/8
interface GigabitEthernet0/9
interface GigabitEthernet0/10
interface GigabitEthernet0/11
service-policy input PM-NAME-OF-POLICY-MAP
interface GigabitEthernet0/12
interface GigabitEthernet0/13
interface GigabitEthernet0/14
interface GigabitEthernet0/15
interface GigabitEthernet0/16
interface GigabitEthernet0/17
interface GigabitEthernet0/18
interface GigabitEthernet0/19
interface GigabitEthernet0/20
interface GigabitEthernet0/21
interface GigabitEthernet0/22
interface GigabitEthernet0/23
interface GigabitEthernet0/24
interface GigabitEthernet0/25
service-policy input PM-NAME-OF-POLICY-MAP
interface GigabitEthernet0/26
service-policy input PM-NAME-OF-POLICY-MAP
interface GigabitEthernet0/27
service-policy input PM-NAME-OF-POLICY-MAP
interface GigabitEthernet0/28
service-policy input PM-NAME-OF-POLICY-MAP
interface GigabitEthernet0/29
interface GigabitEthernet0/30
interface GigabitEthernet0/31
interface GigabitEthernet0/32
interface GigabitEthernet0/33
interface GigabitEthernet0/34
interface GigabitEthernet0/35
interface GigabitEthernet0/36
interface GigabitEthernet0/37
interface GigabitEthernet0/38
interface GigabitEthernet0/39
interface GigabitEthernet0/40
interface GigabitEthernet0/41
interface GigabitEthernet0/42
interface GigabitEthernet0/43
interface GigabitEthernet0/44
interface GigabitEthernet0/45
interface GigabitEthernet0/46
interface GigabitEthernet0/47
interface GigabitEthernet0/48
interface GigabitEthernet0/49
interface GigabitEthernet0/50
interface GigabitEthernet0/51
interface GigabitEthernet0/52
Then I tried to set it manually:
switchname(config)#int gig0/4
switchname(config-if)#service-policy input PM-NAME-OF-POLICY-MAP
Service Policy attachment failed
But:
switchname(config)#interface GigabitEthernet0/1
switchname(config-if)#no service-policy input PM-NAME-OF-POLICY-MAP
!
switchname(config-if)#interface GigabitEthernet0/4
switchname(config-if)#service-policy input PM-NAME-OF-POLICY-MAP
!
switchname(config-if)#interface GigabitEthernet0/1
switchname(config-if)#service-policy input PM-NAME-OF-POLICY-MAP
Service Policy attachment failed
Some idea?
10-30-2018 09:06 AM
Hello,
try and configure:
sdm prefer qos
and check if that makes a difference...
10-31-2018 02:21 AM
Ther's no command
Switch(config-if)#sdm prefer qos
^
% Invalid input detected at '^' marker.
I tried the same on IOS c2960l-universalk9-mz.152-6.E1.bin, but it's the same.
10-31-2018 04:10 AM
BTW, this is what I set up:
write erase
reload
[auto script - etc.] no
configure terminal
mls qos
mls qos rewrite ip dscp
ip access-list extended AL-TEST-01
remark ### TEST 01 ###
permit icmp any host 1.1.1.1
!
ip access-list extended AL-TEST-02
remark ### TEST 02 ###
permit icmp any host 8.8.8.8
!
ip access-list extended AL-TEST-03
remark ### TEST 03 ###
permit icmp any host 4.2.2.4
class-map match-all CM-TEST-01
match access-group name AL-TEST-01
!
class-map match-all CM-TEST-02
match access-group name AL-TEST-02
!
class-map match-all CM-TEST-03
match access-group name AL-TEST-03
!
policy-map TEST
class CM-TEST-01
set dscp ef
class CM-TEST-02
set dscp af41
class CM-TEST-03
set dscp af31
class class-default
set dscp af11
!
interface range gigabitEthernet 0/1-44
service-policy input TEST
Service Policy attachment failed
% Interface range command failed for GigabitEthernet0/6
Oct 31 10:52:24.730: %QOS-6-POLICY_INST_FAILED:
Service policy installation failed
exit
sh run | i GigabitEthernet0|service-policy
interface GigabitEthernet0/1
service-policy input TEST
interface GigabitEthernet0/2
service-policy input TEST
interface GigabitEthernet0/3
service-policy input TEST
interface GigabitEthernet0/4
service-policy input TEST
interface GigabitEthernet0/5
service-policy input TEST
interface GigabitEthernet0/6
interface GigabitEthernet0/7
interface GigabitEthernet0/8
... rest is empty ...
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