0
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 3 years have passed since last update.

ネットワーク構築(EtherChannel編)

Posted at

目的

最近机上の勉強ばかりで、手を動かせていないので
コマンドを忘れている恐れがあるためネットワーク構築してみます

使用ツール

GNS3
IOS: c2600-adventerprisek9-mz.124-17
手元にあるCiscoルーターの2651から抜いたIOSのため古い・・・

ネットワーク構成図

ちょうどCCNAの勉強をしていて、実際に手を動かしてみたくなったので
今日は、試験範囲でもあるEtherChannelの検証をしてみようと思います。

そして作ってみた構成図は以下
EtherChannel.jpeg

構築してみる

設定したい内容は下記
1.特権モードから移行
2.複数設定するのは手間なのでレンジで一気に設定
3.トランクの設定
4.手動でEtherChannel設定

※まずはコマンド省略無しでESW1の設定

ESW1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
ESW1(config)#interface range fastEthernet 1/1 - 2
ESW1(config-if-range)#switchport mode trunk
ESW1(config-if-range)#channel-group 1 mode on
ESW1(config-if-range)#end
ESW1#

これでESW1の設定投入が終わったので状態確認していきます。

ESW1#show etherchannel summary
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        R - Layer3      S - Layer2
        U - in use
Group Port-channel  Ports
-----+------------+-----------------------------------------------------------
1     Po1(SU)     Fa1/1(P)   Fa1/2(P)

ここで確認したいのはfa1/1と1/2がPortchannelに参加できているかどうかです。

見てみると Fa1/1(P) Fa1/2(P) となっていて(P)は参加できているステータスの表示なので
設定できている確認ができました。

次はESW2の設定です。

ESW2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
ESW2(config)#int ran f1/1 - 2
ESW2(config-if-range)#sw mo tr
ESW2(config-if-range)#
*Mar  1 00:45:55.613: %DTP-5-TRUNKPORTON: Port Fa1/1-2 has become dot1q trunk
ESW2(config-if-range)#cha 1 mo on
Creating a port-channel interface Port-channel1
ESW2(config-if-range)#
ESW2(config-if-range)#end
ESW2#

ESW1同様に状態を確認してみます。

ESW2#sho eth su
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        R - Layer3      S - Layer2
        U - in use
Group Port-channel  Ports
-----+------------+-----------------------------------------------------------
1     Po1(SU)     Fa1/1(P)   Fa1/2(P)

見るところは同じですね。
(P)であることを確認できたので設定完了となります。

実験

検証環境ならではの実験をしたいと思います。

内容はというと、片っぽをshutdownしちゃいます。
(恐ろしすぎて現場では絶対できない・・・)

ESW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
ESW1(config)#int f1/1
ESW1(config-if)#shu
ESW1(config-if)#

この状態で状況確認してみます。

ESW1#sho eth su
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        R - Layer3      S - Layer2
        U - in use
Group Port-channel  Ports
-----+------------+-----------------------------------------------------------
1     Po1(SU)     Fa1/1(D)   Fa1/2(P)

f1/1をshutdownしたので(D)になりました。
Flags: を見てわかる通りdownの意味ですね。

まとめ

Qiita初投稿の内容はEtherChannelになりました。
久しぶりに構築してみると、やはり楽しいですね。
今回は小規模構築となりましたが、今後ルーティングだったりしていくと
規模を大きくできるのかな、と思います。
今はCCNAを取得するために学習中なので、基本的に範囲に被る技術で構築をしつつ
知識をつけていきたいと思います。
インプットしたものをアウトプットしていけたらと思います。

以上です。

0
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
0
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?