問題
サブインターフェースでカプセル化を有効にする構成はどれか。
- A
interface FastEthernet 0/0 encapsulation dot1Q 30 ip address 10.1.1.30 255.255.255.0 - B
interface FastEthernet 0/0.30 ip address 10.1.1.30 255.255.255.0 - C
interface FastEthernet 0/0.30 description subinterface vlan 30 - D
interface FastEthernet 0/0.30 encapsulation dot1Q 30 ip address 10.1.1.30 255.255.255.0
正解:D
理由
encapsulation dot1Q 30
FastEthernet0/0.30というサブインターフェースへこの指定を設定すると、VLAN30のタグを扱う。
サブインターフェース番号.30だけではVLANタグの設定にならない。
選択肢ごとの説明
- A.
interface FastEthernet 0/0 encapsulation dot1Q 30 ip address 10.1.1.30 255.255.255.0 対象が物理インターフェース0/0である。
- B.
interface FastEthernet 0/0.30 ip address 10.1.1.30 255.255.255.0 サブインターフェースのIPアドレスだけで、802.1Qのカプセル化指定がない。
- C.
interface FastEthernet 0/0.30 description subinterface vlan 30 Descriptionは説明文字列であり、VLANタグのカプセル化を有効にしない。
- D.
interface FastEthernet 0/0.30 encapsulation dot1Q 30 ip address 10.1.1.30 255.255.255.0 サブインターフェース0/0.30と、VLAN 30のencapsulation dot1Q指定を含む。