ほぼ全ての機能を新サイトへ移行しました

switchport trunk allowed anchor.png

機種
Switch(K)
モード
Interface(M)
デフォルト
-
IOS
12.0(7)XE
試験レベル
BCMSN
構文
switchport trunk allowed vlan [add | remove] VLAN番号
使用例
●"switchport trunk allowed vlan add"コマンドでトランクリンクにVLANを追加する。
Switch#show interfaces trunk

Port        Mode         Encapsulation  Status        Native vlan
Fa0/12      on           802.1q         trunking      1

Port      Vlans allowed on trunk
Fa0/12      1-59,61-4094

Port        Vlans allowed and active in management domain
Fa0/12      1,70,80,90,100

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/12      1,70,80,90,100
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int fa0/12
Switch(config-if)#switchport trunk allowed vlan add ?
  WORD  VLAN IDs of disallowed VLANS when this port is in trunking mode


Switch(config-if)#switchport trunk allowed vlan add 60 ?
  <cr>

Switch(config-if)#switchport trunk allowed vlan add 60*1
Switch(config-if)#end
Switch#show interfaces trunk

Port        Mode         Encapsulation  Status        Native vlan
Fa0/12      on           802.1q         trunking      1

Port      Vlans allowed on trunk
Fa0/12      1-4094

Port        Vlans allowed and active in management domain
Fa0/12      1,60,70,80,90,100

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/12      1,60,70,80,90,100
Switch#
*1 トランクリンクからVLAN60を追加する

●"switchport trunk allowed vlan remove"コマンドでトランクリンクからVLANを削除する。

Switch#show interfaces trunk

Port        Mode         Encapsulation  Status        Native vlan
Fa0/12      on           802.1q         trunking      1

Port      Vlans allowed on trunk
Fa0/12      1-4094

Port        Vlans allowed and active in management domain
Fa0/12      1,60,70,80,90,100

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/12      1,60,70,80,90,100
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int fa0/12
Switch(config-if)#switchport trunk allowed vlan remove ?
  WORD  VLAN IDs of disallowed VLANS when this port is in trunking mode


Switch(config-if)#switchport trunk allowed vlan remove 60 ?
  <cr>

Switch(config-if)#switchport trunk allowed vlan remove 60*2
Switch(config-if)#end
Switch#show interfaces trunk

Port        Mode         Encapsulation  Status        Native vlan
Fa0/12      on           802.1q         trunking      1

Port      Vlans allowed on trunk
Fa0/12      1-59,61-4094

Port        Vlans allowed and active in management domain
Fa0/12      1,70,80,90,100

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/12      1,70,80,90,100
Switch#
*2 トランクリンクからVLAN60を削除する
解説
該当インターフェースのトランクリンク内にあるVLANをトランクリンクへ追加や削除を行う事が出来ます。
Tips
参考リンク
ネットワークエンジニアとして VLAN Trunk
Google検索
タグ
Trunk

トップ   凍結 差分 バックアップ 複製 名前変更 リロード   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom
Counter: 21288, today: 1, yesterday: 1
最終更新: 2009-08-04 (火) 16:03:21 (JST) (5385d) by staff_mita
Copyright (c) 2020 Ping-t All rights reserved.
ログイン
ユーザ名 or E-Mailアドレス:

パスワード:







プレミアムコンテンツ

受験チケット(割引)

Contact

LPI-Japan Logo

LPI Logo