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.
Ïà¹ØÎÊ´ð£º
Á½¸öÎļþ1.PC£¬1.inc
1.PCÓвÙ×÷oracleÊý¾Ý¿âµÄ ,1.incÒ²ÓвÙ×÷oracleÊý¾Ý¿â
ÔÚÆäËûÊý¾ÝÖÐÈçinformix ÖÐ$include 1.inc¾Í¿ÉÒÔʹÓÃÁË
ÔÚORACLEÊý¾Ý¿âÖØ $include 1.inc²»¿ÉÓà EXEC SQL include 1.incÒ²²»¿É ......
±¾À´Ã»ÎÊÌâµÄ£¬µ«ÊÇÏÖÔÚ²»¹ÜÓÃʲô¹¤¾ßÁ¬Êý¾Ý¿â¶¼ºÜÂý£¬ÒòΪºóÀ´·þÎñÆ÷Öжà¼ÓÁË¿éÍø¿¨£¬¶øÊý¾Ý¿â¼àÌýÉèÖõĻ¹ÊÇ·þÎñÆ÷Ãû£¬ÎÒÏë»á²»»áÊÇÕâ¸öÎÊÌ⣬Çë½Ì¸ßÊÖ£¬²¢Ñ¯Îʽâ¾ö·½·¨£¡Ð»Ð»
×Ô¼ºÏȶ¥ÏÂ
°Ñºó¼ÓµÄÍø¿¨ÄõôÔÚ ......
ÔÚLinuxÖУ¬
Èç¹û¸¸½ø³Ìµ÷ÓÃexit(0)Í˳ö£¬
ÄÇôÓɸýø³Ì´´½¨µÄÁ½¸ö×Ó½ø³Ì»áÁ¢¼´Í˳öÂ𣿣¿£¿
Ï£ÍûΧÈƸÃÎÊÌâ˵Çå³þµã£¬Ð»Ð»ÁË¡£
²»»á
Á½¸ö×Ó½ø³ÌÍÑÀëÁ˸¸½ø³Ì£¬¶ÀÁ¢ÔËÐÐ
¸¸½ø³ÌËÀµôºó£¬ÆäËùÓÐ×ÓËï½ø³Ì±»initÊÕ ......
½«ËùÒª·¢Ë͵Ätcp°ü·ÅÔÚ·¢ËͶÓÁÐÖУ¬Èç¹ûÔÚ15ÃëÄÚûÊÕµ½ACK£¬¾ÍÖØ·¢£¬ÏëÇëÎÊ´ó¼Ò£¬ÕâÑùÊDz»ÊÇÒª¶Ôÿ¸öTCP°ü¼Ó¶¨Ê±Æ÷°¢£¬³ýÁËÓÃalarm,»¹ÄÜÓÃʲôÁË£¿
Äã¸ãÓ¦ÓõĻ°²»ÐèÒª¹ØÐÄtcpÐÒéÕ»ÊÇÔõô´¦ÀíµÄ°¡
tcpÐÒéÕ»ÓÐÖØ· ......
´ó¼ÒºÃ£º
ÎҵĵçÄÔÁ·µÄÊǽÌÓýÍø£¬Éϲ»ÁËÍâ¹úµÄÍøÕ¾£¬ÔÚÓÃLinux¸üÐÂÈí¼þ£¬ÀýÈçapt-get»òÊÇyumµÄʱºòÁ¬²»µ½·þÎñÆ÷¡£²»ÖªµÀ´ó¼ÒÓÐûÓйýÕâÖÖÇé¿ö°¡£¬ÊÇÈçºÎ½â¾öµÄ°¡£¬Ð»ÁË£¡
¿ÉÒÔÕÒһϣ¬eduµÄ¸üÐÂÔ´¡£±ÈÈç ......