|
/sbin/modprobe ip_conntrack
/sbin/modprobe ip_nat_ftp
/sbin/modprobe ip_tables
/sbin/modprobe iptable_nat
/sbin/modprobe ip_conntrack_ftp
……
#cat ArpMac.sh
#!/bin/sh
IP_LIST=/root/shell/ip_list
ETHERS=/etc/ethers
if [ ! -f $IP_LIST ];then
exit
fi
/bin/cat /dev/null > $ETHERS
for HOST in `/sbin/arp -ne | /bin/sed '/Address/d' | /bin/awk '{print $1}'`; do /sbin/arp -d $HOST; done
while read line
do
IP="192.168.1.`/bin/echo $line | /bin/awk '{print $1}'`"
MAC=`/bin/echo $line | /bin/awk '{print $4}'`
if [ "$MAC" == "" ];then
continue
fi
/bin/echo -e "$MACt$IP" >> $ETHERS
done < $IP_LIST
#/bin/echo -e "127.187.120.1t00:25:9E:14:B3:5C" >> $ETHERS
/sbin/arp -n -f
请问arp -ne 是什么意思??? |
|