試行錯誤の結果
- 目的
- vlan設定の初歩的な理解
* やっていること 1. 1つのvlanに名前を付けている 2. ポートの範囲を指定してvlanを割り当てている 3. 割り当てたvlanを表示して確認している
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 20
Switch(config-vlan)#name vlan20
Switch(config-vlan)#end
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fast
Switch(config)#int fastEthernet
Switch(config)#int fastEthernet
Switch(config)#int fastEthernet 0/9
Switch(config-if)#
Switch(config-if)#switch
Switch(config-if)#switchport
Switch(config-if)#switchport
Switch(config-if)#switchport
Switch(config-if)#switchport mod
Switch(config-if)#switchport mode
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport mode access
Switch(config-if)#switchport mode access v
Switch(config-if)#switchport mode access vl
Switch(config-if)#switchport mode access vl
Switch(config-if)#switchport mode access vlan 10
^
% Invalid input detected at '^' marker.
Switch(config-if)#switchport mode access
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vlan 10
Switch(config-if)#end
Switch#conf t
01:55:23: %SYS-5-CONFIG_I: Configured from console by console
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int ra
Switch(config)#int range fas
Switch(config)#int range fastEthernet 0/17 - 24
Switch(config-if-range)#swi
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport mode ac
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switch
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport ac
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#
01:56:49: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to downend
Switch#
01:56:55: %SYS-5-CONFIG_I: Configured from console by console
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range fa
Switch(config)#int range fastEthernet 0/9
Switch(config)#int range fastEthernet 0/9
Switch(config)#int range fastEthernet 0/9
Switch(config)#int range fastEthernet 0/9 - 0/16
^
% Invalid input detected at '^' marker.
Switch(config)#int range fastEthernet 0/9 - 16
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#end
Switch#sh
02:01:00: %SYS-5-CONFIG_I: Configured from console by console
% Type "show ?" for a list of subcommands
Switch#sh vlan
VLAN Name Status Ports
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Gi0/1, Gi0/2
10 VLAN0010 active Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
20 vlan20 active Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - srb 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
Primary Secondary Type Ports