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)Ò»¿éʹÓõĿØÖÆÂ·ÓÉ¡£Èç¹ûÑ¡ÔñÁËÕâÖÖ·ÓÉ£¬¾Í»áÈÏΪûÓз¢ÏÖ·ÓÉ£¬ÔÚÕâ¸ö±íÖеIJéѯ¾Í»á±»ÖÕÖ¹¡£Ã»ÓÐÕÒµ½²ßÂÔ·ÓɾÍÏ൱ÓÚÔÚ·ÓɱíÖÐûÓÐÕÒµ½Â·ÓÉ£¬Êý¾Ý°ü»á±»¶ªÆú£¬²¢²úÉú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.
Ïà¹ØÎÊ´ð£º
ÒýÓÃÄÚÈÝvsking 2009-12-25 22:56:52
ÏÖÔÚÊÇwin2008ºÍiis8µÄʱ´úÁË£¬²»Òª»¹Í£ÁôÔÚiis5ʱ´ú£¬win2008±»ÆÀΪʮ¼Ñ²Ù×÷ϵͳ֮Êײ»ÊÇżȻµÄ£¬ÄãÒªÊÇ..
ÎÒµÄÎÊÌâÊÇ£º
×î½üÏëÂò¸ö·þÎñÆ÷£¬¿´ÁËdellÉϵÄϵͳ¶¨ÖÆÑ¡Ôñ£¬Ò»Ð© ......
±¾À´Ã»ÎÊÌâµÄ£¬µ«ÊÇÏÖÔÚ²»¹ÜÓÃʲô¹¤¾ßÁ¬Êý¾Ý¿â¶¼ºÜÂý£¬ÒòΪºóÀ´·þÎñÆ÷Öжà¼ÓÁË¿éÍø¿¨£¬¶øÊý¾Ý¿â¼àÌýÉèÖõϹÊÇ·þÎñÆ÷Ãû£¬ÎÒÏë»á²»»áÊÇÕâ¸öÎÊÌ⣬Çë½Ì¸ßÊÖ£¬²¢Ñ¯Îʽâ¾ö·½·¨£¡Ð»Ð»
×Ô¼ºÏȶ¥ÏÂ
°Ñºó¼ÓµÄÍø¿¨ÄõôÔÚ ......
ÇëÎÒÓÃFCKÉÏ´«Îļþ,ÔÚ±¾µØµÄwindows»úÉϲâÊÔ¿ÉÒÔ£¬µ«²¿Êðµ½linux·þÎñÆ÷ÉϾÍÉÏ´«²»ÁËÎļþ£¬ÉÏ´«Îļþʱһֱ¿¨ÔÚÄÇÀï¡£Íû¸÷λ´óϺָµã£¬Ð»Ð»£¡
·¹ý£¬°ïÄ㶥һϡ£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
ÉÏ´«ÎļþµÄ·¾¶ÎÊÌ⣬ ......
¾ßÌåְλҪÇó£º
1. ´óѧ±¾¿ÆÒÔÉÏѧÀú£¬¼ÆËã»úÏà¹Ø×¨Òµ±ÏÒµ£»
2. ÊìϤTCP/IPÐÒé¡¢SocketÍøÂç±à³Ì¡¢¶àÏ̱߳à³Ì£»
3. ¾«Í¨LinuxÏÂC/C++ÓïÑÔ±à³Ì¡¢GCC±àÒëÆ÷¡¢gdbµ÷ÊÔÆ÷µÄʹÓã¬ÊìϤMakefileºÍShell£»
4. Á˽âÈí¼þ¿ ......
ÏÖÔÚÎÒÏëÕÒµ±Ç°Ä¿Â¼ÏµÄ*.pc»òÕß*.hµÄÎļþ½øÐдò°ü
ÎÒÓõÄÃüÁîÊÇ
find . -name *.pc|xargs tar -cvf tt.tar
È»ºó
find . -name *.h|xargs tar -rvf tt.tar
½á¹û¿ÉÐÐ
¿ÉÊÇÕâÑùÎÒ¾õµÃÂé·³£¬ÏëÒ»´ÎÐÔfind³öÀ´£¬¸ß ......