問題
SW1のGi0/1はSW2のGi0/7、SW1のGi0/2はR1へ接続する。PC4はSW1 Gi0/0のVLAN 108、PC1はSW2 Gi0/0のVLAN 9、PC2はSW2 Gi0/1のVLAN 7を使う。VLAN作成、Gi0/0のaccess設定、R1のVLAN間ルーティングとnative VLAN 5は設定済みである。残るスイッチポートは既定状態から設定する。全PC間のレイヤー3通信を可能にし、トランクのタグなし通信をVLAN 5へ対応させ、VLAN 1を利用者データの許可から外す設定はどれか。
- A
! SW1 configure terminal interface Gi0/1 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 switchport trunk native vlan 5 exit interface Gi0/2 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 end ! SW2 configure terminal interface Gi0/1 switchport mode access switchport access vlan 7 exit interface Gi0/7 switchport mode trunk switchport trunk allowed vlan 7,9,108 end - B
! SW1 configure terminal interface Gi0/1 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 switchport trunk native vlan 5 exit interface Gi0/2 switchport mode access switchport trunk allowed vlan 7,9,108 end ! SW2 configure terminal interface Gi0/1 switchport mode access no switchport access vlan 1 switchport access vlan 7 exit interface Gi0/7 switchport mode trunk switchport trunk allowed vlan 7,9,108 switchport trunk native vlan 5 end - C
! SW1 configure terminal interface Gi0/1 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 switchport trunk native vlan 5 exit interface Gi0/2 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 switchport trunk native vlan 5 end ! SW2 configure terminal interface Gi0/1 switchport mode access switchport access vlan 7 exit interface Gi0/7 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 switchport trunk native vlan 5 end - D
! SW1 configure terminal interface Gi0/1 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 exit interface Gi0/2 switchport mode trunk switchport trunk allowed vlan 7,9,108 end ! SW2 configure terminal interface Gi0/1 switchport mode trunk switchport trunk allowed vlan 7 exit interface Gi0/7 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 end
正解:C
理由
スイッチ間とR1向けをトランクにし、VLAN 5・7・9・108を許可する。タグなし通信のnative VLANは5へ合わせる。PC2向けのSW2 Gi0/1はaccess VLAN 7にする。VLAN 1の利用者データを許可一覧から外しても、すべての制御通信を停止する意味ではない。
選択肢ごとの説明
- A.
! SW1 configure terminal interface Gi0/1 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 switchport trunk native vlan 5 exit interface Gi0/2 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 end ! SW2 configure terminal interface Gi0/1 switchport mode access switchport access vlan 7 exit interface Gi0/7 switchport mode trunk switchport trunk allowed vlan 7,9,108 end SW2 Gi0/7にnative VLAN 5がなく、SW1側とタグなし通信の対応が一致しない。許可VLANにも5がない。
- B.
! SW1 configure terminal interface Gi0/1 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 switchport trunk native vlan 5 exit interface Gi0/2 switchport mode access switchport trunk allowed vlan 7,9,108 end ! SW2 configure terminal interface Gi0/1 switchport mode access no switchport access vlan 1 switchport access vlan 7 exit interface Gi0/7 switchport mode trunk switchport trunk allowed vlan 7,9,108 switchport trunk native vlan 5 end R1向けSW1 Gi0/2がaccessのため、複数VLANをタグ付きで運べない。trunk allowedの指定を加えるだけではportmodeは変わらない。
- C.
! SW1 configure terminal interface Gi0/1 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 switchport trunk native vlan 5 exit interface Gi0/2 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 switchport trunk native vlan 5 end ! SW2 configure terminal interface Gi0/1 switchport mode access switchport access vlan 7 exit interface Gi0/7 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 switchport trunk native vlan 5 end スイッチ間とR1向けで必要なVLANとnative 5をそろえ、PC2をaccess VLAN 7にする。設定済みのR1でVLAN間の通信を処理できる。
- D.
! SW1 configure terminal interface Gi0/1 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 exit interface Gi0/2 switchport mode trunk switchport trunk allowed vlan 7,9,108 end ! SW2 configure terminal interface Gi0/1 switchport mode trunk switchport trunk allowed vlan 7 exit interface Gi0/7 switchport mode trunk switchport trunk allowed vlan 5,7,9,108 end Native VLAN 5を設定せず、PC2向けSW2 Gi0/1もtrunkになっている。VLAN 7のaccess接続を作れない。