1 實驗二 基本網路命令的使用 ping 、 traceroute 、 ipconfig 、 arp 與 netstat 的使用.

Slides:



Advertisements
Similar presentations
布林代數的應用--- 全及項(最小項)和全或項(最大項)展開式
Advertisements

第七章 抽樣與抽樣分配 蒐集統計資料最常見的方式是抽查。這 牽涉到兩個問題: 抽出的樣本是否具有代表性?是否能反應出母體的特徵?
HSR 課程介紹. 指定用書 Health Services Research Method Leiyu Shi 2008.
校園線上技術服務之使用意圖與 建置成功因素的研究 2011/04/22 淡江大學 資管所碩二 李依倫 鄭佳容.
組員:淡江大學 資管碩一 何永欣 淡江大學 資管碩一 鄭奕騰 1.
Mobile IP Lab TA: 洪敏書
Technical Information Services of NCCU 政 大 資 訊 設 備 ( Powered by NCCU Student Ambassadors ) 劉 謙 Harrison 游逸凡 Rudy 黃予涵 Shahad.
SIP Mobiity TA: 洪敏書
在 Ad-hoc 網路中實現點對 點發送訊息與廣播訊息. 檔案下載  範例程式可在下列網址取得  DEMO 程式可在下列網址取得
1 第一章 Word 的基本觀念 內容概要: Word 的特色 啟動與離開 Word 的方法 滑鼠游標與外型的介紹 基本操作 Word 視窗法則 使用 Word 遭遇問題時, 應如何利用軟體特 性而獲得輔助解說.
1 Web of Science 利用指引 單元二 瀏覽與處理查詢結果. 2 瀏覽檢索結果 查出的結果,預設以時間排列, 使用者可改變結果的排列方式: 還可以依被引用次數、相關度、 第一作者、刊名、出版年等排序 回到前先查的結果畫面 點選想看資料的完整書目 本館訂購範圍的期刊 全文,便可直接連結.
1 Advanced Chemical Engineering Thermodynamics Appendix BK The Generalized van der Waals Partition Function.
亂數產生器安全性評估 之統計測試 SEC HW7 姓名:翁玉芬 學號:
1 Web of Science 利用指引 逢甲大學圖書館 參考服務組 單元五 存檔或輸出.
EBSCO 資料庫. 基本檢索畫面 問題: 想看哈佛商業評論 點選 [ 出版品 ] 輸入 [ 期刊名稱 ]
1 真理大學運輸管理學系 實務實習說明 目錄  實務實習類別  實務實習條例  校外實習單位  實務實習成績計算方式  校外實習甄選 / 自洽申請流程  附錄:相關表格.
Graph V(G 1 )={0, 1, 2, 3, 4, 5, 6, 7, 8, 9} E(G 1 )={(0, 2), (0, 3), (1, 4), (2, 3), (2, 5), (2, 6), (3, 6), (3, 7), (4, 7), (5, 6), (5,
STAT0_sampling Random Sampling  母體: Finite population & Infinity population  由一大小為 N 的有限母體中抽出一樣本數為 n 的樣 本,若每一樣本被抽出的機率是一樣的,這樣本稱 為隨機樣本 (random sample)
1 實驗一 網路線的製作 一對一 (Straight-Through) 與 扭接 (Crossover) 的網路線製作.
1. 假設以下的敘述為一未提供 “ 捷徑計算 ” 能力的程式段,試用程 式設計的技巧,使此敘述經此改 寫的動作後,具有與 “ 捷徑計算 ” 之 處理方法相同之處理模式。 if and then E1 else E2 endif.
真理大學航空運輸管理學系 實務實習說明. 實務實習部份 實務實習 校內實習 校外實習 實習時數必須在 300 小時 ( 含 ) 以上才承認 校內實習時數及實習成績。 二個寒假 各一個月 暑假兩個月.
1 網路同步學習 如何使用中山大學管理學院知識管理平台 愷中 製作. 2 如何登入中山大學網路學習平台 1. 首先, 請輸入 2. 點選申請帳號, 依照螢幕所示, 輸入個人資訊.
Department of Air-conditioning and Refrigeration Engineering/ National Taipei University of Technology 模糊控制設計使用 MATLAB 李達生.
1 單元三 查詢結果的引用分析 Web of Science 利用指引 查看出版及被引用情況 在查詢結果的清單中,可以瀏覽近 20 年來查詢主題出版和被引用的情況。
南投縣社區大學 Excel 實務應用入門 講師 : 林泉成
長訊科技 EVRCOM Voice Mail System 使用者操作說明及流程. 自動總機 -- 來電語音轉接服務流程 ( 範例流程 )
實驗三 Ethereal 的使用 介紹 Ethereal 、 抓取 packets. 實驗設備與材料 PC 1 台 自己是 Server 是 安裝 Ethereal 、 WinSCP 或 WS-FTP 、 Putty 或 Netterm 。
資料處理 汪群超 2 這一年將學習到什麼? 網際網路:你在哪裡?瞭解你的角色、駕馭網路 。 Web 、 FTP 、 、 Proxy 、 Database Servers 記錄你的學習歷程、展現學習成果: Homepage 、 PowerPoint.
第 1 章 PC 的基本構造. 本章提要 PC 系統簡介 80x86 系列 CPU 及其暫存器群 記憶體: Memory 80x86 的分節式記憶體管理 80x86 的 I/O 結構 學習組合語言的基本工具.
Network Connections ★★★☆☆ 題組: Contest Archive with Online Judge 題號: Network Connections 解題者:蔡宗翰 解題日期: 2008 年 10 月 20 日 題意:給你電腦之間互相連線的狀況後,題.
: The largest Clique ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11324: The largest Clique 解題者:李重儀 解題日期: 2008 年 11 月 24 日 題意: 簡單來說,給你一個 directed.
最新計算機概論 第 5 章 系統程式. 5-1 系統程式的類型 作業系統 (OS) : 介於電腦硬體與 應用軟體之間的 程式,除了提供 執行應用軟體的 環境,還負責分 配系統資源。
Chapter 20 塑模動態觀點:狀態圖 Statechart Diagram. 學習目標  說明狀態圖的目的  定義狀態圖的基本記號  展示狀態圖的建構  定義活動、內部事件及遞延事件的狀態 圖記號.
: Fast and Easy Data Compressor ★★☆☆☆ 題組: Problem Set Archive with Online Judge 題號: 10043: Fast and Easy Data Compressor 解題者:葉貫中 解題日期: 2007 年 3.
行政院國家科學委員會工程技術發展處自動化學門 * 試以國立成功大學製造工程研究所 鄭芳田教授 產學合作計畫 : 智慧預測保養系統之設計與實作 成果報告盤點為範例 國科會工程處專題計畫成果典藏 自動化學門成果報告盤點範例.
真理大學航空服務管理學系 實務實習說明. 實務實習部份 實務實習 校內實習 校外實習 實習時數必須在 300 小時 ( 含 ) 以上才承認 校內實習時數及實習成績。 二個寒假 各一個月 暑假兩個月.
: Ahoy, Pirates! ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11402: Ahoy, Pirates! 解題者:李重儀 解題日期: 2008 年 8 月 26 日 題意:有一個海盜島有 N 個海盜,他們的編號 (id)
實驗六 WLAN 的設定 WLAN card 的設定. Reference Wireless Local Area Network by Dr.Morris Chang.
:Nuts for nuts..Nuts for nuts.. ★★★★☆ 題組: Problem Set Archive with Online Judge 題號: 10944:Nuts for nuts.. 解題者:楊家豪 解題日期: 2006 年 2 月 題意: 給定兩個正整數 x,y.
資料結構實習-一 參數傳遞.
實驗三 sniffer 的使用 介紹 sniffer 、 抓取 packets. 實驗設備與材料 PC 2 台 自己是 對方是 安裝 sniffer 與相關軟體.
1 Introduction to Java Programming Lecture 2: Basics of Java Programming Spring 2008.
計算機概論 演算法與程式語言 李明山.
: A-Sequence ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10930: A-Sequence 解題者:陳盈村 解題日期: 2008 年 5 月 30 日 題意: A-Sequence 需符合以下的條件, 1 ≤ a.
Section 4.2 Probability Models 機率模式. 由實驗看機率 實驗前先列出所有可能的實驗結果。 – 擲銅板:正面或反面。 – 擲骰子: 1~6 點。 – 擲骰子兩顆: (1,1),(1,2),(1,3),… 等 36 種。 決定每一個可能的實驗結果發生機率。 – 實驗後所有的實驗結果整理得到。
演算法 8-1 最大數及最小數找法 8-2 排序 8-3 二元搜尋法.
845: Gas Station Numbers ★★★ 題組: Problem Set Archive with Online Judge 題號: 845: Gas Station Numbers. 解題者:張維珊 解題日期: 2006 年 2 月 題意: 將輸入的數字,經過重新排列組合或旋轉數字,得到比原先的數字大,
Structural Equation Modeling Chapter 6 CFA 根據每個因素有多重指標,以減少 測量誤差並可建立問卷的構念效度 驗證性因素分析.
Chapter 10 m-way 搜尋樹與B-Tree
: Function Overloading ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11032:Function Overloading 解題者:許智祺 解題日期: 2007 年 5 月 8 日 題意:判對輸入之數字是否為.
網路介紹及其運用 講師陳炯勳. 5-2 IP 協定 ( 一 ) IP 協定運作 (1) – 網路成員:主機 (Host) 與路由器 (Router) – 路由表 – 電報傳輸運作.
概念性產品企劃書 呂學儒 李政翰.
Probability Distribution 機率分配 汪群超 12/12. 目的:產生具均等分配的數值 (Data) ,並以 『直方圖』的功能計算出數值在不同範圍內出現 的頻率,及繪製數值的分配圖,以反應出該 機率分配的特性。
: Help My Brother ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11033: Help My Brother 解題者: 呂明璁 解題日期: 2007 年 5 月 14 日.
無線通訊網路 Mac 層 TDM 通訊模式的操作與效能研究 專題生 : 林書弘、蔡逸祥、毛建翔、王政 華 指導教授 : 黃依賢.
組合語言與系統程式 軟體使用教學. 軟體下載及安裝 下載 到課程網頁下載 tw/~jiun/ 安裝 解壓縮後將 System Software 資料夾放在 D 槽 (C 槽版本放在 C 之下 )
Biological Science Database 個人化服務設定步驟. Biological Science Database 僅提供專題選 粹服務 專題選粹 (Alerts) :查詢後,提供儲存檢 索策略的功能,日後每週將符合條件的 更新資料,採 方式通知。每筆設定 最多每週可收到.
連續隨機變數 連續變數:時間、分數、重量、……
著作權所有 © 旗標出版股份有限公司 第 3 章 資料庫物件的關係. 本章提要 Access 資料庫物件的關係 Access 資料庫物件的關係 簡介 Access 的七大物件 簡介 Access 的七大物件 Access 的群組 Access 的群組.
-Artificial Neural Network- Matlab操作介紹 -以類神經網路BPN Model為例
Visual C++重點複習.
OmniFile Full Text 系列資料庫 個人化服務設定步驟. 此相關資料庫之個人化服 務只提供類似專題選粹的 服務,然無提供 mail 通知的 服務,讀者可建立個人 ID , 並儲存檢索策略,日後需 再進入該資料庫,查詢檢 索策略之新進文章。 導航目次 個人化服務說明 個人帳號密碼申請 個人化服務設定.
全國奈米科技人才培育推動計畫辦公室 中北區奈米科技K -12 教育發展中心計畫 簡 報 報告人:楊鏡堂教授 計畫執行單位:國立清華大學動力機械工程學系 計畫種子學校:教育部顧問室 94 年度奈米科技人才培育先導型計畫年度成果報告 中華民國九十四年十月十四日.
著作權所有 © 旗標出版股份有限公司 第 14 章 製作信封、標籤. 本章提要 製作單一信封 製作單一郵寄標籤.
幼兒行為觀察與記錄 第八章 事件取樣法.
第 1 章 PC 的基本構造. 本章提要 PC 系統簡介 80x86 系列 CPU 及其暫存器群 記憶體: Memory 80x86 的分節式記憶體管理 80x86 的 I/O 結構 學習組合語言的基本工具.
Chapter 12 Estimation 統計估計. Inferential statistics Parametric statistics 母數統計 ( 母體為常態或 大樣本 ) 假設檢定 hypothesis testing  對有關母體參數的假設,利用樣本資料,決定接受或 不接受該假設的方法.
Cisco Lab - Switch 大綱  Multi-LAN  VLAN  TRUNK  VTP  ACL  Port Channel  Routing  InterVLAN Routing  Static Routing  Homework.
Arparp* Displays and modifies the IP-to-Physical address translation tables used by address resolution protocol (ARP) getmacgetmac Shows the mac address(es)
Herramientas para diagnósticos. Ping USO: Ping nombre.dominio o dirección IP Options: -t Ping the specifed host until interrupted. -a Resolve addresses.
Presentation transcript:

1 實驗二 基本網路命令的使用 ping 、 traceroute 、 ipconfig 、 arp 與 netstat 的使用

2 大綱 學習目標 實驗設備與材料 背景知識 實驗步驟 實驗報告 成績計算

3 學習目標 認識網路上常用的工具程式。 學習 ipconfig 、 ping 、 traceroute 、 natstat 、 arp 等網路工具程式。 Windows 提供線上查詢服務,例如想得 到更多關於 ping 的使用方式,可以鍵入 下面命令,便可獲得更多的操作方式。

4 實驗設備與材料 Cisco 台 +Cisco 台 1 台 telnet server 四人一組為原則,以小組為單位進行實 驗與繳交實驗報告。 2-4 人 PC 1 台

5 Topology of Lab Network R3 R5R4 s0/3s0/1 e0/0 s0/2s0/0 e0/0 Telnet server

6 3 個區域網路 x/24 三台電腦的 IP address 請設為 , , x/ , , x/ , ,

7 指令 ping 用於詢問對方的主機是否存在 ipconfig 用於詢問本機所有的網路介面的 設定資訊 tracert 用於詢問到對方主機的路徑 arp 用於查表獲得同一網路上對方的主機 的 MAC address netstat 用於詢問本機所有的網路介面的 使用狀態

8 指令使用方式的 On-line Help ping.txt 與 ipconfig.txt (在 command mode 下以 ipconfig /? 命令尋求 online help ) 可用下面 I/O 轉向的方式記錄下 ping 等軟 體的使用過程 ping > aaa type aaa

9 ping 的範例 C:\>ping Pinging with 32 bytes of data: Reply from : bytes=32 time=160ms TTL=245 Reply from : bytes=32 time=60ms TTL=245 Reply from : bytes=32 time=240ms TTL=245 Reply from : bytes=32 time=80ms TTL=245 Ping statistics for : Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 60ms, Maximum = 240ms, Average = 135ms

10 ping 的用法 (1/2) Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] [[-j host-list] | [-k host-list]] [-w timeout] destination-list Options: -t Ping the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. -a Resolve addresses to hostnames. -n count Number of echo requests to send. -l size Send buffer size. -f Set Don't Fragment flag in packet.

11 ping 的用法 (2/2) Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] [[-j host-list] | [-k host-list]] [-w timeout] destination-list Options: -i TTL Time To Live. -v TOS Type Of Service. -r count Record route for count hops. -s count Timestamp for count hops. -j host-list Loose source route along host-list. -k host-list Strict source route along host-list. -w timeout Timeout in milliseconds to wait for each reply.

