基本网络命令和域的使用

实验二 基本网络命令和域的使用一、 实验目的生熟悉验证网络层及应用层的多个协议的工作过程;熟悉利用活动目录服务组建和管理域的技术,进一步认识Windows 网络操作系统。二、 实验原理1、 通过微软的

实验二 基本网络命令和域的使用

一、 实验目的

生熟悉验证网络层及应用层的多个协议的工作过程;熟悉利用活动目录服务组建和管理域的技术,进一步认识Windows 网络操作系统。

二、 实验原理

1、 通过微软的活动目录服务可以组建域,对加入域的计算机及域中的帐号和组进行集

中式的管理。

三、 实验环境

1、 两人一组,每组两台计算机,至少有一台安装了Windows Server 2003,并且该操作

系统可以访问Windows Server 2003安装盘中的i386目录;

2、 使用的操作系统能够在计算机重启后保持重启前的数据(不保护)。

四、 实验内容

Ping 、ARP 、Route Print(Netstat –r )、Netstat -a –n –o 、Nslookup 等网络命令的用法;域的安装和配置,工作站加入域和使用域。

五、 实验方法和步骤

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 同一节点下的其他机器

Ping 网关(代理服务器)

Ping DNS服务器(校园网其它服务器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 - 数据包计划程序微型端口

===========================================================================

===========================================================================

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、 查看协议统计信息和当前TCP/IP连接状态

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 外网域名结果只要显示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 ,或在配置您的服务器中启动域控制器安装向导 ii. 安装配置DNS 和域

iii. 在域控制器或加入域的其它计算机上设置共享

iv. 在域用户和组工具中添加域用户和组,设置域用户对共享资源的访问权限

8、 工作站加入域和使用域

i. 在系统属性中设置计算机隶属于安装的域,通过域管理员验证后成功加入域 ii. 通过域帐号登录域(而不是登录本机),访问域中的共享资源

iii. 在加入域的其它计算机上通过域帐号登录,访问域中的共享资源

iv. 体会域管理的优点。

六、 实验报告要求

,

内容包含以下几项:实验题目、实验目的、实验环境、实验内容与完成情况、实验中出现的问题、对问题的解决方案、完成思考题、实验总结。

标签: