- oは接続されている状態、xは切断されている状態を表す。
正常時
c2960_a_Gi1/0/20 o---o server_eth0
c2960_b_Gi1/0/20 o---o server_eth1
-
server_eth0
とserver_eth1
はチーミング設定済み。
課題
eth0を抜いた場合
c2960_a_Gi1/0/20 o---x server_eth0
c2960_b_Gi1/0/20 o---o server_eth1
この時、pingは1秒も落ちない。
すかさず以下を行う。
eth0を挿してeth1を抜く
c2960_a_Gi1/0/20 o---o server_eth0
c2960_b_Gi1/0/20 o---x server_eth1
するとserverは最大50秒間
通信ができなくなる。
これはネットワーク機器がループ防止のために
- ブロッキング
- リスニング
- ラーニング
- フォワーディング
の順番で状態が移行し、それが最大50秒かかるためである。
解決方法
- portfastは接続先がサーバ機器であることを確認しておくこと!
- ネットワーク機器が接続先の場合は設定してはいけません。
portfast設定
# conf t
(config)#interface Gi1/0/20
(config-if)#spanning-tree portfast
(config-if)#^Z
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION%Portfast has been configured on GigabitEthernet1/0/20 but will only
have effect when the interface is in a non-trunking mode.
このメッセージは警告なだけで無視して良い。
show spanning-tree