cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1810
Views
0
Helpful
5
Replies

policy map on uplink port-channel, its physical ports, its trunked vlan

gavin han
Level 1
Level 1

I am trying to apply policy map to physical interface of port-channel but it doesn't take it. i also tried it apply it to port-channel (it is trunking vlan 100) and tried to apply it to vlan100 but switch isn't taking the command. 

port-channel10 has 2 uplink ports gi1/1/1, gi1/1/2. how to apply policy-map on uplink? below is the output from switch. switch is 3650.


Switch#sh policy-map

Policy Map OUTPUT-POLICY
Class VOICE-QUEUE
priority level 1
police cir 200000 bc 6250 be 6250
conform-action transmit
exceed-action set-dscp-transmit default
violate-action transmit
Class VIDEO-QUEUE
priority level 2
police cir 400000 bc 12500 be 12500
conform-action transmit
exceed-action set-dscp-transmit default
violate-action transmit
Class SIGNALING-QUEUE
bandwidth remaining 5 (%)
Class class-default
bandwidth remaining 74 (%)

Policy Map port_child_policy
Class non-client-nrt-class
bandwidth remaining ratio 10

Switch#sh run | b OUTPUT-POLICY
policy-map OUTPUT-POLICY
class VOICE-QUEUE
priority level 1
police 200000 conform-action transmit exceed-action set-dscp-transmit default violate-action transmit
class VIDEO-QUEUE
priority level 2
police 400000 conform-action transmit exceed-action set-dscp-transmit default violate-action transmit
class SIGNALING-QUEUE
bandwidth remaining percent 5
class class-default
bandwidth remaining percent 74



Switch#sh run int gi1/1/1
Building configuration...

Current configuration : 126 bytes
!
interface GigabitEthernet1/1/1
switchport trunk allowed vlan 100
switchport mode trunk
channel-group 10 mode active
end

Switch#sh run int gi1/1/2
Building configuration...

Current configuration : 126 bytes
!
interface GigabitEthernet1/1/2
switchport trunk allowed vlan 100
switchport mode trunk
channel-group 10 mode active
end

Switch#sh run int po10
*Dec 22 19:15:53.336: %SYS-5-CONFIG_I: Configured from console by console10
Building configuration...

Current configuration : 90 bytes
!
interface Port-channel10
switchport trunk allowed vlan 100
switchport mode trunk
end

Switch#sh run int vl100
Building configuration...

Current configuration : 63 bytes
!
interface Vlan100
ip address 192.168.1.1 255.255.255.0
end

Switch#wr
Building configuration...
Compressed configuration from 5261 bytes to 2498 bytes[OK]
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int ra gi1/1/1-2
Switch(config-if-range)#service-policy Output OUTPUT-POLICY
% Range command terminated because it failed on GigabitEthernet1/1/1
Switch(config-if-range)#
*Dec 22 19:16:26.007: Only markdown with a table-map is supported
*Dec 22 19:16:26.007: %QOS-6-POLICY_INST_FAILED:
Service policy installation failed
Switch(config-if-range)#
Switch(config-if-range)#INT GI1/1/1
Switch(config-if)#service-policy Output OUTPUT-POLICY
Switch(config-if)#INT GI1/1/
*Dec 22 19:16:48.797: Only markdown with a table-map is supported2
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#service-policy Output OUTPUT-POLICY
Switch(config-if)#
*Dec 22 19:16:58.448: Only markdown with a table-map is supported
*Dec 22 19:16:58.448: %QOS-6-POLICY_INST_FAILED:
Service policy installation failed
Switch(config-if)#end
Switch#sh run int gi1/
*Dec 22 19:17:09.830: %SYS-5-CONFIG_I: Configured from console by console1/1
Building configuration...

Current configuration : 126 bytes
!
interface GigabitEthernet1/1/1
switchport trunk allowed vlan 100
switchport mode trunk
channel-group 10 mode active
end

Switch#sh run int gi1/1/2
Building configuration...

Current configuration : 126 bytes
!
interface GigabitEthernet1/1/2
switchport trunk allowed vlan 100
switchport mode trunk
channel-group 10 mode active
end

Switch#sh run int po10
Building configuration...

Current configuration : 90 bytes
!
interface Port-channel10
switchport trunk allowed vlan 100
switchport mode trunk
end


Switch(config)#int po10
Switch(config-if)#service-policy output OUTPUT-POLICY
Switch(config-if)#
*Dec 22 19:17:45.078: Policy not supported on Port Channel interfaces
*Dec 22 19:17:45.078: %QOS-6-POLICY_INST_FAILED:
Service policy installation failed

Switch(config-if)#int vl100
Switch(config-if)#ser
Switch(config-if)#service-policy output OUTPUT-POLICY
Switch(config-if)#
*Dec 22 19:20:07.427: Only Marking policy action is supported on SVI interface. Policy Rejected
*Dec 22 19:20:07.427: %QOS-6-POLICY_INST_FAILED:
Service policy installation failed
Switch(config-if)#

5 Replies 5

Reza Sharifi
Hall of Fame
Hall of Fame

What type of switch is that?

If this is a 3850, you can only apply the policy to physical interfaces and not Portchannel.

HTH

Thanks. this is WS-C3650-48PS.

where can i find doc about whether to apply policy-map to physical ports or port-channel?

Have a look at this document.  It says:

This configuration should be applied to the physical uplink interfaces before adding them to an EtherChannel.

Link:

http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/16-1/best_practices_guide/BP_Cat3850/BP_uplink_connectivity.html#99979

HTH

it doesn't work. i am unable to apply service-policy to physical interfaces.


Switch(config)#int ra gi1/1/1-2
Switch(config-if-range)#ser
Switch(config-if-range)#service-policy o
Switch(config-if-range)#service-policy output OUTPUT-POLICY
% Range command terminated because it failed on GigabitEthernet1/1/1
Switch(config-if-range)#
*Dec 23 13:27:33.562: Only markdown with a table-map is supported
*Dec 23 13:27:33.562: %QOS-6-POLICY_INST_FAILED:
Service policy installation failed
Switch(config-if-range)#

Can you post "sh run" and "sh ver"?

HTH

Review Cisco Networking products for a $25 gift card