コンフィギュレーションモードでVLAN10を設定

パケットトレーサーにて練習

Switch>enable ※特権EXECモードへ

⓪事前状態を確認

Switch#show vlan brief

①VLANコンフィギュレーションモードでVLAN10に名前をつける

Switch#configure terminal  ※グローバルコンフィギュレーションモードへ

Switch(config)#vlan 10

Switch(config-vlan)#name Sales1

Switch(config-vlan)#exit

Switch(config)#exit

※exitしないと設定は反映されない

Switch>en
Switch>enable 
Switch#show vlan brief


VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20
                                                Fa0/21, Fa0/22, Fa0/23, Fa0/24
                                                Gig0/1, Gig0/2
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active    
Switch#vlan database
            ^
% Invalid input detected at '^' marker.
	
Switch#
Switch#vlan database  ※vlan database コマンドは 古いCisco IOSで使われていたコマンド
            ^
% Invalid input detected at '^' marker.
	
Switch#conf
Switch#conf
Switch#configure t
Switch#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name Sales1
Switch(config-vlan)#exit   ※exitしないと設定は反映されない
Switch(config)#exit     ※exitしないと設定は反映されない 
Switch#
%SYS-5-CONFIG_I: Configured from console by console


Switch#show vla
Switch#show vlan b
Switch#show vlan brief 


VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20
                                                Fa0/21, Fa0/22, Fa0/23, Fa0/24
                                                Gig0/1, Gig0/2
10   Sales1                           active    
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active    
Switch#
よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!

コメント

コメントする

目次