雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2575|回复: 7

[讨论/求助] [讨论]请问

[复制链接]
发表于 2003-8-23 01:37:31 | 显示全部楼层 |阅读模式
明白了arp -s的意义<br>忽然想到,,如果在局域网你有人抢了你的ip,,除了通知管理员切断他网线外<br><br>我们是不是可以也用arp -s这个命令来解析正确的MAC地址呢?<br>如果行,,那么,,我们该在哪台机子上操作这个命令?我想不是每台机子都可以的吧,,
发表于 2003-8-23 03:28:24 | 显示全部楼层
arp -s IP地址 要绑定的MAC地址<br>这是绑定MAC用的,不是解析.<br>解析的话,直接arp -a即可.<br>这些都可以在帮助中看到.<br>可以用ARP -S的方法抢IP.前提是分配IP的DHCP服务器没有检测IP是自己设定的还是DHCP分配的.
 楼主| 发表于 2003-8-23 10:28:38 | 显示全部楼层
OK,,是绑定,我用次用错了<br>但你的解释好象和我问的无关
发表于 2003-8-23 15:13:37 | 显示全部楼层
<BLOCKQUOTE><strong>引用</strong>:<HR Size=1>原文由 <b>阿米巴原始虫</b> 发表:<br>明白了arp -s的意义<br>忽然想到,,如果在局域网你有人抢了你的ip,,除了通知管理员切断他网线外<br><br>我们是不是可以也用arp -s这个命令来解析正确的MAC地址呢?<br>如果行,,那么,,我们该在哪台机子上操作这个命令?我想不是每台机子都可以的吧,,<HR SIZE=1></BLOCKQUOTE><br><br>[B]首先,看看arp -s 的帮助<br>在cmd状态下敲入 arp<br>在显示出来的参数列表上查到<br> -s            Adds the host and associates the Internet address inet_addr with the Physical address eth_addr.  The Physical address is<br>given as 6 hexadecimal bytes separated by hyphens. The entry         is permanent<br><br>事实上,我们知道,同一局域网内两台机器互相访问最后通信是在网卡端,也就是需要和网卡的物理地址(MAC)联系.<br>每次你的机器和不同的机器通信后,机器上的arp 表就会留有和你通信的网卡的mac地址,和一个IP地址的映射表,这样访问过对方一次以后,我们就可以直接通过mac地址与对方联系了.<br>但是,我们的arp表大小有限,并不是可以无限添加mac地址的,一般采用队列算法,即先进先出.<br>我们使用arp -s的目的是,当我们长期需要和某台机器联系,而你又知道该机器通信网卡的mac地址时,可以手动静态添加永久arp mac ip映射表,这样,就可以长期保留在arp 表中,迅速与该机通信.<br>有人抢了你的ip? 你没有办法通过静态方式来解决问题.因为你只是在添加你自己的arp表,而没法让网络上的其他人知道.<br>现在知道我和你们说的故障排错的道理了吧? 也会了解&quot;网络执法官&quot;的原理了吧?<br><br>另外,在讨论问题的时候,写上[讨论]的习惯很好,但是,最好不要用请问,简单两字,很多人会忽视你的主题的,最好加上请问,ARP问题,使得主题明了.
发表于 2003-8-23 15:44:13 | 显示全部楼层
关于ARP的帮助:<br><br>Displays and modifies the IP-to-Physical address translation tables used by<br>address resolution protocol (ARP).<br><br>ARP -s inet_addr eth_addr [if_addr]<br>ARP -d inet_addr [if_addr]<br>ARP -a [inet_addr] [-N if_addr]<br><br>  -a            Displays current ARP entries by interrogating the current<br>                protocol data.  If inet_addr is specified, the IP and Physical<br>                addresses for only the specified computer are displayed.  If<br>                more than one network interface uses ARP, entries for each ARP<br>                table are displayed.<br>  -g            Same as -a.<br>  inet_addr     Specifies an internet address.<br>  -N if_addr    Displays the ARP entries for the network interface specified<br>                by if_addr.<br>  -d            Deletes the host specified by inet_addr. inet_addr may be<br>                wildcarded with * to delete all hosts.<br>  -s            Adds the host and associates the Internet address inet_addr<br>                with the Physical address eth_addr.  The Physical address is<br>                given as 6 hexadecimal bytes separated by hyphens. The entry<br>                is permanent.<br>  eth_addr      Specifies a physical address.<br>  if_addr       If present, this specifies the Internet address of the<br>                interface whose address translation table should be modified.<br>                If not present, the first applicable interface will be used.<br>Example:<br>  &gt; arp -s 157.55.85.212   00-aa-00c6-09  .... Adds a static entry.<br>  &gt; arp -a                                    .... Displays the arp table.
 楼主| 发表于 2003-8-23 16:01:19 | 显示全部楼层
thanks
发表于 2003-10-19 15:21:20 | 显示全部楼层
1、在局域网中,可以在交换机端口绑定静态地址,限制MAC与链路的关系;<br>2、路由器上建立ARP绑定,建立本地IP与MAC的对应关系;<br>3、ACLs实现对通信流量的限制;<br>不怕累死,都可以试试,这可是劳动密集型的工作!
发表于 2003-10-19 19:53:16 | 显示全部楼层
呵呵,没有经历过,尝试过的话,又怎么达到自己的目标呢?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-5-22 01:06 , Processed in 0.093395 second(s), 18 queries , Gzip On.

快速回复 返回顶部 返回列表