¡m¥|¡n«Ø¥ßInstanceªº«e¸m§@·~ | |
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ºÙ¤Î´yz«á¡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!
|