12 ipconfig 的範例 (1/2) C:\>ipconfig Windows 2000 IP Configuration Ethernet adapter Wireless LAN: Connection-specific DNS Suffix. : IP Address : Subnet Mask : Default Gateway : Ethernet adapter 區域連線 : Media State : Cable Disconnected

13 ipconfig 的範例 (2/2) 在 DHCP 的環境下,先使用 ipconfig /release 後, 觀察 ipconfig /all. 再用 /renew 獲得新的 IP ,以 /all 觀察.

14 ipconfig 的用法 (1/4) Windows 2000 IP Configuration USAGE: ipconfig [/? | /all | /release [adapter] | /renew [adapter] | /flushdns | /registerdns | /showclassid adapter | /setclassid adapter [classidtoset] ] adapter Full name or pattern with '*' and '?' to 'match', * matches any character, ? matches one character.

15 ipconfig 的用法 (2/4) Options /? Display this help message. /all Display full configuration information. /release Release the IP address for the specified adapter. /renew Renew the IP address for the specified adapter. /flushdns Purges the DNS Resolver cache. /registerdns Refreshes all DHCP leases and re-registers DNS names /displaydns Display the contents of the DNS Resolver Cache. /showclassid Displays all the dhcp class IDs allowed for adapter. /setclassid Modifies the dhcp class id.

16 ipconfig 的用法 (3/4) The default is to display only the IP address, subnet mask and default gateway for each adapter bound to TCP/IP. For Release and Renew, if no adapter name is specified, then the IP address leases for all adapters bound to TCP/IP will be released or renewed. For SetClassID, if no class id is specified, then the classid is removed.

17 ipconfig 的用法 (4/4) Examples: > ipconfig... Show information. > ipconfig /all... Show detailed information > ipconfig /renew... renew all adapaters > ipconfig /renew EL*... renew adapters named EL.... > ipconfig /release *ELINK?21*... release all matching adapters, eg. ELINK-21, myELELINKi21adapter.

18 tracert 的範例 C:\>tracert Tracing route to over a maximum of 30 hops 1 <10 ms 10 ms <10 ms <10 ms 10 ms <10 ms h seed.net.tw [ ] 3 70 ms 70 ms 70 ms ms 70 ms 70 ms R seed.net.tw [ ] 5 70 ms 70 ms 70 ms R58-97.seed.net.tw [ ] 6 71 ms 80 ms 70 ms R seed.net.tw [ ] 7 70 ms 70 ms 71 ms R seed.net.tw [ ] 8 70 ms 70 ms 80 ms ms 80 ms 81 ms ms 81 ms 80 ms ms 70 ms 80 ms ms 280 ms 171 ms Trace complete.

19 tracert 的用法 Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name Options: -d Do not resolve addresses to hostnames. -h maximum_hops Maximum number of hops to search for target. -j host-list Loose source route along host-list. -w timeout Wait timeout milliseconds for each reply.

20 arp 的範例 Address Resolution Protocol Interface: on Interface 0x Internet Address Physical Address Type d0-b7-23-eb-2f dynamic fb-a dynamic 使用 arp –d 先刪除所有 table 中的資訊, 在用 ping 找任何一台機器, 之後再觀察 arp –a 。

21 arp 的用法 (1/2) Usage: ARP -s inet_addr eth_addr [if_addr] ARP -d inet_addr [if_addr] ARP -a [inet_addr] [-N if_addr] Options: -a Displays current ARP entries by interrogating the current protocol data. If inet_addr is specified , the IP and Physical addresses for only the specified computer are displayed. If more than one network interface uses ARP , entries for each ARP table are displayed. -g Same as -a. inet_addr Specifies an internet address. -N if_addr Displays the ARP entries for the network interface specified by if_addr.

22 arp 的用法 (2/2) -D Deletes the host specified by inet_addr. -S Adds the host and associates the Internet address inet_addr with the Physical address eth_addr. The Physical address is given as 6 hexadecimal bytes separated by hyphens. The entry is permanent. Eth_addr Specifies a physical address. If_addr If present , this specifies the Internet address of the interface whose address translation table should be modified. If not present , the first applicable interface will be used.

