计算机网络实验二 在PC机上熟悉常用网络命令实验报告

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

实验二熟悉常用的网络命令

姓名:陈津生

班级:12级数字媒体技术2班

学号:2012329700056

指导教师:张芳

1.实验目的:

学会使用常用ping ,ipconfig, nslookup, arp ,tracert等常用网络测试命令检测网络连通、了解网络的配置状态,跟踪路由诊断域名系统等相关网络问题。

2实验环境:

(1)运行windows 2000/2003/xp操作系统的PC一台

(2)每台PC机具有一块网卡,通过双绞线与局域网网相连。

(3)局域网能连接Internet

3.实验步骤:

ftp://10.16.23.2

用户名:1234567891234

密码:0123456

1、ARP: 显示和修改IP地址与物理地址之间的转换表

C:\Documents and Settings\ligong>ARP -a

Interface: 10.16.24.18 --- 0x10003

Internet Address Physical Address Type

192.168.1.3 00-00-00-00-00-00 invalid

C:\Documents and Settings\ligong>ARP -g

Interface: 10.16.24.18 --- 0x10003

Internet Address Physical Address Type

192.168.1.3 00-00-00-00-00-00 invalid

C:\Documents and Settings\ligong>ARP -d

C:\Documents and Settings\ligong>ARP -s

Displays and modifies the IP-to-Physical address translation tables used by 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 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.

-d Deletes the host specified by inet_addr. inet_addr may be

wildcarded with * to delete all hosts.

-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. Example:

> arp -s 157.55.85.212 00-aa-00-62-c6-09 .... Adds a static entry.

> arp -a .... Displays the arp table.

2、ftp:(功能就不用描述了,请参看下面的具体用法)

ftp> open 10.16.23.2

Connected to 10.16.23.2.

220 欢迎登陆计算机基础教研室FTP服务器

User (10.16.23.2:(none)): 1234567891234

331 User name okay, need password.

Password:

230 User logged in, proceed.

ftp> -v

Invalid command.

ftp> ftp -v

Invalid command.

ftp> ftp [-v]

Invalid command.

ftp> cd

Remote directory ftp !

550 /ftp: No such file or directory.

ftp> !

Microsoft Windows XP [版本 5.1.2600]

(C) 版权所有 1985-2001 Microsoft Corp.

3、Ipconfig

C:\Documents and Settings\ligong>ipconfig

Windows IP Configuration

Ethernet adapter 本地连接 2:

相关文档
最新文档