- SW-A の VLAN1 を shutdown して、VLAN2 に 192.168.2.1/24 を設定し、有効化しなさい。
SW-A# conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW-A(config)# int vlan 1
SW-A(config-if)# shut
SW-A(config-if)# int vlan2
SW-A(config-if)# ip add 192.168.2.1 255.255.255.0
SW-A(config-if)# no shut
SW-A(config-if)# ^Z
SW-A#
これで管理 VLAN が VLAN1 から VLAN2 に移ります。
- SW-A で、sh interfaces vlan 1 コマンドを実行しなさい。
SW-A# sh int vlan 1
Vlan1 is administratively down, line protocol is down
Hardware is EtherSVI, address is 0024.900a.0000 (bia 0024.900a.0000)
Internet address is 192.168.1.1/24
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
・
・
・
- SW-A で、sh interfaces vlan 2 コマンドを実行しなさい。
SW-A# sh int vlan2
Vlan2 is down, line protocol is down
Hardware is EtherSVI, address is 0024.900a.0000 (bia 0024.900a.0000)
Internet address is 192.168.2.1/24
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
・
・
・
物理層もデータリンク層も down しています。
- SW-A で、sh vlan brief コマンドを実行しなさい。
SW-A# sh 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
Gi0/1
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
SW-A#
VLAN2 がありませんので、VLAN2 を作成します。
- VLAN データベースモードで、SW-A に VLAN2 を作成しなさい。
SW-A# vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
SW-A(config)# vlan 2
VLAN 2 added:
Name: VLAN0002
SW-A(vlan)# exit
APPLY completed.
Exiting....
SW-A#
VLAN データベースモードを終了する時は exit コマンドを使います。
Ctrl+Z では設定が保存されないので気を付けてください。
- SW-A で、sh vlan brief コマンドを実行しなさい。
SW-A# sh 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
Gi0/1
2 VLAN0002 active ← VLAN2
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
SW-A#
VLAN2 ができました。
- SW-A で、sh interfaces vlan 2 コマンドを実行しなさい。
SW-A# sh int vlan2
Vlan2 is up, line protocol is down
Hardware is EtherSVI, address is 0024.900a.0000 (bia 0024.900a.0000)
Internet address is 192.168.2.1/24
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
・
・
・
物理層は up しましたが、データリンク層は down しています。
- 現在 VLAN1 に所属している PC-A を VLAN2 に変更しなさい。
SW-A# conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW-A(config)# int f0/1
SW-A(config-if)# switchport access vlan 2
SW-A(config-if)# ^Z
SW-A#
- SW-A で、sh interfaces vlan 2 コマンドを実行しなさい。
SW-A# sh int vlan2
Vlan2 is up, line protocol is up
Hardware is EtherSVI, address is 0024.900a.0000 (bia 0024.900a.0000)
Internet address is 192.168.2.1/24
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
・
・
・
物理層もデータリンク層も up しました。