Shunze ¾Ç¶é >¹q¸£¸ê°T¾Ç¨t >OpenStack > ¡m¥|¡n«Ø¥ßInstanceªº«e¸m§@·~ «¢Åo¡AÁÙ¨S¦³µù¥U©ÎªÌµn¤J¡C½Ð§A[µù¥U|µn¤J]
« ¤W¤@½g¥DÃD ¤U¤@½g¥DÃD » Åã¥Ü¦¨¦C¦L¼Ò¦¡ | ¼W¥[¨ì§Úªº³Ì·R
µoªí·s¥DÃD µoªí¦^ÂÐ
§@ªÌ
¥DÃD
shunze
¤u¤Í§B§B


µù¥U¤é´Á: 2002 04
¨Ó¦Û: ¼é¦Á²×¤î¤§¦a
¤å³¹: 2380

shunze Â÷½u
¡m¥|¡n«Ø¥ßInstanceªº«e¸m§@·~¤Þ¥Î¦^ÂÐ ½s¿è/§R°£¤å³¹ ·j´M¥Ñ  µoªíªº¨ä¥L¤å³¹ ¦^³øµ¹ª©¥D IP ¦ì¸m ¦^¦¹­¶³Ì¤W¤è

Demo±M®×ªº¹ï¥~ºô¸ô»Prouter1­×§ï¬°¹ê»ÚÀô¹Ò¤¤ªºIPºô¬q«á¡A
±M®×ùتº¤º¥~ºô¸ôÀ³¸Ó¬O¥i¥H³q¹F¤F¡A
³o®É§Ú­Ì´N¥i¥HµÛ¤â«Ø¥ß¶³ºÝªÅ¶¡¤¤ªº¥D¾÷-Instance¡C

³o­ÓInstacne¡AOpenStack½Ķ¬°¡§¶³¹ê¨Ò¡¨¡A
¶¶¤lı±o©Ç©Çªº¡A©Ò¥HÁÙ¬Oª½±µ¥ÎInstanceºÙ©I¥¦¡C

¦ý¦b«Ø¥ß±M®×ªºInstance¤§«e¡A¦³¨Ç²Ó¶µÁÙ¬O¥ý³]©w¦n¤ñ¸û²z·Q¡A
¦Ó³o¨Ç¶µ¥Ø¥]¬A¦b¡§¦s¨úÅv¥H¤Î¦w¥þ©Ê¡¨¤¤ªº¡§¦w¥þ©Ê¸s²Õ¡¨¡B¡§±KÆ_¹ï¡¨»P¡§¯B°ÊIP¡¨¡C
¥H¤U§Ú­Ì´N¨Ó³v¤@»¡©ú³o¤T­Ó¶µ¥Øªº¥Î³~»P¦p¦ó«Ø¥ß¡C

  • ¦w¥þ©Ê¸s²Õ
    ¦b¡§¦w¥þ©Ê¸s²Õ¡¨ùØ¡A·|©w¸qInstanceªº¤º/¥~¨¾¤õÀð³W«h¡C
    ¥H¹w³]ªºdefault¸s²Õ¨Ó»¡¡A¥u¦³¹ï¥~(¥X¤f)ªº³s½u¬O¶}©ñªº¡A
    ¹ï¤º(¤J¤f)¤è¦Vªº³s½u¶È¤¹³\¨ä¥¦¦P¸s²ÕªºInstance¥i¥H³s½u¡A
    ³o¼Ëªº¹w³]³W«h¥¼¥²¬O²Å¦X§Ú­Ì»Ý­nªº¡C



    ¤@¯ë¨Ó»¡¡A§Ú­Ì·|³z¹Lping¤ÎSSH±q¥~³¡³s¨ìInstance¶i¦æºÞ²z¡A¦Ó³o¼Ëªº»Ý¨D¦bdefault¸s²Õ¨Ã¥¼³Q«Ø¥ß¡C
    ¬°¤F¹F¨ì¦¹»Ý¨D¡A§Ú­Ì¥i¥H­×§ïdefaultªº¸s²Õ³W«h¡A©Î¥t«Ø¤@­Ó¸s²Õ³W«hµ¹Instance¨Ï¥Î¡A
    ¥H¤U§Ú­Ì±N¥Ü½d¦p¦ó«Ø¥ß¤@­Ó·sªº¸s²Õ³W«h¡C

    «ö¤U¡§·s¼W¦w¥þ©Ê¸s²Õ¡¨«ö¶s¡C



    µM«á¿é¤J¦WºÙ¤Î´y­z«á¡A«ö¤U¡§·s¼W¦w¥þ©Ê¸s²Õ¡¨«ö¶s¡A§¹¦¨·s¸s²Õªº«Ø¸m¡C



    §¹¦¨«á¡A«ö¤U·s¸s²Õªº¡§ºÞ²z³W«h¡¨«ö¶s¡A¬Ý¬Ý¹w³]¦³¨Ç¤°»ò³W«h¡C



    ¹w³]ªº³W«h¥u·|¦³¥X¤f¤è¦Vªº§¹¥þ¶}©ñ¡A«ö¤U¡§¥[¤J³W«h¡¨«ö¶s¥[¤J§Ú­Ì©Ò»Ýªº¹ï¤º¤è¦V³W«h¡C



    ­º¥ý¡A§Ú­Ì¥ý¥[¤JALL ICMP³W«h¡A¤¹³\¥~³¡¹ïInstanceªºping¦^À³¡C



    µM«á¥[¤JSSH³W«h¡A¤¹³\¥~³¡ÂÇ¥ÑSSH³s¤JInstance¡C
    (­Y§Ú­Ì§Æ±æ­­¨î³s¤JªºIP½d³ò¡A°O±o¦bCIDR¤¤¥[¤J¤¹³\ªººô¬q³á¡ã)



    §¹¦¨«á¡A§Ú­Ì¥i¥H¬Ý¨ì·s¦w¥þ¸s²Õ¤¤³o¨â±ø³W«h¤w¥X²{¦b³W«hªº²M³æ¤¤¡A
    ·s¼W¦w¥þ©Ê¸s²Õ¨ì¦¹§i¤@¬q¸¨¡ã



    ±KÆ_¹ï
    ¡§±KÆ_¹ï¡¨¥i¥H²£¥Íprivate key¡AµM«á®M¥Î©óSSHªº³s½uÅçÃÒ¤W¡C

    ¦b¤Þ¥Î¤º«ØªºCirros¬M¹³ÀÉ«Ø¥ßInstance®É¡A¥Ñ©ó¥i¥H¨Ï¥ÎCirros¹w³]ªº±b¸¹±K½X¨Óµn¤JSSH¡A
    ©Ò¥H¦b³oºØ±¡ªp¤U¡A·Pı¤£¥X¨Ópirvate keyªº­«­n©Ê...

    ¦ý¦b¤Þ¥Î¨ä¥¦¥¼±Ò¥Î±K½Xªº¬M¹³ÀɨӫإßInstance®É¡A¥Ñ©ó¥u¦³±b¸¹¨S¦³±K½X¡A
    ©Ò¥H¦bSSH¤¤¡A¥u¯à¥H±b¸¹¥[private keyªº¤è¦¡¨Óµn¤J¸ÓInstance¡C
    ¦]¦¹¡§±KÆ_¹ï¡¨ªº­«­n©Ê¥i¨£¤@¯ë¡I

    ¸ò¡§¦w¥þ©Ê¸s²Õ¡¨¤£¦Pªº¬O¡A¡§¦w¥þ©Ê¸s²Õ¡¨°£¤F¥i¥H¦b«Ø¥ßInstance®É´N¤@¨Ö³]©w¹ïÀ³Ãö«Y¥~¡A
    ÁÙ¥i¥H¨Æ«á¦A­«·s»PInstance³]©w¹ïÀ³Ãö«Y¡C

    ¦ý¡§±KÆ_¹ï¡¨¥u¯à¦b«Ø¥ßInstance®É´N¤@¨Ö³]©w¹ïÀ³Ãö«Y¡A
    ¤@¥¹¦b«Ø¥ß®É¨S¦³³]©wInstance¹ïÀ³ªº¡§±KÆ_¹ï¡¨¡A¨Æ«á¤]µLªk¦A¥h«Ø¥ß¹ïÀ³¡C
    ©Ò¥H§Ú­ÌÁÙ¬O§â¡§±KÆ_¹ï¡¨¥ý«Ø°_¨Ó§a¡ã

    «Ø¥ßªº¤è¦¡¦p¤U¡A«ö¡§·s¼W±KÆ_¹ï¡¨«ö¶s¡C



    µM«á¿é¤J±KÆ_¹ï¦WºÙ¡C



    §¹¦¨«á¡AÂsÄý¾¹´N·|¦Û°Ê¤U¸ü¸ÓPrivate Key¡C
    ½Ð¦n¦n«O¯d¦¹¡§±KÆ_¹ï¡¨¡A¦]¬°¤§«á´N¤£¦A´£¨Ñ¥ô¦ó¤è¦¡¨Ñ¨Ï¥ÎªÌ¤U¸ü¡I



    ¦Ó¡§±KÆ_¹ï¡¨­¶­±¤]·|¥X²{³o¤äkey¡C
    ·s¼W¡§±KÆ_¹ï¡¨¨ì¦¹§i¤@¬q¸¨¡ã



    ¯B°ÊIP
    ¦bOpenStack¤¤¡A±M®×ùتºInstance¦ì©~privateºô¬q¡A¤À°t¨ìªº¦ÛµM¤]³£¬OµêÀÀIP¡A
    ¥~³¡ªºUser¬OµLªkª½±µ³s¨ì³oµêÀÀºô¬qªºInstance¡C

    ¬°¤FÅý¥~³¡user¯à³s¨ìInstance¡A
    §Ú­Ì¥i¥H¤À°t¹ï¥~publicºô¸ôªº¹êÅéIPµ¹Instance¨Ï¥Î¡A
    ¨Ã³z¹Ldemo±M®×ùØroute1¨Ó±N¥~³¡¹êÅéIP mapping¨ìprivateºô¬qªºµêÀÀIP¡A
    Åý¥~³¡user¯à³z¹L³o­Ó¹êÅéIP³s¨ìInstance¥H¶i¦æºÞ²z¡C

    ¦Ó³opublicºô¸ôªº¹êÅéIP´N¥s°µfloating IP (¯B°ÊIP)¡C

    ³]©w¡§¯B°ÊIP¡¨ªº¤è¦¡¦p¤U¡A½Ð¦b¯B°ÊIP­¶­±¤¤«ö¤U¡§¤À°tIP¨ì±M®×¡¨ªº«ö¶s¡C



    µM«á¿ï¾Ü¥i¥H°µ¬°¯B°ÊIP¨Ó·½ªº­Ü®w(¥~³¡ºô¸ô)¡A¦A«ö¤U¡§¤À°tIP¡¨«ö¶s¡C



    §¹¦¨«á´N¥i¥H¬Ý¨ì°t¸m¨ìªº¡§¯B°ÊIP¡¨¡C



    ¦Ó³o­Ó¡§¯B°ÊIP¡¨ªº¡§¤w¬M®gªº©T¦r IP ¦ì§}¡¨ªºÄæ¦ì¬OªÅ¥Õªº¡A
    ¥NªíÁÙ¨S¦³¸ò¥ô¦ó±M®×¤¤ªºprivate IP°µ¹ïÀ³¡A
    ¥i¥H¥Î¨Ómapping¨ì§Ú­Ì§Y±N«Ø¥ßªºInstance¡C

    ·s¼W¡§¯B°ÊIP¡¨ªº¤u§@¨ì¦¹§i¤@¬q¸¨¡ã



♥¶¶¤l¦Ñ±Cªººô©ç¡A½Ð¦hÃö·Ó¡ã

If you don't like something, change it.
If you can't change it, change your attitude.
Don't complain!




2016-03-30, 22:57 shunze ªº­Ó¤H¸ê®Æ §â shunze ¥[¤J¦n¤Í¦Cªí µo°eEmailµ¹ shunze ÂsÄý shunze ªººô¯¸ MSN : shunze@gmail.com
  « ¤W¤@½g¥DÃD ¤U¤@½g¥DÃD »
µoªí·s¥DÃD µoªí¦^ÂÐ
¸õ¨ì:

Powered by: Burning Board 1.1.1 2001 WoltLab GbR