关于arp.exe的一点应用
使用ARP命令是在MS-DOS提示符下運行的,在運行里輸入:CMD,便進入DOS提示符下:
arp.exe?是一個管理網卡底層物理地址的程序,每個網卡都有一個全球唯一的物理地址
,上網時,動態的IP地址就是根據這個物理地址影射的。
在同一個局域網段內有兩個物理地址相同的網絡適配器,不論如何配置都會造成IP地址
沖突。
arp?-a,顯示arp的影射;
arp?-s?IP地址?物理地址,增加一個arp影射,如arp?-s?192.168.1.1?00-aa-00-00-c2
-99;
arp?-d?IP地址?物理地址,del掉一個arp影射。
用法:當IP地址沖突時,使用此命令可以把沖突的IP地址屏蔽掉!
詳細用法:
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]
??-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.
??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.
??-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.exe的一点应用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 云炬Android开发笔记 5-7网络框
- 下一篇: 10分钟学会python函数式编程,赶紧