计算机网络实验华中科技大学,华中科技大学计算机网络实验报告.pdf

  • Post author:
  • Post category:其他


华中科技大学计算机网络实验报告.pdf

《计算机网络》

课程实验报告

姓名 院系 学号

南六楼

实验地点 实验时间 2013 年4 月21 日

计算机开放实验室

出勤、表现得分 实验报告

实验课表现 实验总分

操作结果得分 得分

实验目的:

第一次实验:

1、掌握常用网络命令的使用方法;

2、熟悉和掌握网络管理、网络维护的基本内容和方法。

实验内容:

(1)ARP

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

ARP -s inet_addr eth_addr [if_addr]

ARP -d inet_addr [if_addr]

ARP -a [inet_addr] [-N if_addr]

-a 显示当前的ARP 信息,可以指定网络地址

-g 跟 -a 一样.

-d 删除由inet_addr 指定的主机.可以使用* 来删除所有主机.

-s 添加主机,并将网络地址跟物理地址相对应,这一项是永久生效的。

eth_addr 物理地址.

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.

例子:

C:\>arp –a (显示当前所有的表项)

Interface: 1 on Interface 0x1000003

Internet Address Physical Address Type

00-01-f4-0c-8e-3b dynamic //物理地址一般为48

位即6 个字节

12 52-54-ab-21-6a-0e dynamic

53 52-54-ab-1b-6b-0a dynamic

C:\>arp -a 1 (只显示其中一项)

No ARP Entries Found

1

C:\>arp -a (只显示其中一项)

Interface: 1 on Interface 0x1000003

Internet Address Physical Address Type

00-01-f4-0c-8e-3b dynamic

C:\>arp -s 12 00-aa-00-62-c6-09 添加,可以再打入arp –a 验

证是否已经加入.

arp –g

2

Arp –g 43

3

Arp –s 4 28-cf-da-dc-e7-18

4

(2)ipconfig

该诊断命令显示所有当前的 TCP/IP 网络配置值。该命令在运行 DHCP 系统上的特

殊用途,允许用户决定 DHCP 配置的 TCP/IP 配置值。

ipconfig [/? | /all | /release [adapter] | /renew [ada