for ip in `arp -n|awk '{print$1}'|grep -v 'Address'`; do arp -d $ip; done #清空linux mac地址表 arp -s IP MAC #静态绑定mac地址