资源描述
实验(实习)报告
实验(实习)名称 常用网络命令 实验(实习)日期 得分 指导教师
专业 年级 班次 姓名 学号
1、实验目的
(1)掌握常用网络命令的使用方法;
(2)熟悉和掌握网络管理、网络维护的基本内容和方法
2、实验内容
练习以下网络命令的使用
(1)ARP
(2)Ipconfig
(3)Nbtstat
(4)net
(5)netstat
(7)Route
(8)Tracert
3、实验结果
(1)ARP
C:\Documents and Settings\nuist>arp -a
Interface: 192.168.11.41 --- 0x10006
Internet Address Physical Address Type
192.168.11.1 00-09-73-00-1a-69 dynamic
192.168.11.37 00-09-73-00-68-0a dynamic
192.168.11.110 00-09-73-00-34-70 dynamic
C:\Documents and Settings\nuist>arp -s
Displays and modifies the IP-to-Physical address translation tables
address resolution protocol (ARP).
ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr]
-a Displays current ARP entries by interrogating the cu
protocol data. If inet_addr is specified, the IP an
addresses for only the specified computer are displa
more than one network interface uses ARP, entries fo
table are displayed.
-g Same as -a.
inet_addr Specifies an internet address.
-N if_addr Displays the ARP entries for the network interface s
by if_addr.
-d Deletes the host specified by inet_addr. inet_addr m
wildcarded with * to delete all hosts.
-s Adds the host and associates the Internet address in
with the Physical address eth_addr. The Physical ad
given as 6 hexadecimal bytes separated by hyphens. T
is permanent.
eth_addr Specifies a physical address.
if_addr If present, this specifies the Internet address of t
interface whose address translation table should be
If not present, the first applicable interface will
Example:
> arp -s 157.55.85.212 00-aa-00-62-c6-09 .... Adds a static ent
> arp -a .... Displays the arp
C:\Documents and Settings\nuist>arp -a
Interface: 192.168.11.41 --- 0x10006
Internet Address Physical Address Type
192.168.11.1 00-09-73-00-1a-69 dynamic
192.168.11.37 00-09-73-00-68-0a dynamic
192.168.11.110 00-09-73-00-34-70 dynamic
C:\Documents and Settings\nuist>arp -d
(2)Ipconfig
C:\Documents and Settings\nuist>ipconfig
Windows IP Configuration
Ethernet adapter VMware Network Adapter VMnet8:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.249.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter VMware Network Adapter VMnet1:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.91.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter 本地连接 2:
Media State . . . . . . . . . . . : Media disconnected
Ethernet adapter 本地连接3
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.11.41
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.11.1
C:\Documents and Settings\nuist>ipconfig/all
Windows IP Configuration
Host Name . . . . . . . . . . . . : ZS303-19
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter VMware Network Adapter VMnet8:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter
VMnet8
Physical Address. . . . . . . . . : 00-50-56-C0-00-08
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.249.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter VMware Network Adapter VMnet1:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter
VMnet1
Physical Address. . . . . . . . . : 00-50-56-C0-00-01
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.91.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter 本地连接 2:
Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Broadcom 440x 10/100 Integrated
roller
Physical Address. . . . . . . . . : 00-1D-09-02-EF-CC
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast
rnet NIC #2
Physical Address. . . . . . . . . : 00-09-73-80-6F-F6
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.11.41
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.11.1
DHCP Server . . . . . . . . . . . : 192.168.11.1
DNS Servers . . . . . . . . . . . : 202.195.224.100
Lease Obtained. . . . . . . . . . : 2010年10月20日 13:43:09
Lease Expires . . . . . . . . . . : 2010年10月20日 21:43:09
(3)Nbtstat
(4)net
C:\Documents and Settings\nuist>net send * hello everyone
消息已经送到域 WORKGROUP 。
(5)netstat
C:\Documents and Settings\nuist>netstat
Active Connections
Proto Local Address Foreign Address State
TCP ZS303-19:2266 m15-:http CLOSE_WAIT
(6)ping
C:\Documents and Settings\nuist>arp -a
No ARP Entries Found
C:\Documents and Settings\nuist>ping 192.168.11.1
Pinging 192.168.11.1 with 32 bytes of data:
Reply from 192.168.11.1: bytes=32 time<1ms TTL=128
Reply from 192.168.11.1: bytes=32 time<1ms TTL=128
Reply from 192.168.11.1: bytes=32 time<1ms TTL=128
Reply from 192.168.11.1: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.11.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 Settings\nuist>ping 192.168.11.37
Pinging 192.168.11.37 with 32 bytes of data:
Reply from 192.168.11.37: bytes=32 time<1ms TTL=128
Reply from 192.168.11.37: bytes=32 time<1ms TTL=128
Reply from 192.168.11.37: bytes=32 time<1ms TTL=128
Reply from 192.168.11.37: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.11.37:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Documents and Settings\nuist>arp -a
Interface: 192.168.11.41 --- 0x10006
Internet Address Physical Address Type
192.168.11.1 00-09-73-00-1a-69 dynamic
192.168.11.37 00-09-73-00-68-0a dynamic
(7)Route
C:\Documents and Settings\nuist>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 50 56 c0 00 08 ...... VMware Virtual Ethernet Adapter for VMnet8
0x3 ...00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter for VMnet1
0x10005 ...00 1d 09 02 ef cc ...... Broadcom 440x 10/100 Integrated Controller
0x10006 ...00 09 73 80 6f f6 ...... Realtek RTL8139 Family PCI Fast Ethernet NIC
#2
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.11.1 192.168.11.41 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.11.0 255.255.255.0 192.168.11.41 192.168.11.41 20
192.168.11.41 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.11.255 255.255.255.255 192.168.11.41 192.168.11.41 20
192.168.91.0 255.255.255.0 192.168.91.1 192.168.91.1 20
192.168.91.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.91.255 255.255.255.255 192.168.91.1 192.168.91.1 20
192.168.249.0 255.255.255.0 192.168.249.1 192.168.249.1 20
192.168.249.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.249.255 255.255.255.255 192.168.249.1 192.168.249.1 20
224.0.0.0 240.0.0.0 192.168.11.41 192.168.11.41 20
224.0.0.0 240.0.0.0 192.168.91.1 192.168.91.1 20
224.0.0.0 240.0.0.0 192.168.249.1 192.168.249.1 20
255.255.255.255 255.255.255.255 192.168.11.41 192.168.11.41 1
255.255.255.255 255.255.255.255 192.168.91.1 192.168.91.1 1
255.255.255.255 255.255.255.255 192.168.249.1 192.168.249.1 1
255.255.255.255 255.255.255.255 192.168.249.1 10005 1
Default Gateway: 192.168.11.1
===========================================================================
Persistent Routes:
None
(8)Tracert
C:\Documents and Settings\nuist>tracert
Tracing route to [202.195.224.88]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms 192.168.11.1
2 1 ms <1 ms <1 ms 172.16.0.1
3 * * * Request timed out.
4 * * * Request timed out.
5 1 ms <1 ms <1 ms [202.195.224.88]
Trace complete.
1.使用Ping实用程序来测试计算机上的TCP/IP配置。
登录到Windows2000中。单击开始,然后将鼠标指针移到程序上,再移到附件上,然后单击命令提示符。
在命令提示窗口键入ping x.x.x.x(实际主机的IP地址)。
问题1:发送了多少数据包?4接受了多少数据包?4丢失了多少数据包?0
问题2:TCP/IP工作正常吗?正常
2. 获得计算机的名称和IP地址。
在命令提示窗口键入hostname(获取计算机名)。
在命令提示窗口键入ping 计算机(其中计算机是用hostname获得的主机名称)。
问题3:你的计算机的主机名称是什么?ZS305-20
问题4:你的计算机的IP地址是什么?172.16.1.93 --- 0x10006
问题5:还有别的方法或命令获得计算机的名称和IP地址吗?输入ipconfig
3. 使用Ping实用程序测试本计算机与其它计算机的连接性能
在命令提示窗口键入ping 其他计算机(其中其他计算机代表其他同学的计算机主机名称)。
问题6:你所键入的“其他计算机”的主机名称是什么?ZS305-19
问题7:你如何知道你和此“其他计算机”可以通讯?
C:\Documents and Settings\nuist>ping ZS305-19
Pinging ZS305-19 [172.16.1.77] with 32 bytes of data:
Reply from 172.16.1.77: bytes=32 time<1ms TTL=128
Reply from 172.16.1.77: bytes=32 time<1ms TTL=128
Reply from 172.16.1.77: bytes=32 time<1ms TTL=128
Reply from 172.16.1.77: bytes=32 time<1ms TTL=128
Ping statistics for 172.16.1.77:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
4. 考察计算机上的TCP/IP配置
最小化命令提示窗口。单击开始,然后将鼠标指针移到设置上,再移到网络和拨号连接上,然后右击本地连接。单击属性。单击Internet协议(TCP/IP)。
单击属性。
问题8:你能说出你的计算机是否分配了IP地址?是如何分配的?自动获取ip地址
问题9:配置IP地址的2种方法是什么?输入ipconfig。
5. 使用Ipconfig实用程序验证计算机上的TCP/IP配置选项
关闭所有打开的窗口。重新打开命令提示窗口。在命令提示窗口键入ipconfig。
问题10:能察看你的计算机的IP地址吗?如果能,是多少?172.16.1.93
问题11:显示了什么额外的配置信息?
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 172.16.1.236
问题12:能用ipconfig人工设置IP地址吗?如果能,如何设置?能,自动获取
在命令提示窗口键入ipconfig/all。
问题13: 与步骤14的结果相比较,ipconfig/all显示了什么额外的配置信息?
Physical Address. . . . . . . . . : 00-09-73-80-70-E1
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 172.16.1.93
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 172.16.1.236
DHCP Server . . . . . . . . . . . : 172.16.1.236
DNS Servers . . . . . . . . . . . : 202.195.224.100
Lease Obtained. . . . . . . . . . : 2010年10月27日 8:06:27
Lease Expires . . . . . . . . . . : 2010年10月27日 16:06:27
问题14:你的网卡的MAC地址(physical Address)是多少?00-09-73-80-70-E1
问题15:你的计算机拥有的是哪一类地址?你的网络ID是多少?
问题16: 缺省网关(Default Gateway)与你的计算机拥有相同的网络ID吗?
6.发送网络信息。
在命令提示窗口键入net send * hello everyone。
问题17:信息是否发送成功?该命令是否可以定制消息的接收者?如何定制?
是
4、实验总结
通过这次实验了解了网络命令的使用方法,学会了网络管理的方法,增加了学习兴趣。
展开阅读全文