LoginSignup
10
10

More than 5 years have passed since last update.

vlanの設定、削除

Last updated at Posted at 2015-01-22

参考

やること

  1. Gi0/21にvlan41を設定
  2. Gi0/21にvlan41を解除
  3. vlan41を削除

状態確認

vlan41がないことを確認。
2960G#show vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Gi0/1, Gi0/2, Gi0/3, Gi0/4, Gi0/5
                                                Gi0/6, Gi0/7, Gi0/8, Gi0/9, Gi0/10
                                                Gi0/11, Gi0/12, Gi0/13, Gi0/14
                                                Gi0/15, Gi0/16, Gi0/17, Gi0/18
                                                Gi0/19, Gi0/20, Gi0/21, Gi0/22, Po1
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0
1003 tr    101003     1500  -      -      -        -    -        0      0
1004 fdnet 101004     1500  -      -      -        ieee -        0      0
1005 trnet 101005     1500  -      -      -        ibm  -        0      0

Remote SPAN VLANs
------------------------------------------------------------------------------


Primary Secondary Type              Ports
------- --------- ----------------- ------------------------------------------

1. Gi0/21にvlan41を設定

vlan41にGi0/21を追加
2960G#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
2960G(config)#interface Gi0/21
2960G(config-if)#switchport access vlan 41
% Access VLAN does not exist. Creating vlan 41
2960G(config-if)#^Z
vlan41にGi0/21が追加されたことを確認
  2960G#show vlan

  VLAN Name                             Status    Ports
  ---- -------------------------------- --------- -------------------------------
  1    default                          active    Gi0/1, Gi0/2, Gi0/3, Gi0/4, Gi0/5
                                                  Gi0/6, Gi0/7, Gi0/8, Gi0/9, Gi0/10
                                                  Gi0/11, Gi0/12, Gi0/13, Gi0/14
                                                  Gi0/15, Gi0/16, Gi0/17, Gi0/18
                                                  Gi0/19, Gi0/20, Gi0/22, Po1
+ 41   VLAN0041                         active    Gi0/21
  1002 fddi-default                     act/unsup
  1003 token-ring-default               act/unsup
  1004 fddinet-default                  act/unsup
  1005 trnet-default                    act/unsup

  VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
  ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
  1    enet  100001     1500  -      -      -        -    -        0      0
+ 41   enet  100041     1500  -      -      -        -    -        0      0
  1002 fddi  101002     1500  -      -      -        -    -        0      0
  1003 tr    101003     1500  -      -      -        -    -        0      0
  1004 fdnet 101004     1500  -      -      -        ieee -        0      0
  1005 trnet 101005     1500  -      -      -        ibm  -        0      0

  Remote SPAN VLANs
  ------------------------------------------------------------------------------


  Primary Secondary Type              Ports
  ------- --------- ----------------- ------------------------------------------

2. Gi0/21にvlan41を解除

vlan41からGi0/21を解除
2960G#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
2960G(config)#interface Gi0/21
2960G(config-if)#no switchport access vlan 41
2960G(config-if)#^Z
vlan確認
  2960G#show vlan

  VLAN Name                             Status    Ports
  ---- -------------------------------- --------- -------------------------------
  1    default                          active    Gi0/1, Gi0/2, Gi0/3, Gi0/4, Gi0/5
                                                  Gi0/6, Gi0/7, Gi0/8, Gi0/9, Gi0/10
                                                  Gi0/11, Gi0/12, Gi0/13, Gi0/14
                                                  Gi0/15, Gi0/16, Gi0/17, Gi0/18
                                                  Gi0/19, Gi0/20, Gi0/21, Gi0/22, Po1
+ 41   VLAN0041                         active
  1002 fddi-default                     act/unsup
  1003 token-ring-default               act/unsup
  1004 fddinet-default                  act/unsup
  1005 trnet-default                    act/unsup

  VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
  ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
  1    enet  100001     1500  -      -      -        -    -        0      0
+ 41   enet  100041     1500  -      -      -        -    -        0      0
  1002 fddi  101002     1500  -      -      -        -    -        0      0
  1003 tr    101003     1500  -      -      -        -    -        0      0
  1004 fdnet 101004     1500  -      -      -        ieee -        0      0
  1005 trnet 101005     1500  -      -      -        ibm  -        0      0

  Remote SPAN VLANs
  ------------------------------------------------------------------------------


  Primary Secondary Type              Ports
  ------- --------- ----------------- ------------------------------------------

3. vlan41を削除

vlan41の削除
2960G#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
2960G(config)#no vlan 41
2960G(config)#no int Vlan41
2960G(config)#^Z

確認

確認
2960G#show vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Gi0/1, Gi0/2, Gi0/3, Gi0/4, Gi0/5
                                                Gi0/6, Gi0/7, Gi0/8, Gi0/9, Gi0/10
                                                Gi0/11, Gi0/12, Gi0/13, Gi0/14
                                                Gi0/15, Gi0/16, Gi0/17, Gi0/18
                                                Gi0/19, Gi0/20, Gi0/21, Gi0/22, Po1
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0
1003 tr    101003     1500  -      -      -        -    -        0      0
1004 fdnet 101004     1500  -      -      -        ieee -        0      0
1005 trnet 101005     1500  -      -      -        ibm  -        0      0

Remote SPAN VLANs
------------------------------------------------------------------------------


Primary Secondary Type              Ports
------- --------- ----------------- ------------------------------------------

その他確認コマンド

show interfaces port-channel 1 switchport
show interfaces trunk
show spanning-tree vlan 1

show etherchannel protocol
show etherchannel load-balance
show etherchannel detail
10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10