問題
図のサブインターフェースでVLAN 100のトラフィックをシェーピングしたい。どのポリシー設定が要件を満たすか。

- A
policy-map shape_GigabitEthernet4.100 class class Queue0 service-policy xyz_QoS-model shape average 100000000 ! interface GigabitEthernet4.100 encapsulation dot1Q 200 service-policy output shape_GigabitEthernet4.100
- B
policy-map shape_GigabitEthernet4.200 class class-default service-policy xyz_QoS-model shape average 100000000 ! interface GigabitEthernet4.100 encapsulation dot1Q 100 service-policy output shape_GigabitEthernet4.200
- C
policy-map shape_GigabitEthernet4.100 class class-default service-policy xyz_QoS-model shape average 100000000 ! interface GigabitEthernet4.100 encapsulation dot1Q 200 service-policy output shape_GigabitEthernet4.100
- D
policy-map shape_GigabitEthernet4.200 class class Queue0 service-policy xyz_QoS-model shape average 100000000 ! interface GigabitEthernet4.100 encapsulation dot1Q 100 service-policy output shape_GigabitEthernet4.100
正解:B
理由
VLANはencapsulationの値で決まり、適用するservice-policy名は定義したpolicy-map名と一致させる。
選択肢ごとの説明
- A.
policy-map shape_GigabitEthernet4.100 class class Queue0 service-policy xyz_QoS-model shape average 100000000 ! interface GigabitEthernet4.100 encapsulation dot1Q 200 service-policy output shape_GigabitEthernet4.100
encapsulation dot1Q 200この指定のため、サブインターフェース名が.100でもVLAN 200を扱う。
- B.
policy-map shape_GigabitEthernet4.200 class class-default service-policy xyz_QoS-model shape average 100000000 ! interface GigabitEthernet4.100 encapsulation dot1Q 100 service-policy output shape_GigabitEthernet4.200
VLAN 100を指定し、定義したshape_GigabitEthernet4.200をそのまま適用する。ポリシー名に含まれる200は任意の名前であり、VLANを決めない。
- C.
policy-map shape_GigabitEthernet4.100 class class-default service-policy xyz_QoS-model shape average 100000000 ! interface GigabitEthernet4.100 encapsulation dot1Q 200 service-policy output shape_GigabitEthernet4.100
encapsulation dot1Q 200この指定のため、要求されたVLAN 100を扱わない。
- D.
policy-map shape_GigabitEthernet4.200 class class Queue0 service-policy xyz_QoS-model shape average 100000000 ! interface GigabitEthernet4.100 encapsulation dot1Q 100 service-policy output shape_GigabitEthernet4.100
定義はshape_GigabitEthernet4.200だが、適用する名前はshape_GigabitEthernet4.100で一致していない。