この製品のマニュアルセットは、偏向のない言語を使用するように配慮されています。このマニュアルセットでの偏向のない言語とは、年齢、障害、性別、人種的アイデンティティ、民族的アイデンティティ、性的指向、社会経済的地位、およびインターセクショナリティに基づく差別を意味しない言語として定義されています。製品ソフトウェアのユーザーインターフェイスにハードコードされている言語、RFP のドキュメントに基づいて使用されている言語、または参照されているサードパーティ製品で使用されている言語によりドキュメントに例外が存在する場合があります。シスコのインクルーシブランゲージに対する取り組みの詳細は、こちらをご覧ください。
このドキュメントは、米国シスコ発行ドキュメントの参考和訳です。リンク情報につきましては、日本語版掲載時点で、英語版にアップデートがあり、リンク先のページが移動/変更されている場合がありますことをご了承ください。あくまでも参考和訳となりますので、正式な内容については米国サイトのドキュメントを参照ください。
目次
この章の内容は、次のとおりです。
Cisco Nexus 5500 シリーズ デバイスでは、VLAN での分類およびマーキング用の Quality of Service(QoS)ポリシーを設定できます。 VLAN に適用されるポリシーは、VLAN のレイヤ 2 およびスイッチ仮想インターフェイス(SVI)ポートのトラフィックに適用されます。
QoS ポリシーのマーキング要件によって優先順位が決まります。 インターフェイス QoS ポリシーが最優先され、VLAN QoS ポリシーがその次になり、システム QoS ポリシーが最も低い優先順位になります。
ただし、VLAN に VLAN QoS ポリシーと VLAN ACL(VACL)の両方が割り当てられている場合、VACL が最優先されます。
次に、CoS 5 のインターフェイス 1/1 のトラフィックが qos-group 3 に送信される設定例を示します。 VLAN 10 および CoS 5 の他のインターフェイスのトラフィックは qos-group 4 に送信されます。 VLAN 10 および CoS 5 以外のインターフェイスのトラフィックは qos-group 5 に送信されます。
class-map type qos match-all cm1 match cos 5 policy-map type qos pm-ifc class cm1 set qos-group 3 class class-default policy-map type qos pm-vlan class cm1 set qos-group 4 class class-default policy-map type qos pm-sys class cm1 set qos-group 5 class class-default system qos service-policy type qos input pm-sys vlan configuration 10 service-policy type qos input pm-vlan interface Ethernet1/1 service-policy type qos input pm-ifc
次に、CoS 5 のインターフェイス 1/1 のトラフィックが qos-group 3 に送信される設定例を示します。 CoS 5 の他のインターフェイスのトラフィックは qos-group 5 に送信されます。
class-map type qos match-all cm1 match cos 5 policy-map type qos pm-ifc class cm1 set qos-group 3 class class-default policy-map type qos pm-sys class cm1 set qos-group 5 class class-default system qos service-policy type qos input pm-sys interface Ethernet1/1 service-policy type qos input pm-ifc
次に、CoS 5 の VLAN 10 のトラフィックが qos-group 4 に送信される設定例を示します。 CoS 5 の他の VLAN のトラフィックは qos-group 5 に送信されます。
class-map type qos match-all cm1 match cos 5 policy-map type qos pm-vlan class cm1 set qos-group 4 class class-default policy-map type qos pm-sys class cm1 set qos-group 5 class class-default system qos service-policy type qos input pm-sys vlan configuration 10 service-policy type qos input pm-vlan
この例では、送信元 IP アドレスが 10.10.10.1 のパケットはドロップされます。 ただし、VLAN 10 および CoS 5 の他のパケットは qos-group 4 に送信されます。
ip access-list al1 10 permit ip 10.10.10.1/24 any vlan access-map v-am1 match ip address al1 action drop vlan filter v-am1 vlan-list 10 class-map type qos match-all cm1 match cos 5 policy-map type qos pm-vlan class cm1 set qos-group 4 class class-default vlan configuration 10 service-policy type qos input pm-vlan
QoS TCAM リージョンは、インターフェイス QoS、システム QoS、および VLAN QoS ポリシーによって共有されます。 VLAN QoS ポリシーを定義するために、インターフェイス QoS ポリシーの TCAM エントリの数を制限する必要があります。 この制限を設定するには、hardware profile tcam feature interface-qos limit tcam-size を使用します。
interface_qos_limit を特定の数に設定する場合、すべての ASIC の TCAM の QoS リージョンにその数のオフセットを超えるインターフェイス ポリシーを設定することはできません。 たとえば、interface_qos_limit を 1000 に設定する場合、すべての ASIC の TCAM の QoS リージョンにオフセット 1000 を超えるインターフェイス ポリシーを設定できません。
次に、インターフェイス QoS TCAM 制限を 20 エントリに設定する例を示します。
switch(config)# configure terminal switch(config)# hardware profile tcam feature interface-qos limit 20 switch(config)# show hardware profile tcam feature qos Feature Limit (number of tcam entries) ------------------------------------------------------ interface-qos 20 vlan-qos + global-qos 428 switch(config)# copy running-config startup-config
次に、インターフェイス QoS TCAM 制限を削除する例を示します。
switch(config)# configure terminal switch(config)# show hardware profile tcam feature qos Feature Limit (number of tcam entries) ------------------------------------------------------ interface-qos 20 vlan-qos + global-qos 428 switch(config)# no hardware profile tcam feature interface-qos limit 20 switch(config)# copy running-config startup-config
次に、サービス ポリシーを作成し、VLAN 10 に割り当てる例を示します。
switch# configure terminal switch(config)# class-map type qos cm1 switch(config-cmap-qos)# match cos 5 switch(config-cmap-qos)# policy-map type qos pm-vlan switch(config-pmap-qos)# class cm1 switch(config-pmap-c-qos)# set qos-group 4 switch(config-pmap-c-qos)# exit switch(config-pmap-qos)# exit switch(config)# vlan configuration 10 switch(config-vlan-config)# service-policy type qos input pm-vlan switch(config-vlan-config)#
次に、VLAN 10 から pm-vlan ポリシー マップを削除する例を示します。
swtich# configure terminal switch(config)# vlan configuration 10 switch(config-vlan-config)# no service-policy type qos input pm-vlan switch(config-vlan-config)# copy running-config startup-config
設定を確認するには、次のいずれかのコマンドを使用します。
コマンド |
目的 |
---|---|
show policy-map vlan vlan-number |
指定する VLAN に設定されている QoS ポリシーを表示します。 |
show policy-map [name] |
スイッチで定義されたポリシー マップを表示します。 指定したポリシーだけを表示することもできます。 |
running-config ipqos |
QoS の実行コンフィギュレーションに関する情報を表示します。 |
startup-config ipqos |
QoS のスタートアップ コンフィギュレーションに関する情報を表示します。 |
機能名 |
リリース |
機能情報 |
---|---|---|
VLAN QoS |
5.1(3)N2(1) |
この機能が導入されました。 |