switchport mode private-vlan trunk secondary

モード
インターフェースモード
カテゴリー
L2スイッチング / バーチャルLAN

構文

コマンド構文

(config-if)# switchport mode private-vlan trunk secondary group <1-32>

(config-if)# no switchport mode private-vlan trunk secondary

コマンド説明

対象スイッチポートがタグ付きポート(トランクポート)として設定されている場合、プライベートVLANのセカンダリーポートとして設定し、指定したプライベートVLANのグループに所属させる。
no形式で実行した場合は、該当ポートでのプライベートVLANのセカンダリーポート設定を削除する。

パラメーター

group <1-32>
プライベートVLANグループID

使用例

awplus# configure terminal
awplus(config)# vlan database
awplus(config-vlan)# vlan 2
awplus(config-vlan)# private-vlan 2 isolated
awplus(config-vlan)# exit
awplus(config)# interface port1.1.3
awplus(config-if)# switchport mode trunk
awplus(config-if)# switchport trunk allowed vlan add 2
awplus(config-if)# switchport mode private-vlan trunk secondary group 3

注意・補足事項

本コマンドを通常形式で実行したとき、指定したプライベートVLANグループが存在していなかった場合は、該当するプライベートVLANグループが自動的に作成される。

本コマンドをno形式で実行したことにより、指定したプライベートVLANグループの所属ポート数が0になった場合は、該当するプライベートVLANグループが自動的に削除される。

コマンドツリー

関連コマンド