µ±Ç°Î»ÖãºLinux½Ì³Ì - Linux×ÊѶ - ÔÚ RedHat »·¾³ÈçºÎÊÖ¹¤½¨Á¢tunnel

ÔÚ RedHat »·¾³ÈçºÎÊÖ¹¤½¨Á¢tunnel

¡¡¡¡¡ø ÔÚ RedHat ÉÏÅäÖà ipv6¡¡¡¡¡¡¡¡¢Ù ÖØбàÒëÄںˣº¡¡¡¡Ä¿Ç°°æ±¾µÄredhatÒѾ­Ö§³Öipv6£¨ 2.0.x ºóµÄ kernel °æ±¾¶¼Ö§³Öipv6£©£¬²»¹ýÔÚĬÈÏÇé¿ö϶¼Ã»ÓбàÒë¡£Òò´Ë£¬ÎÒÃÇÐèÒª¾­¹ýÒÔϲ½Öè²ÅÄÜÈûúÆ÷µÄ kernel Ö§³Ö ipv6¡£¾ßÌå²½ÖèÈçÏ£º¡¡¡¡make menUConfig;¡¡¡¡ÔÚ¿ÉÑ¡²Ëµ¥µÄÍøÂçÑ¡ÏîÖУ¬Ñ¡ÉÏÖ§³Ö ipv6¡£¡¡¡¡make; make bzImage;¡¡¡¡make modules; make modules_install¡¡¡¡°Ñ./arch/i386/boot/bzImage¿½±´µ½Ò»¸öĿ¼£¬Èç/boot Ï¡£¡¡¡¡ÐÞ¸Ä /etc/lilo.confÎļþ£¬ÓÃеıàÒë¹ýµÄÄÚºËÆô¶¯¡£¡¡¡¡¡¡¡¡¢Ú °²×°ipv6µÄÏà¹Ø¹¤¾ßÈí¼þ£º¡¡¡¡ÔÚÄÚºËÖ§³Ö ipv6 µÄÇ°ÌáÏ£¬»¹ÐèÒª°²×°ipv6ϵÄÏàÓ¦Èí¼þ£¬ÕâÖ÷ÒªÓÐÁ½¸ö£º¡¡¡¡µÚÒ»ÊÇ£ºnet-tools-1.52.tar.gz Æä°²×°¹ý³ÌÈçÏ£º¡¡¡¡°Ñ¸ÃÈí¼þ°ü½âѹËõµ½Ò»¸öĿ¼£¬Ò»°ãÔÚ/usr/srcĿ¼¡¡¡¡#tar xzf net-tools-1.52.tar.gz -C /usr/src¡¡¡¡½øÈë¸ÃÈí¼þ°ü½âѹËõºóµÄĿ¼:¡¡¡¡#cd net-tools-1.52¡¡¡¡make clean;¡¡¡¡make config;¡¡¡¡make; make install¡¡¡¡µÚ¶þÊÇ£ºiputils-ss000418.tar.gz Æä°²×°¹ý³ÌÈçÏ£º¡¡¡¡°Ñ¸ÃÈí¼þ°ü½âѹËõµ½Ò»¸öĿ¼(¿ÉÒÔÊÇÈκÎĿ¼)£¬Ò»°ã¿ÉÒÔÔÚ/usr/local/srcĿ¼¡¡¡¡#tar xzf iputils-ss000418.tar.gz -C /usr/local/src¡¡¡¡½øÈë¸ÃÈí¼þ°ü½âѹËõºóµÄĿ¼:¡¡¡¡#cd iputils¡¡¡¡make clean;¡¡¡¡make;¡¡¡¡¡¡¡¡°²×°³É¹¦£¬ÖØÐÂÆô¶¯Ö®ºó£¬Ê¹Óà ifconfig -a Ó¦¸ÃÈç¹û¿ÉÒÔ¿´µ½Ò»¸ö inet6 µÄ local linkµØÖ·£¬¾Í¿ÉÒÔÐû¸æ£¨´ó¹¦¸æ³É£¡£©¡¡¡¡¡¡¡¡¡ø ÔÚÁ½Ì¨Ö§³Öipv6µÄredhat»úÆ÷ÉϽ¨Á¢tunnel¡¡¡¡¡¡¡¡ÒªÏëÔÚÁ½Ì¨»ò¶ą̀£¨ÕâÀïÖ»½éÉÜÁ½Ì¨ipv6Ö÷»úÖ®¼äÈçºÎ½¨Á¢tunnel£©Ö®¼ä½¨Á¢tunnel£¬±ØÐëÒªÖªµÀ×Ô¼ººÍ¶Ô·½µÄv4µØÖ·ÒÔ¼°Ïë¶ÔÓ¦µÄv6µØÖ·¡£ÏÂÃæ¾ÍÒÔÎÒÃǵÄʵÑé»·¾³ÎªÀýÀ´ËµÃ÷ÈçºÎ½¨Á¢tunnel.¡¡¡¡¡¡¡¡Ö÷»úAµÄÅäÖÃÈçÏ£º202.112.96.94 (v4) 3ffe:3201:1800:1::7 (v6)¡¡¡¡Ö÷»úBµÄÅäÖÃÈçÏ£º 202.112.10.142 (v4) 3ffe:3201:1800:2::7 (v6)¡¡¡¡¡¡¡¡ÔÚÖ÷»úAÉÏÖ´ÐÐÈçÏÂÃüÁ/sbin/ifconfig sit0 inet6 tunnel ::202.112.10.142£¨ÎªBµÄv6¼æÈݵØÖ·£©¡¡¡¡¡¡¡¡/sbin/ifconfig sit1 up¡¡¡¡/sbin/ifconfig sit1 add 3ffe:3201:1800:1::7/64(ΪAÖÐtunnelµÄv6Èë¿ÚµØÖ·)¡¡¡¡/sbin/route -A inet6 add 3ffe:3201:1800:2::7/64(tunnel¶Ô·½µÄv6µØÖ·£¬ÕâÀïÊÇBÖеÄv6Èë¿ÚµØÖ·) sit1¡¡¡¡¡¡¡¡#default route¡¡¡¡/sbin/route -A inet6 add 3ffe::/16 gw 3ffe:3201:1800:2::7/64 (tunnel¶Ô·½µÄv6µØÖ·£¬ÕâÀïÊÇBÖеÄv6Èë¿ÚµØÖ·) sit1¡¡¡¡¡¡¡¡ÔÚÖ÷»úBÉÏÖ´ÐÐÏàÓ¦µÄ²Ù×÷¡£Ö®ºó¿ÉÒÔÔÚÖ÷»úAÉÏͨ¹ýÃüÁ¡¡¡¡ping6 3ffe:3201:1800:2::7¡¡¡¡À´²é¿´tunnelÊÇ·ñ³É¹¦¡£

£¨³ö´¦£ºhttp://www.sheup.com£©