#!/bin/sh
cat /var/lib/dhcp3/dhcpd.leases|grep -E "lease|starts|ethernet|}"|tr "\n|;" " "|
tr "}" "\n"|grep `date "+%y/%m/%d"`|cut -d " " -f 3,16|sort|uniq > /etc/ethers
arp -f /etc/ethers
arp -s 192.168.200.100 00:06:29:38:09:C7 pub
arp -s 192.168.200.150 00:30:48:24:e7:cc
阅读(844) | 评论(0) | 转发(0) |