Try   HackMD

Cisco Packet Tracer 基本操作

tags: tutorials

下載網址(下載7.3.1以後的版本):
https://www.computernetworkingnotes.com/ccna-study-guide/download-packet-tracer-for-windows-and-linux.html

Youtube詳細教學影片:
Cisco Packet Tracer 靜態路由設定
Cisco Packet Tracer 網路基本設置(Telnet 遠端連線)
Cisco Packet Tracer DHCP, HTTP, DNS Server設定 1
Cisco Packet Tracer DHCP, HTTP, DNS Server設定 2

  • 目錄
    • Cisco Packet Tracer使用環境
    • 基礎網路建置

了解Cisco Packet Tracer使用環境

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

網路組成元件

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

基礎網路建置

  1. 選取一台PC、一台Switch(2950-24)、一台Server、一台Router(2911)

  2. 使用Copper Straight-Through將設備連接

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

    • Router(GigabitEthernet 0/0) 連接 Switch(FastEthernet 0/1)
    • Switch(FastEthernet 0/2) 連接 Pc (FastEthernet 0)
    • Switch(FastEthernet 0/3) 連接 Server (FastEthernet 0)
  3. 設定網路設備內容

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

設定PC

  1. 點擊PC,切換至Desktop分頁,再點擊 IP Configuration
  2. 設定介面
    • IPv4 Address : 192.168.1.1
    • Subnet Mask : 255.255.255.0
    • Default Gateway : 192.168.1.254 (Router的IP)
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More →
  3. 查看是否設定完成
    • 回到工作區,將滑鼠移到設備上,出現該設備目前設定的視窗

      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More →

    • 切換至Desktop分頁,再點擊Command Prompt,輸入指令 ipconfig 查看

      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More →

      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More →

設定Server

  1. 點擊Server,切換至Desktop分頁,再點擊 IP Configuration

  2. 設定介面

    • IPv4 Address : 192.168.1.2
    • Subnet Mask : 255.255.255.0
    • Default Gateway : 192.168.1.254 (Router的IP)
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More →
  3. 查看是否設定完成
    同PC方法

設定Router

  • 第一種方法 : 透過圖形化介面設定

    1. 點擊Router,切換至Config分頁
    2. 設定介面GigabitEthernet 0/0:
      • IPv4 Address : 192.168.1.254
      • Subnet Mask : 255.255.255.0
    3. 勾選Port Status “On”
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More →
  • 第二種方法 : 透過指令設定
    點選CLI分頁

指令含意 指令
1.進入特權模式 Router> enable
2.進入全域模式 Router# configure terminal
3.進入介面 Router(config)#interface GigabitEthernet0/0
4.設定介面 Router(config-if)# ip address IP Subnet Mask
5.打開介面 Router(config-if)#no shutdown
6.寫入設定 Router(config-if)#do write
​​​​- IP : 192.168.1.254
​​​​- Subnet Mask : 255.255.255.0

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

設定Switch

點選CLI分頁

指令含意 指令
1.進入特權模式 Switch> enable
2.進入全域模式 Switch# configure terminal
3.進入介面 Switch(config)#interface vlan 1
4.設定介面 Switch(config-if)# ip address IP Subnet Mask
5.打開介面 Switch(config-if)#no shutdown
6.寫入設定 Switch(config-if)#do write
7.離開此層設定 Switch(config-if)#exit
8.設定預設閘道 Switch(config)#ip default-gateway 閘道
9.寫入設定 Switch(config)#do write
10.檢查連線是否有通 Switch(config) #do ping 閘道
​​​​- IP : 192.168.1.253
​​​​- Subnet Mask : 255.255.255.0
​​​​- 閘道 : 192.168.1.254

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

檢查連線

  • PC ping Server

    • 切換至Desktop分頁,再點擊Command Prompt,輸入指令 ping 192.168.1.2 (Server的IP)
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More →

      成功從PC ping到 Server
  • Server ping PC

    • 切換至Desktop分頁,再點擊Command Prompt,輸入指令 ping 192.168.1.1 (PC的IP)
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More →

      成功從Server ping到 PC
  • Router ping PC

    • 點選CLI分頁,輸入指令 ping 192.168.1.1 (PC的IP)
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More →

      成功從Router ping到 PC

完成基礎網路建置