1 / 46

網路概論 第五章、 TCP/IP 命令

網路概論 第五章、 TCP/IP 命令. Implementing TCP/IP in the Command Line. 參考書. 蔡逸舟、鐘俊仁、沂岡 (2011) , MTA Exam 98-366 Networking Fundamentals 官方認證教材, 碁峰資訊股份有限公司, ISBN: 9789862762448 (書號 CMS100600 ) 林文恭、吳進北、吳惠雯 (2011) , MTA Exam 98-366 網路管理與應用認證實戰寶典, 碁峰資訊股份有限公司, ISBN: 9789862761915 (書號 CMS101700 ).

yitta
Télécharger la présentation

網路概論 第五章、 TCP/IP 命令

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 網路概論第五章、TCP/IP 命令 Implementing TCP/IP in the Command Line

  2. 參考書 蔡逸舟、鐘俊仁、沂岡(2011), MTA Exam 98-366 Networking Fundamentals 官方認證教材, 碁峰資訊股份有限公司, ISBN: 9789862762448 (書號 CMS100600) 林文恭、吳進北、吳惠雯(2011), MTA Exam 98-366 網路管理與應用認證實戰寶典, 碁峰資訊股份有限公司, ISBN: 9789862761915 (書號 CMS101700)

  3. 大綱 • 使用基本TCP/IP 命令 • 使用命令提示字元 • cd • cls • dir • ipconfig • ping • 使用進階TCP/IP 命令 • netstat • nbtstat • tracert • nslookup • ftp • telnet • netsh • route • net

  4. 目標 Objectives

  5. 命令提示字元Command Prompt • Windows命令提示字元是微軟版的命令列界面(Command-Line Interface,CLI) • 以系統管理員 Administrator 的身份執行命令提示字元 • 提昇模式(Elevated Mode) • 使用者帳戶控制 • User Account Control,UAC • Windows Vista 開始出現的機制

  6. Command Prompt Windows 命令不區分英文字母大小寫 有疑問的時候,以 /?取得說明 按 ,檔案名稱自動拼字 快速編輯模式,按滑鼠右鍵複製貼上 先前輸入過的命令

  7. 如何叫出命令提示字元? 按 +R 輸入 cmd 按

  8. 以系統管理員的身份執行命令提示字元 按 輸入 cmd 按 + +

  9. 命令 CD • Change Directory 切換目錄 • 目錄為樹狀結構Tree Structure • 階層式Hierarchical • 格式CD 目標目錄 • 絕對路徑 Absolute Path • 從根目錄(\)開始指定 • 相對路徑 Relative Path • 相對於目前目錄向下或向上 • .. 代表上一層目錄 • . 代表目前目錄(可省略)

  10. 進入 C:\Windows 進入 D: 槽,預設為 根目錄 進入 D:\Icons,相對路徑 絕對路徑 相對路徑 上一層目錄,相對路徑 回 C: 槽,還是在 C:\Windows 先切換到 D:\Icons 然後再進入 D: 槽

  11. 命令 CLS Clear Screen 清除畫面

  12. 命令 DIR • DIRECTORY • 作用: • 列出目錄內容 • 常用 • DIR • DIR /W

  13. IPCONFIG 和 PING 用 IPCONFIG 和 PING 分析 IPv4 和 IPv6 網路的問題 IPCONFIG 顯示 IP 設定資訊 PING 測試網路是否通暢

  14. IPCONFIG 顯示 IP 設定資訊

  15. IPCONFIG /ALL

  16. IPCONFIG /RELEASE 釋放 IP 配置

  17. IPCONFIG /RENEW 重新配置 IP

  18. PING乒乓球的『乒』 TTL: Time To Live 存活時間 1 ms = 0.001 秒 測試網路連通性 網際網路控制消息協議(Internet Control Message Protocol 縮寫 ICMP)

  19. PING PING -T 永不停止 PING -L 設定封包大小(預設 32 Bytes) PING -N 設定測試次數(預設4次)

  20. TRACERTTrace Route 追溯路由

  21. PathPing 結合 PING 和 TraceRT 反應比較慢,要耐心等一下

  22. NbtStat Command • nbtstat顯示 NetBIOS over TCP/IP 的統計資料 • NetBIOS 出現於 1980 年代 • OSI Session Layer • 電腦間互相分享資源 • NetBIOS over TCP/IP • 以 TCP 與 UDP 傳送 NetBIOS 協定

  23. NbtStat命令

  24. NbtStat命令

  25. NetStat Command 列出目前連線統計資料

  26. NetStat命令

  27. NetStat命令

  28. NSLookup命令 • nslookup查詢 DNS 伺服器 • 網域名稱  IP 位址

  29. FTP 命令 • File Transfer Protocol • 檔案傳輸協定 • 傳輸大型檔案 • 續傳功能 • 替代工具 • IE • Filezilla • 常用指令 • DIR 列出目錄內容 • CD 切換目錄 • GET 下載檔案 • PUT 上傳檔案

  30. Telnet Command • telnet 登入遠端電腦 • 過時的工具 • 通訊過程沒有加密,容易被側錄 • 新的方式是 SSH • 可以用來測試/除錯 • telnet cc.cust.edu.tw 25

  31. NetSh命令 • Netsh • 列出本機網路組態 • 修改本機網路組態

  32. Route 命令 route DELETE 0.0.0.0 route add 10.56.0.0 mask 255.255.0.0 10.56.3.254 metric 1 • route print • 列出路由表 • netstat -r • 設定路由

  33. Route 命令

  34. Routing

  35. Net 命令 • 最複雜的網路指令之一 • 控制各項網路資源

  36. 總結 • Windows 除了優秀的圖形化介面之外,也有強大的指令集提供系統管理功能

More Related