トランク接続



●L2SW間のトランク接続

 参照
 トランク接続(タグVLAN)

 構成図は下記のとおりです。

trunk01.png

 トランク接続はVLAN110、120のみとします。
catalyst2960-1#show run
!
(途中省略)
!
interface FastEthernet0/5
 switchport access vlan 110
 spanning-tree portfast
!
interface FastEthernet0/6
 switchport access vlan 110
 spanning-tree portfast
!
interface FastEthernet0/7
 switchport access vlan 110
 spanning-tree portfast
!
interface FastEthernet0/8
 switchport access vlan 110
 spanning-tree portfast
!
interface FastEthernet0/9
 switchport access vlan 120
 spanning-tree portfast
!
interface FastEthernet0/10
 switchport access vlan 120
 spanning-tree portfast
!
interface FastEthernet0/11
 switchport access vlan 120
 spanning-tree portfast
!
interface FastEthernet0/12
 switchport access vlan 120
 spanning-tree portfast
!
(途中省略)
!
interface GigabitEthernet0/1
 switchport trunk allowed vlan 110,120
 switchport mode trunk
!
 同様にcatalyst2960-2も設定します。  トランク接続を確認します。
catalyst2960-1#show interfaces gigabitEthernet 0/1 trunk 
Port        Mode             Encapsulation  Status        Native vlan
Gi0/1       on               802.1q         trunking      1
Port        Vlans allowed on trunk
Gi0/1       110,120
Port        Vlans allowed and active in management domain
Gi0/1       110,120
Port        Vlans in spanning tree forwarding state and not pruned
Gi0/1       110,120