¡m¤À¨É¡n©óLANºÝ³¡¸pServer | |
¦bXG¦¨¥\©óAzure³¡¸p«á¡A±µµÛ´Nn³¡¸pLANºÝ¹ê»Ú´£¨Ñ¹ï¥~ªA°Èªºserver¤F¡C
¶¶¤l¥HUbuntu¬°¨Ò¡A¶i¦æLANºÝªºUbuntu server«Ø¸m¡C
¿ï¾Ün¯²¥Îªº¥D¾÷¸ê·½³W®æ°t¸m¡C
µM«á¦bSubnetªº³¡¤À¡A½Ð§ï¥ÎLANªººô¸ô°t¸m¡A³o¼ËUbuntu¤~·|®y¸¨¦bLAN°Ï¬q¡C
Public IPªº³¡¤À¡A´N¤£¥Î°t¸m¡A·|ª½±µ±qXG¤W°µ¥Øªº¦aºÝªºNAT¾ÉÂà¡C
Security Groupªº³¡¤À¤]¤£¥Î¯S§O°t¸m¡A¿ïNone§Y¥i¡C
µM«á¦A¿ï¥Î¤w¦³ªºstorage account¡C
§¹¦¨«á¡AUbunut´Nn¶}©l«Ø¸m¤F¡ã
§Ṳ́]¥i¥H¨Ì¾Ú»Ý¨D¡A±NLANºÝªºUbuntuºô¥d§ï¬°©T©wIP°t¸m¡C
UbuntuµêÀÀ¾÷«Ø¸m§¹¦¨«á¡A§ÚÌ·|µo²{³oUbuntu¤£¶ÈµLªk³s¤J¡A¦Ó¥B¤]µLªk³s¥~¡H
³o¨s³º¬O«ç»ò¤@¦^¨Æ¡I¡H
ì¨Ó¤£½×¬OWAN©Î¬OLAN¡AAzure³£·|¦³¤@Ó¸ÓSubnetªºgateway¡A
¥HWANºÝ¦Ó¨¥¡A¹w³]¬O10.0.0.1¡A¦ÓLANºÝ«h¬O10.0.1.1³oÓIP¡C
¦ý¦]¬°LANºÝªº¹w³]gateway¨S¦³³s¥~¯à¤O¡A©Ò¥H¤º³¡Serverªº«Ê¥]¦b¾É¦V¦¹¹w³]gateway«á¡A
´N¥Û¨H¤j®ü¡A¤@¨Ö¥¢¥h³s¥~¯à¤O¡C
¸Ñ¨M¤èªk°£¤Fקï¥D¾÷ºô¥dªºdefault gateway³]©w¡A±N¥¦«ü¦VXGªºLAN IP¥~¡A
ÁÙ¦³¤@Ó¥þ°ì©Êªº°µªk¡A¨º´N¬O¦bLAN³oÓSubnet¤¤¡A¥[¤W¤@µ§0.0.0.0/0ªºdefault route¡A¨Ã«ü¦VXGªºLAN IP¡A
±N³s¥~«Ê¥]³z¹LXG¦A¶Âà¥X¥h¡C
¦bAzure¤¤¡A«Ø¥ß¦¹ÀRºA¸ô¥Ñªº¤è¦¡¦p¤U¡C
¥Ñ©ó¦bAzure¤¤¡Aroute table¨S¦³¥\¯à±¶®|¡A©Ò¥H½Ð¦b¤W¤è·j´M®Ø¤¤¿é¤Jroute table¶i¦æ¬d¸ß¡C
µM«á¦bRoute tables¶±¤¤¡A«ö¤U«Ø¥ßRoute tables«ö¶s«Ø¥ß¸ô¥Ñª«¥ó¡C
¦b¸ô¥Ñª«¥ó«Ø¥ß«á¡AÂI¶i¥h°µÀRºA¸ô¥Ñ»P¹ïÀ³ºô¬q(subnet)ªº¹ïÀ³¡C
¦bRoutesªº³¡¤À¡A§Ú̫إߤ@µ§0.0.0./0 to 10.0.1.4ªºÀRºA¸ô¥Ñ¡C
¦bSubnetsªº³¡¤À¡A§ÚÌ»Ýn±N¦¹route table»PLANºô¬q¶i¦æÃöÁp¡C
³]©w§¹¦¨«á¡A¥i¥H³z¹LOverview¨ÓÀ˵ø§ÚÌ©Ò°µªº³]©w¬O§_¤@¦p§Ú̩һݡC
¦b¦¹ÀRºA¸ôª«¥ó§¹¦¨«á¡ALAN³oÓSubnetªºServer³s¥~´N·|¥D°Ê¥[¤W³oµ§¸ô¥Ñ(ÁöµM¦bOSùجd¤£¨ì¡I¡H)¡A
³z¹L³oµ§defaul routeªº¹B§@¡AServerªº³s¥~»PXG¤W´£¨Ñ¥~¬ÉªA°Èªºport mapping³£¨S°ÝÃD¤F¡ã
¤º¡B¥~Âù¦V³£¦³«Ê¥]¬y¶q¶i¥X¡A
LANºÝServer©óAzure¶³ºÝ³¡¸p¨ì¦¹Á`ºâ¶¶§Q§¹¦¨¡C
|
|
♥¶¶¤l¦Ñ±Cªººô©ç¡A½Ð¦hÃö·Ó¡ã
If you don't like something, change it.
If you can't change it, change your attitude.
Don't complain!
|