»¶ÓתÔØ,Çë×¢Ã÷³ö´¦£ºhttp://www.mike.org.cn
ÔÎĵØÖ·£ºhttp://www.mike.org.cn/blog/index.php?load=read&id=642
Linux/Unix¼¼Êõ½»Á÷ qqȺ£º19558533(»¶Ó¼ÓÈëÌÖÂÛ£¬±¾Èº²àÖØ·þÎñÆ÷·½Ïò)
archlinux×°ÉÏ¿´Á˼¸Ï¾ÍûÔõô¹ÜÁË¡£×òÌìÒª×öPERLµÄÒ»¸ö²âÊÔ£¬·¢ÏÖÖ÷»úÀïûÓÐ×°openssh(archlinuxȱʡûÓÐ×°)ÓÃÆðÀ´ºÜ²»Ï°¹ß(ƽʱ¶¼Ï°¹ßÒÔsshÁ¬½ÓÖ÷»ú·½Ê½)¡£¶¯ÊÖÓÃpacman×°opensshʱ£¬·¢ÏÖ²»ÄÜÁ¬½Óµ½ÍøÂçÉÏ¡£¼ì²éresolv.confÖÐDNS¡¢rc.confÖеÄIP¡¢Íø¹Ø¶¼ÊÇÕýÈ·¡£³¢ÊÔping google.com,³öÏÖ¡°network is unreachable¡±£¬GoogleÁËÒ»°Ñ˵ÊÇÍø¹ØûÓÐÉèÖ㬵«ÔÙÈý¼ì²éÁËÏÂrc.confÖÐÍø¹ØÊÇÕýÈ·ÉèÖõġ£
ÓÃroute -n¼ì²é·ÓÉʱ£¬·¢ÏÖÁËÎÊÌ⣺
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.145.0 0.0.0.0 255.255.255.0 U 0 0 ¡¡ 0 eth0
Ã÷Ã÷¾ÍÓÐÕýÈ·ÉèÖÃÍø¹Ø£¬ÕâÀïÔõôûÓÐÒ»¸öµ½ÍâÍøµÄÍø¹ØÁË£¿ºó×Ðϸ¼ì²érc.conf·¢ÏÖ
gateway="default gw 192.168.145.2"
ROUTES=(!gateway)
ÕâÀïarchlinuxÏÂȱʡÇé¿öÏÂÊǽûµôROUTESµÄ£¬È¥µô½ûÓõÄ!
gateway="default gw 192.168.145.2"
ROUTES=(gateway)
ÖØÆôÏÂÍøÂç/etc/rc.d/network restart Ò»ÇÐÕý³££¬pacmanºÜ¿ì¾ÍÁ¬ÉÏÍøÂçÁË¡£ºÇºÇ£¡Ð¡ÓÃÁËÒ»ÏÂarchlinux£¬¸Ð¾õ¾ÍÏñÒ»¸öBSD·ç¸ñµÄLinux,pacmanÀàËÆÓÚfreebsdµÄpackage,absÀàËÆÓÚfreebsdµÄPorts¡£