首页 > 其他分享 >arp命令 参数

arp命令 参数

时间:2024-03-28 21:25:28浏览次数:14  
标签:arp ARP 00 addr 224.0 命令 参数 inet

arp /?

显示并修改地址解析协议(ARP)使用的 IP 到物理地址转换表。

ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr] [-v]

-a            通过查询当前协议数据显示当前 ARP 条目。如果指定 inet_addr,则仅显示指定计算机的 IP 地址和物理地址。如果多个网络接口使用 ARP,则会显示每个 ARP 表的条目。
-g            等同于 -a。
-v            以详细模式显示当前 ARP 条目。将显示所有无效条目和环回接口上的条目。
inet_addr     指定互联网地址。
-N if_addr    显示由 if_addr 指定的网络接口的 ARP 条目。
-d            删除由 inet_addr 指定的主机。inet_addr 可以使用 * 作为通配符来删除所有主机。
-s            添加主机并将互联网地址 inet_addr 与物理地址 eth_addr 关联。物理地址由 6 个以连字符分隔的十六进制字节给出。该条目是永久的。
eth_addr      指定物理地址。
if_addr       如果存在,则指定应修改其地址转换表的接口的互联网地址。如果不存在,将使用第一个适用的接口。
示例:

arp -s 157.55.85.212   00-aa-00-62-c6-09  .... 添加静态条目。
arp -a                                    .... 显示 ARP 表。

arp -a /?

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] [-v]

  -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.
  -v            Displays current ARP entries in verbose mode.  All invalid
                entries and entries on the loop-back interface will be shown.
  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.

arp -a

Interface: 192.168.1.55 --- 0x13

--------------------------------------------

接口:网络接口的IP地址---标识符

-----------------------------------------------------------------------
  Internet Address      Physical Address      Type

     互联网地址               物理地址                       类型                

-----------------------------------------------------------------------         
  192.168.1.1           a0-36-79-d4-ce-84     dynamic   (动态)

-------------------------------------------------------------------------------
  192.168.1.255         ff-ff-ff-ff-ff-ff               static (静态)

--------------------------------------------------------------------------
  224.0.0.22            01-00-5e-00-00-16     static

-----------------------------------------------------------------------
  224.0.0.251           01-00-5e-00-00-fb     static

--------------------------------------------------------------------------
  224.0.0.252           01-00-5e-00-00-fc     static

-----------------------------------------------------------------------------
  239.255.255.250       01-00-5e-7f-ff-fa     static

---------------------------------------------------------------------------------

dynamic   (动态)

static (静态)

  • 单播地址:192.168.1.1
  • 有限广播地址:192.168.1.255
  • 多播地址:224.0.0.22, 224.0.0.251, 224.0.0.252, 239.255.255.250
  1. 224.0.0.22:属于永久性多播地址,用于OSPFv3协议。
  2. 224.0.0.251:属于永久性多播地址,用于mDNS (多播DNS) 服务发现,通常用于局域网内的设备发现和服务广告。
  3. 224.0.0.252:属于永久性多播地址,用于Link-local Multicast Name Resolution (LLMNR),用于在局域网内解析主机名。
  4. 239.255.255.250:属于临时性多播地址,用于SSDP (Simple Service Discovery Protocol) 发现服务,通常用于发现UPnP设备和服务。

 

标签:arp,ARP,00,addr,224.0,命令,参数,inet
From: https://www.cnblogs.com/suv789/p/18102637

相关文章

  • 云计算02笔记---远程连接服务ssh 以及cp mv rm cd mkdir echo 等Linux常用命令
    远程连接服务ssh语法格式:ssh用户名@ip地址【-p指定端口号】例如:[email protected]默认端口号:22修改端口号:vim/etc/ssh/sshd_config编辑其中一行#port22改为port2222删去了注释符号#且改变端口号拷贝命令cpcp位置1位置2从位置1复制到位置......
  • 云计算笔记03--配置yum源及下载nginx并上传项目至服务器(常用命令 lrzsz cat head tail
    配置yum源首先将系统自带的yum源进行备份cd/etc/yum.repos.d///进入到yum配置目录mkdirbackup//创建一个备份目录mv*.repobackup///将所有以.repo结尾的文件移动到备份目录中#阿里云的yum源网站:https://developer.aliyun.com/......
  • sed教程_使用sed命令向行尾添加字符(附sed元字符集)
    sed教程_使用sed命令向行尾添加字符(附sed元字符集)sed是一项Linux指令,功能同awk类似,差别在于,sed简单,对列处理的功能要差一些,awk的功能复杂,对列处理的功能比较强大。sed元字符集:^锚定行的开始,如:/^sed/匹配所有以sed开头的行。$锚定行的......
  • Linux进阶命令
    Linux进阶命令①1查看切换显示统计目录1.pwd(printworkdirectory)[root@localhost~]#pwd//显示当前路径/root[root@localhostbin]#cd/bin[root@localhostbin]#ll/binlrwxrwxrwx.1rootroot78月620:57/bin->usr/bin[root@localhostbin]#pwd-......
  • 5.Hadoop HDFS 命令
    5.1启动HadoopMuti-NodeClusterstart-all.sh5.2创建与查看HDFS目录创建user目录:hadoopfs-mkdir/user创建user下hduser子目录:hadoopfs-mkdir/user/hduser创建hduser下test子目录:hadoopfs-mkdir/user/hduser/test查看之前创建的HDFS目录: 一次查看HDFS所有子目......
  • Tensorflow 中conv2d_transpose函数output_shape参数的由来和范围
    目录1.卷积和转置卷积(1)卷积(2)转置卷积2.tf.nn.conv2d函数和tf.nn.conv2d_transpose函数(1)tf.nn.conv2d函数(2)tf.nn.conv2d_transpose函数3.转置卷积output_shape参数的探讨(1)卷积过程中,存在尺度丢失现象。(2)转置卷积是恢复卷积之前原始信息的过程1.卷积和转置卷积(1)卷积......
  • tar命令使用
    最后修改时间2024-03-28参数作用-c创建新的归档文件(打包)-x从归档文件中提取文件(解包)-f<文件名>指定归档文件名-v显示操作的详细信息-z通过gzip压缩归档文件-j通过bzip2压缩归档文件-C<目录>切换到指定目录--exclude=<模式>排除匹配模式......
  • docker常用命令
    最后修改时间2024-03-28操作系统Linuxversion5.15.0-86-generic(buildd@lcy02-amd64-086)(gcc(Ubuntu11.4.0-1ubuntu1~22.04)11.4.0,GNUld(GNUBinutilsforUbuntu)2.38)#96-UbuntuSMPWedSep2008:23:49UTC2023一些docker常用指令查看镜像列表sudodocker......
  • 瑞芯微-I2S | 音频驱动调试基本命令和工具-基于rk3568-2
    基于Linux嵌入式设备常用调试方法很多,本文一口君把调试语音用到的工具和方法给大家做一个简单的介绍。1.procfs、sysfsLinux系统上的/proc目录是一种文件系统,即proc文件系统。与其它常见的文件系统不同的是,/proc是一种伪文件系统(也即虚拟文件系统),存储的是当前内核运行状态的......
  • python执行shell命令并输出日志
    使用npminstall时,由于npminstall控制台输出的构建信息是加载条,之前用的python脚本不能输出,且加载条完之后的输出也不能获取。因为需要使用新的脚本,使用下面的脚本python执行npminstall可以输出加载条之后的日志。process.poll()为返回码,正确运行返回码为0,若不为0则退出系统。w......