Cisco Packet Tracerにsign upして、以下のページからinstallします。
https://www.netacad.com/resources/lab-downloads?courseLang=ja-JP
Packet Tracer 8.2.2 MacOS 64bit
### PC2台をクロスケーブルで接続してPing確認
① PCを2台配置する
下部の【End Devices】→【PC】をクリック
作業エリアに2台ドラッグ&ドロップ
② ケーブルで接続する
下部の【Connections】を選択
黄色の【クロスケーブル(Copper Cross-Over)】を選ぶ
PC0 → FastEthernet0 をクリック
PC1 → FastEthernet0 をクリック
③ IPアドレスを設定する
PC0 をクリック →【Desktop】タブ →【IP Configuration】
IP address: 192.168.1.1
Subnet mask: 自動で 255.255.255.0 に設定される
PC1 も同様に設定
IP address: 192.168.1.2
Subnet mask: 同じく 255.255.255.0
④ Pingを実行して確認
PC0 をクリック →【Desktop】タブ →【Command Prompt】
ping 192.168.1.2 と入力して送信
Cisco Packet Tracer PC Command Line 1.0
C:\>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=1ms TTL=128
Reply from 192.168.1.2: bytes=32 time=1ms TTL=128
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
おおおおおお、本の勉強とは違って、なかなか面白い
### スイッチ2960を入れる場合
ステップ1:デバイスの配置
Packet Tracer の下部「End Devices」→「PC-PT」を選んで作業エリアに2台配置(PC0、PC1)
「Switching」→「2960」を選んで中央に1台配置(SW1)
🔹 ステップ2:ケーブル接続
左下の「Connections(雷アイコン)」をクリック
[ストレートケーブル](Copper Straight-Through) を選択
以下のように接続:
PC0 の FastEthernet0 → SW1 の FastEthernet0/1
PC1 の FastEthernet0 → SW1 の FastEthernet0/2
✅ ヒント: ポート番号(0/1、0/2)で使っているポートを確認できます。ケーブルをつなぐとLEDが緑に変わればリンクアップ成功。
🔹 ステップ3:IPアドレスの設定
PC0 をクリック → 【Desktop】タブ → 【IP Configuration】
IP Address: 192.168.1.1
Subnet Mask: 255.255.255.0(自動で入力されます)
PC1 も同様に設定
IP Address: 192.168.1.2
Subnet Mask: 255.255.255.0
💡 デフォルトゲートウェイは未設定でOK(同一セグメント内なので)
🔹 ステップ4:Pingで通信確認
PC0 をクリック → 【Desktop】 → 【Command Prompt】
以下のコマンドを入力:ping 192.168.1.2
C:\>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=1ms TTL=128
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms