基本網(wǎng)絡命令和域的使用
實驗二 基本網(wǎng)絡命令和域的使用一、 實驗目的生熟悉驗證網(wǎng)絡層及應用層的多個協(xié)議的工作過程;熟悉利用活動目錄服務組建和管理域的技術,進一步認識Windows 網(wǎng)絡操作系統(tǒng)。二、 實驗原理1、 通過微軟的
實驗二 基本網(wǎng)絡命令和域的使用
一、 實驗目的
生熟悉驗證網(wǎng)絡層及應用層的多個協(xié)議的工作過程;熟悉利用活動目錄服務組建和管理域的技術,進一步認識Windows 網(wǎng)絡操作系統(tǒng)。
二、 實驗原理
1、 通過微軟的活動目錄服務可以組建域,對加入域的計算機及域中的帳號和組進行集
中式的管理。
三、 實驗環(huán)境
1、 兩人一組,每組兩臺計算機,至少有一臺安裝了Windows Server 2003,并且該操作
系統(tǒng)可以訪問Windows Server 2003安裝盤中的i386目錄;
2、 使用的操作系統(tǒng)能夠在計算機重啟后保持重啟前的數(shù)據(jù)(不保護)。
四、 實驗內(nèi)容
Ping 、ARP 、Route Print(Netstat –r )、Netstat -a –n –o 、Nslookup 等網(wǎng)絡命令的用法;域的安裝和配置,工作站加入域和使用域。
五、 實驗方法和步驟
1、 Ping 的用法
Ping 127.0.0.1
Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.
C:Documents and SettingsStudent桌面>ping 127.0.0.1
Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0 loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:Documents and SettingsStudent桌面>
Ping 本地IP
Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.
,C:Documents and SettingsStudent桌面>ping 172.16.1.78
Pinging 172.16.1.78 with 32 bytes of data:
Reply from 172.16.1.78: bytes=32 time<1ms TTL=64
Reply from 172.16.1.78: bytes=32 time<1ms TTL=64
Reply from 172.16.1.78: bytes=32 time<1ms TTL=64
Reply from 172.16.1.78: bytes=32 time<1ms TTL=64
Ping statistics for 172.16.1.78:
Packets: Sent = 4, Received = 4, Lost = 0 (0 loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:Documents and SettingsStudent桌面>
Ping 同一節(jié)點下的其他機器
Ping 網(wǎng)關(代理服務器)
Ping DNS服務器(校園網(wǎng)其它服務器WWW 、Mail 、FTP )
Ping Internet主機的地址、域名
2、 跟蹤路由
Tracert {Linux:Traceroute}
Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.
C:Documents and SettingsStudent桌面>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.
C:Documents and SettingsStudent桌面>
Path ping
3、 查看ARP 緩存
arp –a (ping 過的或是其他方式訪問過的一般就會緩存下來)
Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.
C:Documents and SettingsStudent桌面>arp -a
,Interface: 172.16.1.79 --- 0x2
Internet Address Physical Address Type
172.16.0.1 00-19-21-1f-96-eb static
172.16.1.119 00-19-21-1f-94-ad dynamic
C:Documents and SettingsStudent桌面>
4、 查看本地路由表
Route Print
netstat –r
Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.
C:Documents and SettingsStudent桌面>netstat -r
Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 19 21 1f 9a cf ...... Realtek RTL8139 Family PCI Fast Ethernet NIC - 數(shù)據(jù)包計劃程序微型端口
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 172.16.0.1 172.16.1.79 20 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 172.16.0.0 255.255.0.0 172.16.1.79 172.16.1.79 20 172.16.1.79 255.255.255.255 127.0.0.1 127.0.0.1 20 172.16.255.255 255.255.255.255 172.16.1.79 172.16.1.79 20 224.0.0.0 240.0.0.0 172.16.1.79 172.16.1.79 20 255.255.255.255 255.255.255.255 172.16.1.79 172.16.1.79 1 Default Gateway: 172.16.0.1
===========================================================================
Persistent Routes:
None
C:Documents and SettingsStudent桌面>
5、 查看協(xié)議統(tǒng)計信息和當前TCP/IP連接狀態(tài)
Netstat -a –n –o
,Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.
C:Documents and SettingsStudent桌面>Netstat -a
Active Connections
Proto Local Address Foreign Address State
TCP S1-079:smtp S1-079:0 LISTENING TCP S1-079:http S1-079:0 LISTENING TCP S1-079:epmap S1-079:0 LISTENING TCP S1-079:https S1-079:0 LISTENING TCP S1-079:microsoft-ds S1-079:0 LISTENING TCP S1-079:1027 S1-079:0 LISTENING TCP S1-079:1028 S1-079:0 LISTENING TCP S1-079:1373 182.236.164.31:http ESTABLISHED TCP S1-079:1374 182.236.164.31:http ESTABLISHED TCP S1-079:1375 182.236.164.31:http ESTABLISHED TCP S1-079:1376 182.236.164.31:http ESTABLISHED TCP S1-079:1378 182.236.164.31:http ESTABLISHED TCP S1-079:1379 182.236.164.31:http ESTABLISHED TCP S1-079:1380 182.236.164.31:http ESTABLISHED TCP S1-079:1381 182.236.164.31:http ESTABLISHED TCP S1-079:1382 182.236.164.31:http ESTABLISHED TCP S1-079:1384 182.236.164.31:http ESTABLISHED UDP S1-079:microsoft-ds *:*
UDP S1-079:1061 *:*
UDP S1-079:1084 *:*
UDP S1-079:1574 *:*
UDP S1-079:3456 *:*
UDP S1-079:61440 *:*
UDP S1-079:ntp *:*
UDP S1-079:1036 *:*
UDP S1-079:1068 *:*
UDP S1-079:1370 *:*
UDP S1-079:1900 *:*
UDP S1-079:ntp *:*
UDP S1-079:1900 *:*
UDP S1-079:17107 *:*
UDP S1-079:17207 *:*
C:Documents and SettingsStudent桌面>
6、 測試DNS
Ping 域名(Ping 外網(wǎng)域名結果只要顯示IP 地址即說明DNS 沒有問題)
,Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.
C:Documents and SettingsStudent桌面>ping www.sina.com
Pinging polaris.sina.com.cn [202.108.33.60] with 32 bytes of data:
Reply from 202.108.33.60: bytes=32 time=134ms TTL=241
Reply from 202.108.33.60: bytes=32 time=86ms TTL=241
Reply from 202.108.33.60: bytes=32 time=85ms TTL=241
Request timed out.
Ping statistics for 202.108.33.60:
Packets: Sent = 4, Received = 3, Lost = 1 (25 loss),
Approximate round trip times in milli-seconds:
Minimum = 85ms, Maximum = 134ms, Average = 101ms
C:Documents and SettingsStudent桌面>
ns lookup {Linux:dig/whois}
Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.
C:Documents and SettingsStudent桌面>nslookup
*** Can't find server name for address 210.43.0.8: Non-existent domain
DNS request timed out.
timeout was 2 seconds.
*** Can't find server name for address 210.43.0.18: Timed out
*** Default servers are not available
Default Server: UnKnown
Address: 210.43.0.8
>
7、 域控制器的安裝和配置
i. 開始-運行-dcpromo ,或在配置您的服務器中啟動域控制器安裝向?qū)?ii. 安裝配置DNS 和域
iii. 在域控制器或加入域的其它計算機上設置共享
iv. 在域用戶和組工具中添加域用戶和組,設置域用戶對共享資源的訪問權限
8、 工作站加入域和使用域
i. 在系統(tǒng)屬性中設置計算機隸屬于安裝的域,通過域管理員驗證后成功加入域 ii. 通過域帳號登錄域(而不是登錄本機),訪問域中的共享資源
iii. 在加入域的其它計算機上通過域帳號登錄,訪問域中的共享資源
iv. 體會域管理的優(yōu)點。
六、 實驗報告要求
,內(nèi)容包含以下幾項:實驗題目、實驗目的、實驗環(huán)境、實驗內(nèi)容與完成情況、實驗中出現(xiàn)的問題、對問題的解決方案、完成思考題、實驗總結。