易截截图软件、单文件、免安装、纯绿色、仅160KB

linux 策略路由问题!!!

规则如下:
  ip route add 10.10.0.0/16 via 10.254.254.1 table int1 proto static 
  ip route add throw 0/0 table int1 proto static 
  ip route add 172.18.0.0/16 via 172.17.1.1 table int2 proto static 
  ip route add throw 0/0 table int2 proto static 
  ip route add 0/0 via 172.17.1.254 table main proto static 
  ip rule add pref 15000 table int1 iif eth1 
  ip rule add pref 15001 table int2 iif eth2 
  ip rule add pref 15002 to 10.10.0.0/16 table int1 
  ip rule add pref 15003 to 172.18.0.0/16 table int2

ip route add throw 0/0 table int1 proto static 大侠 这句是什么意思?

throw 和策略规则(policy rule)一块使用的控制路由。如果选择了这种路由,就会认为没有发现路由,在这个表中的查询就会被终止。没有找到策略路由就相当于在路由表中没有找到路由,数据包会被丢弃,并产生ICMP信息net unreachable。本地发送者会返回ENETUNREACH错误。
  The throw route type is a convenient route type which causes a route lookup in a routing table to fail, returning the routing selection process to the RPDB. This is useful when there are additional routing tables. Note that there is an implicit throw if no default route exists in a routing table, so the route created by the first command in the example is superfluous, although legal.



相关问答:

关于linux下socket编程的问题! - C/C++ / C语言

由于我才刚刚接触socket编程,自己写了一个简单程序,但就是在运行的时候出现段错误,无法解决,现在我把源代码贴出来,请各位大虾指正一下!谢谢!
#include<stdio.h>
#include<stdlib.h>
#include& ......

是选win2008还是suse linux、redhat、centos,犹豫中

引用内容vsking 2009-12-25 22:56:52
现在是win2008和iis8的时代了,不要还停留在iis5时代,win2008被评为十佳操作系统之首不是偶然的,你要是..
我的问题是:
最近想买个服务器,看了dell上的系统定制选择,一些 ......

c语言实现linux time相关函数 - C/C++ / C语言

现在需要在一个嵌入式系统中实现时间函数,编译器未提供time库函数,请问大家如何用c语言实现时间函数啊?
年月日时分秒 到 整数秒(从1970年开始) 之间的相关转换啊
类似mktime 和localtime的功能,谢谢
mktime ......

Linux中子父进程 - Linux/Unix社区 / 程序开发区

在Linux中,
如果父进程调用exit(0)退出,
那么由该进程创建的两个子进程会立即退出吗???
希望围绕该问题说清楚点,谢谢了。
不会
两个子进程脱离了父进程,独立运行
父进程死掉后,其所有子孙进程被init收 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号