位置: 编程技术 - 正文

FREEBSD服务器端的ARP绑定脚本(freebsd服务器搭建)

编辑:rootadmin
#!/bin/sh_PATH="/home/shwb"if [ -s $_PATH/md5 ] && [ -s $_PATH/arp.txt ] ; then new=`md5 $_PATH/arp.txt | cut -d ' ' -f 4` old=`cat $_PATH/md5` if [ "$new" != "$old" ] ; then arp -a -d arp -f $_PATH/arp.txt date "+DATE: %Y-%m-%d-%H:%M:%S" >>/var/log/arp.log md5 $_PATH/arp.txt | cut -d ' ' -f 4 >$_PATH/md5 fielif [ -s $_PATH/arp.txt ] ; then arp -a -d arp -f $_PATH/arp.txt date "+DATE: %Y-%m-%d-%H:%M:%S" >>/var/log/arp.log md5 $_PATH/arp.txt | cut -d ' ' -f 4 >$_PATH/md5fi 注arp.txt文件格式为ip mac,如:..1.1 :::::配合ftp就可以实现远程动态修改服务器的静态MAC表了 文件: arp.tar.gz 大小: 0KB 下载: 下载

推荐整理分享FREEBSD服务器端的ARP绑定脚本(freebsd服务器搭建),希望有所帮助,仅作参考,欢迎阅读内容。

FREEBSD服务器端的ARP绑定脚本(freebsd服务器搭建)

文章相关热门搜索词:freebsd 服务器,freebsd服务器搭建,freebsd使用,freebsd desktop,freebsd 服务器,freebsd服务器怎么样,freebsd适合做什么服务器,freebsd适合做什么服务器,内容如对您有帮助,希望把文章链接给更多的朋友!

freebsd系统下安装mpd 1、安装mpd(都说mpd对windows支持最好),很简单cd/usr/local/ports/net/mpd/makeallinstallclean2、配置/usr/local/etc/mpd/mpd.confdefault:loadvpnvpn:loadclient1#loadclient2client1:new-ing0p

FreeBSD更新 Port Tree 为了使我们安装的软件是最新的版本,我们有必要定期更新PortTree,所谓的更新port就是更新patches。1,CVSup/csup注意:csup是用C语言对CVSup软件的重写,在FreeB

整理FreeBSD系统安装时关于硬盘参数提示的处理方法 错误信息:WARNING:Ageometryof//forad0isincorrect.Usingamorelikelygeometry.Ifthisgeometryisincorrectoryouareunsureastowhetherornotit'scorrect,pleaseconsulttheHardwareGuideintheDocumentat

本文链接地址:https://www.jiuchutong.com/biancheng/353960.html 转载请保留说明!

上一篇:FreeBSD学习笔记(freebsd怎么样)

下一篇:freebsd系统下安装mpd(freebsd软件安装)

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络