23 netstat 的範例 (1/2) C:\>netstat -e Interface Statistics Received Sent Bytes Unicast packets Non-unicast packets Discards 0 0 Errors 0 0 Unknown protocols 0

24 netstat 的範例 (2/2) 使用 netstat –a –n | more 看 active connections 資料, | more 代表一次看一 頁, -n 代表用數字表示。 1. 看 netstat –e 各個 options 2. 嘗試建立新連線. 可以使用 telnet (note: 135 是網路芳臨 ) 。 3. 看 netstat 會發現多兩筆資料, one output , one input 。

25 netstat 的用法 (1/2) Usage: NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval] Options: -a Displays all connections and listening ports.(Server-side connections are normally not shown). -e Displays Ethernet statistics. This may be combined with the -s option. -n Displays addresses and port numbers in numerical form. -p proto Shows connections for the protocol specified by proto; proto may be tcp or udp. If used with the -s option to display per-protocol statistics , proto may be tcp , udp , or ip. -r Displays the contents of the routing table.

26 netstat 的用法 (2/2) -s Displays per-protocol statistics. By default , statistics are shown for TCP , UDP and IP; the -p option may be used to specify a subset of the default. Interval Redisplays selected statistics , pausing interval seconds between each display. Press CTRL+C to stop redisplaying statistics. If omitted , netstat will print the current configuration information once.

27 個人實驗步驟 (1/2) 1. 設定 your PC ,並繪製出實驗室架構。 Ex: IP address 、 Network Mask 、 Default Gateway… 2. 使用 arp 指令,找出其他在同一個 LAN 上的 PC 的 MAC address 。

28 個人實驗步驟 (2/2) 3. 使用 netstat 指令,觀察網路使用狀況。 netstat –s –p ICMP  ping  netstat –s –p ICMP netstat –s –p TCP  使用 putty 連到  輸入多次 netstat –s –p TCP  結束 putty 連線  netstat –s –p TCP netstat –s –p UCP  telnet pcs.eed.yzu.edu.tw  netstat –s –p UCP 4. 使用 tracert ,繪製出實驗室架構。

29 分組實驗步驟 1. 請利用 ping 、 traceroute 繪製出學校的 網路架構。並列舉說明繪製網路架構的 指令使用方式。 3. 設計實驗以說明 ping 、 traceroute 、 ipconfig 、 arp 與 netstat 所有 option 的 用法及每個欄位的意義。 Ex: 利用 netstat –s 觀察 IP 、 ICMP 、 TCP 、 UDP 的使用統計數據並說明之。例如 ping 前後的 ICMP 的使用狀況。

30 成績計算 個人實驗部分當場交,做為一次實驗成 績。 每組繪製學校網路架構,做為一次實驗 成績。 依完整程度給分 同組同學將有相同的分數。