摘要:精品推荐:命令大集合[分类整理]http://www.linuxsir.org/bbs/showthread.php?s=&threadid=5125......
摘要:在写程序的时候,会经常遇到文件a.c会调用b.c中的某一个函数func(),那么该如何来进行操作呢?答案是:合理的利用makefile,而不是include<b.c>,否则会报undefind symbol to _func().下面是详细的操作过程。/*b.c*/#include<stdio.h>int p=3;int func(int i){return p*i;}int setp(int i)/*a.c*/#include&l......
代理ARP什么是proxy arp?proxy arp就是通过使用一个主机(通常为router),来作为指定的设备对另一设备作出arp请求的应答 【相关文章:
我的博客日志】 【扩展阅读:
欢迎加入我的QQ群!】 【扩展信息:
提示行魔术】 proxy arp是如何工作的? 设备需求: cisco 2500系列的rourer cisco ios release 12.2(10b)
screen.width-500)this.style.width=screen.width-500;
}" border="0" />此主题相关图片如下: screen.width-500)this.style.width=screen.width-500;
}" border="0" /> 假设在如上图的一个环境中,位于子网a的主机a(172.16.10.100)需要发送packet到位于子网b的主机d(172.16.20.200)上去.于是主机a将发送arp请求给d.当然,为了能够达到主机d,就需要知道主机d的mac地址.因此,主机a在它位于的那个子网a上广播arp请求,大致内容如下图: screen.width-500)this.style.width=screen.width-500;
}" border="0" />此主题相关图片如下: screen.width-500)this.style.width=screen.width-500;
}" border="0" /> 当然router的e0口也接收到该广播,但是router默认不会转发广播的,所以该arp请求仍然到达不了主机d.但是router却知道主机d位于另外一个子网b.于是router应答自己的mac地址给主机a,如下图: 此主题相关图片如下: screen.width-500)this.style.width=screen.width-500;
}" border="0" /> 注意如上图,源ip地址为主机d的ip地址,但是源mac地址是router e0口的mac地址.这就是发送给主机a的proxy arp应答(代理人,中间人).这样的proxy arp应答一般是作为unicast发送给请求者(主机a) 主机a收到这个proxy arp应答以后,开始更新自己的arp table,如下图: 此主题相关图片如下: ...
下一页 摘要:shell脚本,杀死过期的一些进程,作为以后的参考。ps -e -o pid -o etime -o args|grep local=no>/tmp/tmpfile cat /tmp/tmpfile|while read line do time=`echo $line|awk ` time=`echo $time|awk -f: ` if [ $time -gt 30 ] then echo $line >> /tmp/tmpflie2......