Chinaunix

标题: arp命令求助 [打印本页]

作者: kingwkb    时间: 2010-05-17 17:34
标题: arp命令求助
arp -s hostname ether_addr [temp] [reject | blackhole] [pub [only]]

我使用arp -s hostname ether_addr绑定了网关的mac地址,用arp -a看显示permanent了,可过一会为什么又没了呢,机器也没重启什么的

blackhole是什么意思??
作者: lock0n    时间: 2010-05-19 14:49
记得unix arp地址表的老化时间是大概是20分钟的样子吧

blackhole是什么意思??------man有说明
作者: kingwkb    时间: 2010-05-19 18:08
....我现在用crontab 每5分钟执行一次,无奈。。。。。
作者: mirnshi    时间: 2010-05-20 12:10
arp -s hostname ether_addr [temp] [reject | blackhole] ]

我使用arp -s hostname ether_addr绑定了网 ...
kingwkb 发表于 2010-05-17 17:34


有pub吗?
作者: lyf088    时间: 2010-05-22 19:50
有pub吗?
mirnshi 发表于 2010-05-20 12:10


顶:
man arp
...If the word pub is given, the entry will be ``published''; i.e., this system will act as an
             ARP server, responding to requests for hostname even though the  host address is not its own.

作者: mirnshi    时间: 2010-05-23 10:01
顶:
man arp
lyf088 发表于 2010-05-22 19:50



   
作者: lyf088    时间: 2010-05-23 20:43
回复 6# mirnshi


只是我的一点体会了,要多看看man.  
不敢搬门弄斧啊!
作者: kingwkb    时间: 2010-06-01 15:34
英文不好啊,没看懂pub是什么意思。。。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2