文档介绍:《计算机网络》
课程实验报告
姓名 院系 学号
南六楼
实验地点 实验时间 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: on Interface 0x1000003
Internet Address Physical Address Type
00-01-f4-0c-8e-3b dynamic //物理地址一般为 48
位即 6 个字节
52-54-ab-21-6a-0e dynamic
52-54-ab-1b-6b-0a dynamic
C:\>arp -a (只显示其中一项)
No ARP Entries Found
1
C:\>arp -a (只显示其中一项)
Interface: on Interface 0x1000003
Internet Address Physical Address Type
00-01-f4-0c-8e-3b dynamic
C:\>arp -s 00-aa-00-62-c6-09 添加,可以再打入 arp –a 验
证是否已经加入.
arp –g
2
Arp –g
3
Arp –s 28-cf-da-dc-e7-18
4
(2)