文档详情

计算机网络实验2实验指导.doc

发布:2017-06-07约1.18万字共8页下载文档
文本预览下载声明
在PC机上熟悉常用网络命令 常用命令 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 添加主机,并将网络地址跟物理地址相对应,这一项是永久生效的。 Inet_addr 网络地址 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. 例子:-a -s -a -d -a C:\Documents and Settings\Administratorarp -a Interface: 11 --- 0x2 Internet Address Physical Address Type 00-18-b9-42-f7-4c dynamic C:\Documents and Settings\Administratorarp -a 11 No ARP Entries Found C:\Documents and Settings\Administratorarp -a Interface: 11 --- 0x2 Internet Address Physical Address Type 00-18-b9-42-f7-4c dynamic C:\Documents and Settings\Administrator arp -s 12 00-aa-00-62-c6-09 C:\Documents and Settings\Administratorarp -a Interface: 11 --- 0x2 Internet Address Physical Address Type 00-18-b9-42-f7-4c dynamic 12 00-aa-00-62-c6-09 static 2、Ipconfig 功能:该诊断命令显示所有当前的 TCP/IP 网络配置值。该命令在运行 DHCP 系统上的特殊用途,允许用户决定 DHCP 配置的 TCP/IP 配置值。 格式:ipconfig [/? | /all | /release [adapter] | /renew [adapter] | /flushdns | /registerdns | /showclassid adapter | /setclassid adapter [classidtoset] ] /all 产生完整显示。在没有该开关的情况下 ipconfig 只显示 IP 地址、子网掩码和每个网卡的默认网关值。 例子: C:\Documents and Settings\Administratoripconfig Windows IP Configuration Ethernet adapter 本地连接 2: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 11 Subnet Mask . . . . . . . . . . . : Default Gateway . . . . . . . . . : C:\Documents and Settings\Administratoripconfig/displaydns Windows IP Configuration 27.
显示全部
相似文档