disable arp warning

2005-04-05 12:53

當把 FreeBSD 架在一群機器中 , 若有機器衝 ip , 或是 ip 常改來改去時 , dmesg 及 /var/log/messages 總會看到一堆

arp: x.x.x.x moved from yy:yy:yy:yy:yy:yy to zz:zz:zz:zz:zz:zz on intx 的訊息

代表在 interface intx 上 , 於短時間內收到 x.x.x.x 的 arp reply packet , 其 mac 從 x 變成 y.
可能是由於 ip 相衝、或是 arp spoofing 之類的 , 也有可能是正常的換 ip 現象 ...
但若是與自己無關而不想看到這類訊息的話 , 將 kernel parameter 中的
net.link.ether.inet.log_arp_movements 設成 0 就可以了

sysctl -w net.link.ether.inet.log_arp_movements=0

另外 , 若因特殊目的將機器上的兩張網卡插在同一個 physical domain 上的話 , 可能會常常看到這類訊息

arp: x.x.x.x is on int0 but got reply from yy:yy:yy:yy:yy:yy on int1

代表應該從 int0 回來的 x.x.x.x's arp reply packet , 卻從 int1 的 yy:yy:yy:yy:yy:yy 這個 mac 傳回來
可能性有很多 ( loop ... etc ) , 但若自己判斷是正常現象或特殊目的而不要看到這類 warning 的話 ,
將 kernel parameter 中的
net.link.ether.inet.log_arp_wrong_iface 設成 0 就可以了

sysctl -w net.link.ether.inet.log_arp_wrong_iface=0

Note : 可以直接寫在 /etc/sysctl.conf 讓開機就生效.


FreeBSD 類別的文章 :
 嚐鮮

新增留言

*

*

Trackback this post  |  訂閱這則留言的 RSS Feed


各分類文章

最近的 20 篇文章