(1)VLAN情報が表示されない
Switch#show run
vlan 825-826
!
vlan 827
name test
いつもは表示される、こんなVLAN設定が表示されない
→vtp設定が「server」、「client」モードになっているかも
■確認コマンド
Switch#show vtp status
VTP Operating Mode : Server
-------------------------------------------------
■トランスペアレントモードに設定する
Switch(config)#vtp mode transparent
Setting device to VTP Transparent mode for VLANS.
***** ----- ***** ----- *****
(2)インタフェース設定にVLANが表示されない
Switch#show run
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
media-type rj45
negotiation auto
通信を許可するvlanが表示されない
■確認コマンド
Switch#show int trunk
Port Mode Encapsulation Status Native vlan
Gi0/1 on 802.1q trunking 1
Port Vlans allowed on trunk
Gi0/1 1-4094
Port Vlans allowed and active in management domain
Gi0/1 1,825-827
Port Vlans in spanning tree forwarding state and not pruned
Gi0/1 1,825-827
トランクポートとしてvlan1-4094を通す設定にしているから表示されなかった。
通したいvlanのみ明確に指定する必要がありました。
■Switch(config-if)#switchport trunk allowed vlan 825,826
Switch(config-if)#do sh run int gi0/1
interface GigabitEthernet0/1
switchport trunk allowed vlan 825,826 ←表示されるようになった