レス
前レス
元トピ
次レスタイトル
Re: Re: Re: 問題ID: 18022について
フォーラム
最強WEB問題集CCNP SWITCH
投稿ユーザ(投稿日)
(2016/9/7)本文
そういうもの、というと役に立たないので。
例えば以下のようなコンフィグと接続をベースに。
接続
[code]
SW1 g0/1 --- g0/2 SW2 g0/1 --- g0/1 SW3
[/code]
コンフィグ
[code]
SW1:
vlan 31,51
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
interface Vlan31
ip address 192.168.31.1 255.255.255.0
no shutdown
interface Vlan51
ip address 192.168.51.1 255.255.255.0
no shutdown
SW2:
vlan 31
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
interface GigabitEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
interface Vlan31
ip address 192.168.31.2 255.255.255.0
no shutdown
SW3:
vlan 51
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
interface Vlan51
ip address 192.168.51.3 255.255.255.0
no shutdown
[/code]
SW2のshow interfaces trunkみると一目瞭然なのですが
■vlan 51作成前
[code]
SW2#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gi0/1 on 802.1q trunking 1
Gi0/2 on 802.1q trunking 1
Port Vlans allowed on trunk
Gi0/1 1-4094
Gi0/2 1-4094
Port Vlans allowed and active in management domain
Gi0/1 1,31
Gi0/2 1,31
Port Vlans in spanning tree forwarding state and not pruned
Gi0/1 1,31
Gi0/2 1,31
[/code]
作成後
[code]
SW2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW2(config)#vlan 51
SW2(config-vlan)#end
SW2#
%SYS-5-CONFIG_I: Configured from console by console
SW2#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gi0/1 on 802.1q trunking 1
Gi0/2 on 802.1q trunking 1
Port Vlans allowed on trunk
Gi0/1 1-4094
Gi0/2 1-4094
Port Vlans allowed and active in management domain
Gi0/1 1,31,51
Gi0/2 1,31,51
Port Vlans in spanning tree forwarding state and not pruned
Gi0/1 1,31
Gi0/2 1,31
[/code]
自分の理解できるVLANになったのでトランクインターフェースを通せるようになる、ってことですね。
逆に、理解できないVLANがセットされたフレームはどのVLANやどのインターフェースに送ってよいかわからないので、どこにも渡せない(=通信できない)となるわけです。
レス一覧
前レス
元トピ
次レス
Copyright (c) 2010
Ping-t All rights reserved.