AMX NXA-ENET24 Switch User Manual


 
CLI (Command Line Interface)
265
NXA-ENET24 - Software Management Guide
Priority Commands (Layer 2 - Cont.)
Command Function
switchport priority
default
This command sets a
priority for incoming
untagged frames.
Use the no form to restore
the default value.
Syntax:
switchport priority default default-priority-id
no switchport priority default
default-priority-id - The priority number for untagged ingress traffic.
The priority is a number from 0 to 7. Seven is the highest priority.
Default Setting: The priority is not set, and the default value for untagged frames
received on the interface is zero.
Command Mode: Interface Configuration (Ethernet, Port Channel)
Command Usage: The precedence for priority mapping is IP Port, IP Prece-
dence or IP DSCP, and default switchport priority.
The default priority applies for an untagged frame received on a port set to accept
all frame types (i.e, receives both untagged and tagged frames). This priority does
not apply to IEEE 802.1Q VLAN tagged frames. If the incoming frame is an IEEE
802.1Q VLAN tagged frame, the IEEE 802.1p User Priority bits will be used.
This switch provides eight priority queues for each port. It is configured to use
Weighted Round Robin, which can be viewed with the show queue bandwidth
command. Inbound frames that do not have VLAN tags are tagged with the input
port’s default ingress user priority, and then placed in the appropriate priority
queue at the output port. The default priority for all ingress ports is zero. There-
fore, any inbound frames that do not have priority tags will be placed in queue 0 of
the output port. (Note that if the output port is an untagged member of the associ-
ated VLAN, these frames are stripped of all VLAN tags prior to transmission.)
Example: The following example shows how to set a default priority on port 3 to
5:
Console(config)#interface ethernet 1/3
Console(config-if)#switchport priority default 5
queue bandwidth
This command assigns
weighted round-robin
(WRR) weights to the four
class of service (CoS)
priority queues.
Use the no form to restore
the default weights.
Syntax:
queue bandwidth weight1...weight4
no queue bandwidth
weight1...weight4 - The ratio of weights for queues 0-3 determines the weights
used by the WRR scheduler. However, note that Queue 0 is fixed at a weight of
1, and cannot be configured. (Range: 1-31)
Default Setting: Weights 1, 2, 4, 6 are assigned to queues 0-3 respectively.
Queue 0 is non-configurable.
Command Mode: Global Configuration
Command Usage: WRR controls bandwidth sharing at the egress port by defin-
ing scheduling weights.
Example: This example shows how to assign WRR weights to priority queues
1 - 3:
Console(config)#queue bandwidth 6 9 12
Console(config)#