- RootBridgeを決める(ブリッジプライオリティ+MAC)
- ルートからのパスコストでルートポートを決める
- パスコストが等しいときは上流のブリッジプライオリティが低いほうを選択
- ブリッジプライオリティも等しい(同じSWに接続)場合、上流のポートプライオリティが低いパスを選択
2012年7月30日月曜日
spanning-tree
802.1q-Tunneling
802.1q-Tunnelingの際にL2プロトコルを透過させることができる
SW2(config-if)#l2protocol-tunnel ?
cdp Cisco Discovery Protocol
drop-threshold Set drop threshold for protocol packets
lldp Link Layer Discovery Protocol
point-to-point point-to-point L2 Protocol
shutdown-threshold Set shutdown threshold for protocol packets
stp Spanning Tree Protocol
vtp Vlan Trunking Protocol
interface FastEthernet2/0/13
switchport access vlan 100
switchport mode dot1q-tunnel
l2protocol-tunnel cdp
no cdp enable
802.1q-Tunnelingするとダブルタグになる、MTUをタグ1個分大きくする必要がある
SW2(config)#system mtu 1504
Cat3750では上記コマンドにより即時反映されるが、
SW2(config)#do sh int fa 2/0/16
FastEthernet2/0/16 is up, line protocol is up (connected)
Hardware is Fast Ethernet, address is 0025.b49c.b612 (bia 0025.b49c.b612)
MTU 1504 bytes, BW 100000 Kbit, DLY 100 usec,
Cat3550では再起動を求められる(即時反映されない)
SW3(config)#system mtu 1504
Changes to the System MTU will not take effect until the next reload is done.
SW3(config)#do sh int fa 0/16
FastEthernet0/16 is up, line protocol is up (connected)
Hardware is Fast Ethernet, address is 0011.20ab.3e10 (bia 0011.20ab.3e10)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
EtherChannelなど複数ポートをトンネルする場合、トンネル用のVLANは1ポート毎別にする必要がある?
L3 Ether Channel
物理インタフェースをスイッチポートからルーテッドポートに変更してから
channel-group コマンドで設定する
Rack1SW2(config-if)#do sh eth sum
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
M - not in use, minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 2
Number of aggregators: 2
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
12 Po12(SU) LACP Fa2/0/13(P) Fa2/0/14(P) Fa2/0/15(P)
24 Po24(RU) LACP Fa2/0/19(P) Fa2/0/20(P) Fa2/0/21(P)
channel-group コマンドで設定する
Rack1SW2(config-if)#do sh eth sum
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
M - not in use, minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 2
Number of aggregators: 2
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
12 Po12(SU) LACP Fa2/0/13(P) Fa2/0/14(P) Fa2/0/15(P)
24 Po24(RU) LACP Fa2/0/19(P) Fa2/0/20(P) Fa2/0/21(P)
Ether Channelの確認
Rack1SW1#sh etherchannel summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 3
Number of aggregators: 3
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
12 Po12(SU) - Fa0/13(P) Fa0/14(P) Fa0/15(P)
13 Po13(SU) - Fa0/16(P) Fa0/17(P) Fa0/18(P)
14 Po14(SU) - Fa0/19(P) Fa0/20(P) Fa0/21(P)
pruning vlan
vlan 7 をprune 対象から外す。
Rack1SW1(config-if-range)#switchport trunk pruning vlan 1-6,8-1001
vlan 7 が設定されてなくてもprune されなくなる
2012年7月29日日曜日
VTP利用時のTrunkポート
VTPを利用しない場合、Trunkポートでは全てのVLANを許可するが、
VTPを利用する場合、Trunkポートで許可するVLANはVTP Serverで作成する必要がある
Rack1SW2(config)#do sh int trunk
Port Mode Encapsulation Status Native vlan
Fa2/0/13 auto n-isl trunking 1
Fa2/0/14 auto n-isl trunking 1
Fa2/0/15 auto n-isl trunking 1
Port Vlans allowed on trunk
Fa2/0/13 1-4094
Fa2/0/14 1-4094
Fa2/0/15 1-4094
Port Vlans allowed and active in management domain
Fa2/0/13 1,5,7-10,22,43,58,67,79,146
Fa2/0/14 1,5,7-10,22,43,58,67,79,146
Fa2/0/15 1,5,7-10,22,43,58,67,79,146
Port Vlans in spanning tree forwarding state and not pruned
Fa2/0/13 5,7-10,22,43,58,67,79,146
Fa2/0/14 none
Fa2/0/15 none
VTPを利用する場合、Trunkポートで許可するVLANはVTP Serverで作成する必要がある
Rack1SW2(config)#do sh int trunk
Port Mode Encapsulation Status Native vlan
Fa2/0/13 auto n-isl trunking 1
Fa2/0/14 auto n-isl trunking 1
Fa2/0/15 auto n-isl trunking 1
Port Vlans allowed on trunk
Fa2/0/13 1-4094
Fa2/0/14 1-4094
Fa2/0/15 1-4094
Port Vlans allowed and active in management domain
Fa2/0/13 1,5,7-10,22,43,58,67,79,146
Fa2/0/14 1,5,7-10,22,43,58,67,79,146
Fa2/0/15 1,5,7-10,22,43,58,67,79,146
Port Vlans in spanning tree forwarding state and not pruned
Fa2/0/13 5,7-10,22,43,58,67,79,146
Fa2/0/14 none
Fa2/0/15 none
Trunkポートにできない
Trunkポートにするのに手こずった...。
interface FastEthernet2/0/13
switchport trunk native vlan 146
Rack1SW2(config-if-range)#switchport mode trunk
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.
先にTrunkプロトコル(ISL or dot1.q)を指定しないと設定できない
Rack1SW2(config-if-range)#switchport trunk encapsulation dot1q
Rack1SW2(config-if-range)#switchport mode trunk
Rack1SW2(config-if-range)#switchport nonegotiate
nativ vlan
SW間で同じVLANを利用する場合 native vlan を一致させる必要がある。
CatalystではCDPにより native vlan の不一致を検出できる
02:50:45: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/13 (146), with Rack1SW2 FastEthernet2/0/13 (1).
02:50:45: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/14 (146), with Rack1SW2 FastEthernet2/0/14 (1).
02:50:45: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/15 (146), with Rack1SW2 FastEthernet2/0/15 (1).
CatalystではCDPにより native vlan の不一致を検出できる
02:50:45: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/13 (146), with Rack1SW2 FastEthernet2/0/13 (1).
02:50:45: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/14 (146), with Rack1SW2 FastEthernet2/0/14 (1).
02:50:45: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/15 (146), with Rack1SW2 FastEthernet2/0/15 (1).
DTP
一方のSWで switchport mode dynamic desirable もう一方のSWで dynamic auto
■trunkプロトコルを指定しない場合
ack1SW1#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/13 desirable n-isl trunking 1
Rack1SW2#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa2/0/13 auto n-isl trunking 1
trunkプロトコルを指定する場合(ISLを指定しネゴシエーションを行わない)
Rack1SW1(config)#int range fa 0/13 - 21
Rack1SW1(config-if-range)#switchport trunk encapsulation isl
■Rack1SW1#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/13 desirable isl trunking 1
Rack1SW2#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa2/0/13 auto n-isl trunking 1
■trunkプロトコルを指定しない場合
ack1SW1#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/13 desirable n-isl trunking 1
Rack1SW2#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa2/0/13 auto n-isl trunking 1
trunkプロトコルを指定する場合(ISLを指定しネゴシエーションを行わない)
Rack1SW1(config)#int range fa 0/13 - 21
Rack1SW1(config-if-range)#switchport trunk encapsulation isl
■Rack1SW1#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/13 desirable isl trunking 1
Rack1SW2#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa2/0/13 auto n-isl trunking 1
AutoMDI/MDI-X
CatalystでAutoMDI/MDI-Xのサポートを確認するコマンド
■Cat3560
Rack1SW1#sh int fa 0/1 transceiver properties
Name : Fa0/1
Administrative Speed: auto
Administrative Duplex: auto
Administrative Auto-MDIX: on
Administrative Power Inline: N/A
Operational Speed: auto
Operational Duplex: auto
Operational Auto-MDIX: on
■Cat3550
Rack1SW3#sh int fa 0/1 transceiver properties
Diagnostic Monitoring Data is not available.
Name : Fa0/1
Administrative Speed: auto
Administrative Duplex: auto
Administrative Auto-MDIX: N/A
Administrative Power Inline: N/A
Operational Speed: auto
Operational Duplex: auto
Operational Auto-MDIX: N/A
自宅LabはCat3560,3750,3550,3550の4台構成なので、全てストレートケーブルを利用するとCat3550間のI/FだではLinkUPしない。
2012年1月22日日曜日
IEWB Vol1 NM16ESW vs Cat3560?
5.15 EIGRP Unequal Cost Load Balancing
の解説を見て気付いた。
Catalyst3560?とNM16ESWではVLAN Interface の BW と DLY が異なるようだ。
NM16ESW→BW:100000, DLY:100usec
Cat3560?→BW:1000000, DLY:10usec
GNS3向けに修正した Basic EIGRP Routing initial configurations のSW1~4の
VLAN Interface のBW, DLY を修正する必要あり
2012年1月7日土曜日
GNS3でINE WB Vol1 メモ
- INE から sample config を入手
- sample config のGNS3 用 net ファイルを編集
- image file , config の path を修正
- INE WB の initial config を編集
- 全機器のfaポートをautoからspeed 100, duplex full へ変更(NM16ESWポート同士を接続をするポートはauto のままでOK)
- SW1~4はCatalystではなくC3725のNM16ESWとなるため、sample config に含まれている initial config を編集して利用
- ポート番号がGNS3用になっているので WB initial config を編集するより楽
- SW2-SW4間のL3 port-channelは 1ポート利用で
no switchport としてIPを設定 - no switchportでのルーテッドポートは利用できないのでポートVLANを利用する
- DTPないので switchport encap dot1q, swithport mode trunk とする→いらない
- RおよびBBのI/F 番号を net ファイルに合わせて修正
- 最初に起動した際に、VTP,VLAN設定をする
- 追加したVLANを忘れないよう注意する
登録:
コメント (Atom)