1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

portfast設定をしないと最大50秒間通信ができなくなるよ

Last updated at Posted at 2014-11-23
  • oは接続されている状態、xは切断されている状態を表す。
正常時
c2960_a_Gi1/0/20 o---o server_eth0
c2960_b_Gi1/0/20 o---o server_eth1 
  • server_eth0server_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秒間通信ができなくなる。
これはネットワーク機器がループ防止のために

  1. ブロッキング
  2. リスニング
  3. ラーニング
  4. フォワーディング
    の順番で状態が移行し、それが最大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
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?