QoS
qos
Command Objective: This command enables or disables the QoS subsystem.
Syntax: qos {enable | disable}
Parameter Description:
- enable: Enables QoS subsystem.
- disable: Disables Qos subsystem.
Mode: Global Configuration Mode.
qos trust
Command Objective: This command sets qos trust mode.
Syntax: qos trust {cos | dscp | cos-dscp}
Parameter Description:
- cos: trust cos.
- dscp: trust dscp.
- cos-dscp: trust cos, if cos not set, trust dscp.
Mode: Global Configuration Mode.
priority-map
Command Objective: This command sets the type of the incoming priority mapping to queue.
The no form of the command sets default value.
Syntax:
priority-map in-priority-type {vlanPri | ipDscp} <integer(0-63)> [<integer(0-63)>] [<integer(0-63)>] [<integer(0-63)>] [<integer(0-63)>] [<integer(0-63)>] [<integer(0-63)>] [<integer(0-63)>] to <integer(1-8)>
no priority-map in-priority-type {vlanPri | ipDscp} <integer(0-63)> [<integer(0-63)>] [<integer(0-63)>] [<integer(0-63)>] [<integer(0-63)>] [<integer(0-63)>] [<integer(0-63)>] [<integer(0-63)>]
Parameter Description:
- vlanPri: Vlan priority.
- ipDscp: DSCP.
- <integer(0-63)>: Priority value. (0-7) for vlanPri, (0-63) for ipDscp.
- integer(1-8): Queue id.
Mode: Global Configuration Mode.
scheduler
Command Objective: This command creates a Scheduler and configures the Scheduler parameters.
Syntax: scheduler sched-algo {strict-priority | {wrr [weight <integer(0- 128)> <integer(0-128)> <integer(0-128)> <integer(0-128)> <integer(0-128)> <integer(0-128)> <integer(0-128)> <integer(0-128)>]}}
Parameter Description:
- strict-priority: strictPriority.
- wrr: weightedRoundRobin.
- weight <integer(0-128)> <integer(0-128)> <integer(0-128)> <integer(0-128)> <integer(0-128)> <integer(0-128)> <integer(0-128)> <integer(0-128)>: Weight of wrr from queue 1 to queue 8.
Mode: Global Configuration Mode.
class-policy
Command Objective: This command creates a qos policy.
The no form of the command deletes a qos policy.
Syntax:
class-policy <name (23)>
no class-policy <name (23)>
Parameter Description:
- <name (23)>: Name of qos policy.
Mode: Global Configuration Mode.
qos interface
Command Objective: This command sets the default ingress user priority for the port.
Syntax: qos interface <iftype> <ifnum> def-user-priority <integer(0-7)>
Parameter Description:
- iftype: Interface type.
- ifnum: Interface number.
- def-user-priority: Default ingress user priority for the port.
Mode: Global Configuration Mode.
match policy -- tcp/udp
Command Objective: This command specifies the TCP/UDP packets to be forwarded based on the associated parameters.
Syntax: match policy {any | host <src-mac-address>} {any | host <dest-mac-address>} [ethertype <integer (1-65535)>] [vlan <vlan-id (1-4094)>] [vlan-priority <value (0-7)>] {tcp | udp} {any | host <src-ip-address> | <src-ip-address> <src-mask>} [eq <port-number (1-65535)>] {any | host <dest-ip-address> | <dest-ip-address> <dest-mask>} [eq <port-number (1-65535)>] [dscp <dscp-value (0-63)>] [action {tos <tos-value(0-7)> | dscp <value (0-63)>}]
Parameter Description:
- any | host <src-mac-address>: Source MAC address to be matched with the packet.
- any | host <dest-mac-address>: Destination MAC address to be matched with the packet.
- ethertype <integer (1-65535)>: Specifies the non-IP protocol type to be filtered.
- vlan <vlan-id (1-4094)>: VLAN value to match against incoming packets.
- vlan-priority <value (0-7)>: VLAN priority value to match against incoming packets.
- tcp: Transport Control Protocol.
- udp: User Datagram Protocol.
-
any | host <src-ip-address> | <src-ip-address> <src-mask>: Source IP address can be:
- any
- The dotted decimal address.
- The IP Address of the network or the host that the packet is from and the network mask to use with the source address.
-
eq <port-number (1-65535)>: Port Number.
-
any | host <dest-ip-address> | <dest-ip-address> <dest-mask>: Destination IP address can be:
- any
- The dotted decimal address.
- The IP Address of the network or the host that the packet is destined for and the network mask to use with the destination address.
-
dscp <dscp-value (0-63)>: Differentiated services code point provides the quality of service control.
- tos <tos-value(0-7)>: set tos to value.
- dscp <value (0-63)>: set dscp to value.
Mode: Policy Map Configuration Mode.
match policy -- icmp
Command Objective: This command specifies the ICMP packets to be forwarded based on the associated parameters.
Syntax: match policy {any | host <src-mac-address>} {any | host <dest-mac-address>} [ethertype <integer (1-65535)>] [vlan <vlan-id (1-4094)>] [vlan-priority <value (0-7)>] icmp {any | host <src-ip-address> | <src-ip-address> <src-mask>} {any | host <dest-ip-address> | <dest-ip-address> <dest-mask>} [type <message-type (0-255)>] [code <message-code (0-255)>] [dscp <dscp-value (0-63)>] [action {vpt <tos-value(0-7)> | dscp <value (0-63)>}]
Parameter Description:
- any | host <src-mac-address>: Source MAC address to be matched with the packet.
- any | host <dest-mac-address>: Destination MAC address to be matched with the packet.
- ethertype <integer (1-65535)>: Specifies the non-IP protocol type to be filtered.
- vlan <vlan-id (1-4094)>: VLAN value to match against incoming packets.
- vlan-priority <value (0-7)>: VLAN priority value to match against incoming packets.
-
any | host <src-ip-address> | <src-ip-address> <src-mask>: Source IP address can be:
- any
- The dotted decimal address.
- The IP Address of the network or the host that the packet is from and the network mask to use with the source address.
-
any | host <dest-ip-address> | <dest-ip-address> <dest-mask>: Destination IP address can be:
- any
- The dotted decimal address.
- The IP Address of the network or the host that the packet is destined for and the network mask to use with the destination address.
-
type <message-type (0-255)>: Message type.
- code <message-code (0-255)>: Message code.
- dscp <dscp-value (0-63)>: Differentiated services code point provides the quality of service control.
- vpt <tos-value(0-7)>: Set tos to value.
- dscp <value (0-63)>: Set dscp to value.
Mode: Policy Map Configuration Mode.
match policy - ip/ospf/pim/protocol type
Command Objective: This command specifies the ip/ospf/pim/protocol type packets to be forwarded based on the associated parameters.
Syntax: match policy {any | host <src-mac-address>} {any | host <dest- mac-address>} [ethertype <integer (1-65535)>] [vlan <vlan-id (1-4094)>] [vlan-priority <value (0-7)>] {ip | ospf | pim | <protocol-type (1-255)>} {any | host <src-ip-address> | <src-ip-address> <src-mask>} {any | host <dest-ip-address> | <dest-ip-address> <dest-mask>} [dscp <dscp-value (0-63)>] [action {vpt <tos-value(0-7)> | dscp <value (0-63)>}]
Parameter Description:
- any | host <src-mac-address>: Source MAC address to be matched with the packet.
- any | host <dest-mac-address>: Destination MAC address to be matched with the packet.
- ethertype <integer (1-65535)>: Specifies the non-IP protocol type to be filtered.
- vlan <vlan-id (1-4094)>: VLAN value to match against incoming packets.
- vlan-priority <value (0-7)>: VLAN priority value to match against incoming packets.
-
any | host <src-ip-address> | <src-ip-address> <src-mask>: Source IP address can be:
- any
- The dotted decimal address.
- The IP Address of the network or the host that the packet is from and the network mask to use with the source address.
-
any | host <dest-ip-address> | <dest-ip-address> <dest-mask>: Destination IP address can be:
- any
- The dotted decimal address.
- The IP Address of the network or the host that the packet is destined for and the network mask to use with the destination address.
-
dscp <dscp-value (0-63)>: Differentiated services code point provides the quality of service control.
- vpt <tos-value(0-7)>: Set tos to value.
- dscp <value (0-63)>: Set dscp to value.
Mode: Policy Map Configuration Mode.
no match policy
Command Objective: This command clears all policy configuration.
Syntax: no match policy
Mode: Policy Map Configuration Mode.
show qos global info
Command Objective: This command displays QoS related global configurations.
Syntax: show qos global info
Mode: Privileged EXEC Mode.
show priority-map
Command Objective: This command displays the priority mapping to queue.
Syntax: show priority-map in-priority-type {vlanPri | ipDscp}
Parameter Description:
- vlanPri: Vlan priority.
- ipDscp: DSCP.
Mode: Privileged EXEC Mode.
show class-policy
Command Objective: This command displays the qos policy.
Syntax: show class-policy [{<name(23)> | interface <iftype> <ifnum>}]
Parameter Description:
- <string(31)>: Name of qos policy.
- iftype: Interface type.
- ifnum: Interface number.
Mode: Privileged EXEC Mode.
show scheduler
Command Objective: This command displays the configured Scheduler.
Syntax: show scheduler
Mode: Privileged EXEC Mode.
show qos def-user-priority
Command Objective: This command displays the configured default ingress user priority for a port.
Syntax: show qos def-user-priority [interface <iftype> <ifnum>]
Parameter Description:
- iftype: Interface type.
- ifnum: Interface number.
Mode: Privileged EXEC Mode.
qos trust
Command Objective: This command enable/disable qos trust on port.
Syntax: qos trust {enable | disable}
Parameter Description:
- enable: enable qos trust on port.
- disable: disable qos trust on port.
Mode: Interface Configuration Mode.
service-policy
Command Objective: This command enables qos policy on the interface.
The no form of this command removes qos policy from the interface.
Syntax:
service-policy <class-policy-name (31)> in
no service-policy <class-policy-name (31)>
Parameter Description:
- <class-policy-name (31)>: Name of qos policy.
Mode: Interface Configuration Mode.