802.1Q trunkとEtherChannelの復旧1 / 5
Trunkの交渉と転送条件
802.1QはVLANをtagで識別する。DTPへ対応するCatalystではdynamic desirableがtrunk交渉を開始し、dynamic autoは応答する。auto同士ではtrunkを形成しない。
| コマンド | 作用・条件 |
|---|---|
switchport mode trunk |
static trunkはこのコマンドで明示し、DTPを使わない相手には必要に応じswitchport nonegotiateで交渉を止める。 |
interface GigabitEthernet1/0/1
switchport mode trunk
switchport trunk native vlan 99
switchport trunk allowed vlan 10,20,99
switchport nonegotiate
対向側もVLANのtagとnativeの扱い、許可VLANを合わせる。native mismatchではuntagged frameの分類がずれ、STPのPVID inconsistency等で転送が止まる場合もある。allowed listの一致だけで、VLANの存在・active・STP forwardingまで保証しない。
| コマンド | 作用・条件 |
|---|---|
show interfaces trunk |
trunkとして動作するport、allowed、allowed and active、forwarding and not prunedなどの段階を読む。 |
show interfaces switchport |
administrative/operational modeと交渉を調べる。 |
allowed vlan 10,20はlistの置換で、既存へ30だけ足す場合はallowed vlan add 30などの指定を使う。