Splathon#9ã®ãããã¯ã¼ã¯æ¤è¨¼ã¨æ§æã«ã¤ãã¦
ã¯ããã«
ããã¯Splathon Advent Calendar 2018 - Adventarã®16æ¥ç®ã®è¨äºã§ãã
åæ¥ã®TONYããã®è¨äºã¯ãã¡ããã
çããããã«ã¡ããSplathonéå¶ã¢ã¡ãªã«æ¯é¨ï¼ã®ãï½ãµãã§ãã
æ®æ®µã¯ã¢ã¡ãªã«ã®ã¨ããç°èã§ã®ãã³ãã¨éãããªããã²ã¼ã ãã¦ãã¾ãã(ä»äºãã)
Splathonã«ã¤ãã¦ã¯ æ¬ã«ã¬ã³ãã¼ã®1æ¥ç®ã®kawakuboxããã®è¨äºã御覧ãã ããã
kawakubox.hatenablog.com
ãã®è¨äºã§ã¯æ¥å¹´ã«é½å
ææã§è¡ãããäºå®ã®ãªãã©ã¤ã³ã¤ãã³ã Splathon#9ã®ä¼å ´ä¸è¦ã§
è¡ã£ããããã¯ã¼ã¯æ¤è¨¼ããã®ä¸ã§å¤æãããã¨ãå½æ¥ã®ãããã¯ã¼ã¯æ§æ(æ¡)ã¤ãã¦æ¸ãã¦ãã¾ãã
Nintendo Switchã®ç»å ´ã§æ©å¨ã®æã¡è¾¼ã¿ããããããªãããªãã©ã¤ã³å¤§ä¼ããããããªã£ãã¨æãã¾ãã
ãªã®ã§ãä»åã®ãããªè¨äºã¯éè¦ãããã®ã§ã¯ã¨æãè¨äºã«ãã¾ããã
ãã®è¨äºãèªãã«ããã£ã¦
ãã®è¨äºã«è¨è¼ãã¦ãããããã¯ã¼ã¯ã®è¨å®ãªã©ã¯Splatoon2ã®ã¤ã«ãã㣠LANãã¬ã¤ã¢ã¼ãã«
é¢ãã¦ã®ãã®ã«ãªãã¾ããSwitchèªä½ã®ãããã¯ã¼ã¯è¨å®ã«ã¤ãã¦ã§ã¯ããã¾ããã®ã§ã注æãã ããã
【スプラトゥーン2】「LAN プレイ」とは何ですか?
ãªãããã®è¨äºä¸ã®ããã©ã¤ãã¼ãããããã¨ããè¨èã¯ãã¹ã¦
ãã¤ã«ãã㣠LANãã¬ã¤ã¢ã¼ãã§ã®ãã©ã¤ãã¼ãããããã¨ããæå³ã«ãªãã¾ãã
ãã®è¨äºã§ã¯é¡åã®éããããã¯ã¼ã¯ã«é¢ãã¦æ¸ãã¦ãã¾ãããå°ã£ããã¨ã«ãããã¯ã¼ã¯æ©å¨ã®ãã¨ã
ã¹ã¤ãã(主ã«L2/L3ãã¤ãã¦)ã¨å¼ã¶ãã¨ãå¤ãã§ãããã®ããç´ããããã®ã§ãã®è¨äºã§ã¯
ã¿ããªå¤§å¥½ã Nintendo Switch ãSwitchããããã¯ã¼ã¯æ©å¨ã®æ¹ãã¹ã¤ããã¨è¨è¼ãã¦ãã¾ãã
ã¾ããMACã¢ãã¬ã¹ãIPã¢ãã¬ã¹ãDHCPãVLANãDNS ãããã®ç¨èªãç解ãã¦ããã¨
è¨äºã®ç解ã®å©ãã«ãªãã¨æãã¾ãã®ã§èª¿ã¹ã¦ããèªãã®ããããããã¾ãã
( ãªãããã®è¨äºå
ã§åç¨èªã®èª¬æã¯ãã¦ããã¾ããã®ã§ãäºæ¿ãã ããã)
è¦ä»¶
ä»åã®ãããã¯ã¼ã¯ã«é¢ããè¦ä»¶ã¯
1. å¤(ã¤ã³ã¿ã¼ããã)ã«åºãããªã
2. DHCPã§åSwitchã«IPãå²ãå½ã¦ã
ã¨ããä¸è¨2ã¤ã®ãã¨ãæºããã¦ãã©ã¤ãã¼ãããããã§ãããããã¯ã¼ã¯ã§ããã
ã¾ããå人çã«ããããã£ããã¨ã¨ãã¦ã
3. 対æ¦åãã¨ã«ãããã¯ã¼ã¯ãåãã
ã¨ãããã®ãããã¾ããã
ã㮠対æ¦åãã¨ã«ãããã¯ã¼ã¯ãåãã ã¯ã©ããããã¨ãã¨ããã¨ã
ã¤ã«ãã㣠LANãã¬ã¤ã¢ã¼ããç¨ãã¦ãã©ã¤ãã¼ããããããããå ´åã¯
æ¥ç¶ãããSwitchãåä¸ãã¼ã«ã«ãããã¯ã¼ã¯ã«å±ãã¦ããå¿
è¦ãããã¾ãã
家åºã§éã¾ã£ã¦ãã¬ã¤ããåã«ã¯ããã§ç¹ã«åé¡ããã¾ããã
ããããSplathonã¯è¦æ¨¡ã大ããåä¸ãããã¯ã¼ã¯ã«Switchã50å°è¿ãæ¥ç¶ããã¾ãã
ã¾ããæ´ã«å¯¾æ¦ãåæ並åã§é²è¡ãã¾ããéå»äºä¾ï¼Splathon#8 éå¬å ±åãããã£
ãã®ãããªå ´åããã©ããè¤æ°ç«ã¡ä¸ãããã¨ã«ãªããã¤ã«ããã£ã®ã é¨å±ãæ¢ã ãã
é¸æããã¨ãã«è¤æ°ã®é¨å±ãè¦ããç¶æ
ã«ãªãã¾ãã
ããã対æ¦åãã¨ã«ãããã¯ã¼ã¯ãåãããã¨ã«ãããä»ã®å¯¾æ¦åã®ãã©ãã表示ããããã¨ã
ãªããªãã¾ããä»ã¾ã§ã®Splathonã§ã¯ãï½åã®å¯¾æ¦ã¯ï½ã¨ããã¦ã¼ã¶ã«åæµãã¦ãã ããããã¨ãã
ãªãã¬ã¼ã·ã§ã³ãç¾å ´ã§ãã¦ããã®ã§ããããã®ãªãã¬ã¼ã·ã§ã³ãä¸è¦ã«ãªãã¾ãã
ããã¯ããããã®å¯¾æ¦åãã¨ã«å°ç¨ã®ãããã¯ã¼ã¯æ©å¨ãç½®ãã°ãã®åé¡ã¯è§£æ±ºã§ãã¾ããã
ããã ã¨åæ©å¨ã®è¨å®ãé¢åã ã£ãããDHCPæ©è½ãæã£ãå°ãé«ä¾¡ãªæ©å¨ã
ç¨æãã¦ãããå¿
è¦ãããããã¾ãç¾å®çã§ã¯ããã¾ããã
ä»åãããã¯ã¼ã¯ãèªåã§æ§æããã«ããããä¸è¨ã®åé¡ãVLANã使ã£ã¦ãããã¯ã¼ã¯ã
åããã®ãå®ç¾ãããã¨èããããã§ãã
äºåæºå
æ©å¨
å½æ¥ã®æ¤è¨¼ã«åãã¦ä»¥ä¸ã®æ©å¨ãç¨æãã¾ããã
ãã¹ãåã¯ã³ã³ã½ã¼ã«ãã°ã¤ã³ã¨ãããã¨ãã®å¤å¥ã®ããã«ã¤ãã¾ãããæ·±ãæå³ã¯ããã¾ããã
æ©å¨ | ãã¹ãå | ç¨é |
---|---|---|
CISCO C841M-4X-JSEC/K9 | splathon.net.spl | L3ã¹ã¤ãã ä¸çªå¤§äºãªæ©å¨ VLANã«ãããããã¯ã¼ã¯è¨å®ã DHCPã«ããIPã®å²ãæ¯ããæ å½ |
CISCO WS-C2960L-8TS-JP | es-splathon.net.spl | L2ã¹ã¤ãã 対æ¦ä¸¦åæ°ãå¤ãå ´åã«C841Mã®æ¥ç¶ãã¼ãã 足ããªãããå©ç¨ãåãã¼ãã«VLANãããããæµã |
Netgear GS116E-200JPS | ãã¹ãåãªã | åãªãããã¨ãã¦å©ç¨ |
VLAN / IP
è¨å®ããVLANã¨IPã¯ä»¥ä¸ã®éãã§ãããµããããã¯ãã¹ã¦ /24 ã§è¨å®ãã¦ãã¾ãã
VLAN Num | VLAN Name | IP Address |
---|---|---|
1000 | streaming-match | 192.168.222.0 |
2 | private-match-2 | 192.168.0.0 |
3 | private-match-3 | 192.168.1.0 |
4 | private-match-4 | 192.168.2.0 |
5 | private-match-5 | 192.168.3.0 |
è¨å®
äºåæºåã§ã¯C841Mã®ã¿è¨å®ãè¡ããè¨å®ããVLANã®IPãDHCPã§ææã¡ã®PCã«IPãå²ãæ¯ããã¾ã§
確èªãã¾ãããWS-C2960L ã®æ¹ã¯C841Mã®DHCPãªã©ã®åä½æ¤è¨¼ããã¾ããã£ãå ´åã«
使ãã¤ããã§ä½¿ããã¯ããããªãã£ããããäºåæºåã®æ®µéã§ã¯è¨å®ããã¾ããã§ããã
Netgearã®æ¹ã¯ããã¨ãã¦ä½¿ãã¤ããã ã£ãã®ã§ãè¨å®ã«é¢ãã¦ç¹ã«ä½ããã¦ãã¾ããã
C841Mã¯GUIãããDHCPãªã©ã®è¨å®ãã§ãããããCLIã§ã®è¨å®ãæãæ¹ã«ããããã§ãã
å½æ¥ã®æ¤è¨¼
æ¤è¨¼1 : ãã©ã¤ãã¼ãããããã§ããã
ãã®æ¤è¨¼ã¯è¦ä»¶ã®1,2ãæºãããç¶æ
ã§ãã©ã¤ãã¼ãããããåé¡ãªãã§ãããã¨ãããã®ã§ãã
æ¹æ³
æ¹æ³ã¯åç´ã§è¨å®ãã¦ããã¹ã¤ããã«æ¥ç¶ãã¦åé¡ãªããã©ã¤ãã¼ãããããè¡ããã
ã¨ãããã®ã§ãããã®æ¤è¨¼ã®æ§æã¯ä»¥ä¸ã®éãã§ãã
çµæ
ãããããã§ãã£ããåé¡ãèµ·ãã¾ããã
ã¤ã«ãã㣠LANãã¬ã¤ã¢ã¼ãã«ããããã«ã¤ã«ããã£ã«å
¥ãã¨ããã¼ã«ã«éä¿¡ã®æºåããã¦ãã¾ããã®
ç»é¢ããå¤ããããã¾ãã¤ã«ãã㣠LANãã¬ã¤ã¢ã¼ããèµ·åãã¾ããã§ããã
ã¹ã¤ããå´ã§è¦ã¦ã¿ãã¨DHCPã«ããIPã¯æãåºããã¦ããããã«è¦ãã
ããã«ã¯åå ã¯ãããã¾ããããããã¤ã«ããã£ã¯èµ·åãã¾ããã
ã¨ãããã¨ã§ããããåãåããå§ã¾ãã¾ããã
åãåã1ï¼IPãæåã§è¨å®ãã
æ¹æ³
å
ã»ã©ã®ãããã¯ã¼ã¯æ§æã®ã¾ã¾ãSwitchã®ã¤ã³ã¿ã¼ãããè¨å®ããIPãªã©ã®è¨å®ã
æåã§è¡ããã©ã¤ãã¼ãããããã§ãããã試ãã¾ããã
çµæ
ããã¯ç¹ã«åé¡ãªããã©ã¤ãã¼ãããããã§ãã¾ããã
ãªã®ã§ãè¨å®ãã¡ããã¨ãã¦ããã°Switchå士ãéä¿¡ã§ããç°å¢ã§ããã
ã©ããã®é
ç·ãã ããªã©ã®ç©ççãªè¦å ã®å¯è½æ§ã§ã¯ãªãã¨èãããã¾ããã
åãåã2 : DHCPã§IPãæ¯ãããPCå士ã§çéãã§ããã
æ¹æ³
åæ¥ã«DHCPã§PCã«IPãæ¯ããã¦ãæ¯ãããPCã«ping ãé£ã¶ã¾ã§
確èªã¯ãã¦ãã¾ãããã念ã®çºããä¸åº¦PC2å°ã使ãä¸è¨ã®ãããªç¶æ
ã§
DHCPã§æ¯ãããIPã«å¯¾ãã¦ç¸äºã«pingãå±ãã®ã確èªãã¾ããã
çµæ
ãããç¹ã«åé¡ã¯ãªããç¸äºã«pingã¯é£ã³ã¾ããã
ãªã®ã§ããã¯ãDHCPã®æ©è½ã¯åé¡ãªãããã¨èãããã¾ããã
æ®å¿µãªããããã¾ã§ã®2ã¤ã®åãåãããã¯åå ãç¹å®ããããã¨ãã§ãã¾ããã§ããã
Switchèªä½ã«pingãªã©ã®ãããã¯ã¼ã¯éä¿¡ã«é¢é£ããã³ãã³ãããªãããã
åé¡ã®åå 追æ±ã«è¡ãè©°ã¾ãã¾ããã
ãããï¼å°ã£ã¦ããã¨ãã«ãããªçºè¨ãï¼
ãIPã®è¨å®ã¯èªåã§ãDNSã®è¨å®ãæåã§ãã£ãããã©ã¤ãã¼ããããã§ããã
ãã¾ããããªãã£ãåå
ä¸è¨ã®çºè¨ãããã¾ããããªãã£ãåå ããããã¾ããã
ãã㯠DHCPã®è¨å®ã«DNSã®è¨å®ãè¨è¼ãã¦ããªãã£ã ã¨ãããã¨ã§ãã
é常DHCPã®è¨å®ãè¡ãã¨ãã¯æ¯ãåããIPããµããããããªã¼ã¹æéãDNSãªã©ãè¨å®ã§ãã¾ãã
ããããä»åã®æ§æã§ã¯ã¤ã³ã¿ã¼ãããã«åºããªãã¨ããç¹ãIPã®è¨å®ããå¿
è¦ã§ã¯ãªãã¨èããããã
DNSã使ããã¨ã¯ãªãã¨èã VLAN / IP ã«æ¸ãããããªIPé¢é£ã®è¨å®ãããã¦ãã¾ããã§ããã
ãããã¾ãã«åå ã§ãSwitchã§ã¯ã¤ã³ã¿ã¼ãããè¨å®ã®ããã«DNSè¨å®ã
ã¡ããã¨ãã¦ãããªãã¨ãããªãã®ã§ãããã®DNSã«ãã¨ãæ¥ç¶ãã§ããªãã¦ã使ããªãã¨ãã¦ãã
å®ã¯æåã¤ã³ã¿ã¼ãããè¨å®ããã¨ããããã¯åããã¨ã§ã使ããªãã¨ã¯ããDNSã®è¨å®ãããªãã¨
æ¥ç¶è¨å®ã¯ä¿åã§ãã¾ãããããæ¤è¨¼1ã®æ®µéã§åå ã«æ°ã¥ããè¦ç´ ã¯ãã£ãã®ã§ãã
è¨å®ãè¤éã«ãªããªãããã«ãä¸è¦ã ã¨èãã¦è¨å®ãã¦ããªãã£ããã¨ãè£ç®ã«ã§ã¦ãã¾ãã¾ããã
解決æ¹æ³
åå ãããã£ãã®ã§è§£æ±ºæ¹æ³ã¯ç°¡åã§ãã
DHCPã®è¨å®ã«DNSã®è¨å®ã追å ãã¦ãããã°ããã®ã§ãã
è¨å®ããDNSã¯
åªå DNS | 008.008.008.008 |
---|---|
代æ¿DNS | 008.008.004.004 |
ã«ãªãã¾ããæåãªGoogleã®Public DNSã§ããã
å¤åããã®è¨å®ã¯IP(IPv4)ã®è¦åã«æ²¿ã£ãIPãªãã©ããªIPã§ã大ä¸å¤«ãã¨æãã¾ãã
ã©ãã使ãã¾ãããã
â»ä½è«ã§ããæè¿ 1.1.1.1 ã¨ããDNSãããã¿ããã§ããã
DNSãè¨å®ãããã¨ã§ãåé¡ãªããã©ã¤ãã¼ãããããã§ããããã«ãªãã¾ããã
æ¤è¨¼2 : ãããã¯ã¼ã¯ãåãã¦ãã©ã¤ãã¼ãããããã§ããã
ãã®æ¤è¨¼ã¯è¦ä»¶ã®3ãå®ç¾ã§ãããã®æ¤è¨¼ã«ãªãã¾ãã
æ¹æ³
æ¹æ³ã¯æ§æã以ä¸ã®ããã«å¤æ´ããã©ã¤ãã¼ãããããããããã®è²ã®é¨åã®Switchã§å»ºã¦ã¾ãã
建ã¦ããã©ã¤ãã¼ãããããè²ã®åãé¨åã®Switchããã¯è¦ãã¦ãè²ã®éãSwitchããã¯è¦ããªã
ã¨ããç¶æ
ã«ã§ãããã¨ãããã®ã§ãã
è²ãéã£ã¦ã¤ãã¦ããé¨åãããããå¥ã®ãããã¯ã¼ã¯ã«ãªãã¾ãã
çµæ
ç¹ã«åé¡ãªãå¥ã®è²ã®ãããã¯ã¼ã¯ã®Switchã®ãã©ã¤ãã¼ããããã¯è¦ããªãç¶æ
ã§
ãã©ã¤ãã¼ãããããè¡ããã¨ãã§ãã¾ããã
æ¤è¨¼ãã¾ã
ããã¯ãã¾ãã®æ¤è¨¼ã§ããããã©ã¤ãã¼ããããããã¾ããã£ã¦ããªãã¨ãã«
å¥ã§ãããªæ§æã®æ¤è¨¼ãè¡ã£ã¦ã¾ããã
ããã¯æ¤è¨¼1ã®æ§æã¨ä½ãéããã¨ããã¨ãL3ã¹ã¤ããã§ã¯ãªãL2ã¹ã¤ããã®ã¿ã§
Switchå士ãæ¥ç¶ããæåã§ã®ã¤ã³ã¿ã¼ãããè¨å®ãè¡ããã©ã¤ãã¼ããããã
ã§ãããã¨ãããã®ã§ããã¤ã¾ããæåã¤ã³ã¿ã¼ãããè¨å®ãªãSwitchå士ããããªã©ã®
å®ä¾¡ãªãããã¯ã¼ã¯æ©å¨ã§ã¤ãªãã§ããã©ã¤ãã¼ãããããã§ããã®ãã¨ãããã®ã§ãã
ããã¯Splathonã®Slackå
ã§è©±é¡ã«ä¸ã£ãæ§æã§ãã
ããã¯çµè«ã¨ãã¦ã¯ã§ãã¾ããã
ãªã®ã§ãæåã§ã¤ã³ã¿ã¼ãããè¨å®ããããããSwitchã®å
¥ãæ¿ãã¯ã§ããªãã¨æããã¾ãã
å
¨å°ã®Switchã®ã¤ã³ã¿ã¼ãããè¨å®ãæåã§è¡ãã°å®ä¾¡ãªãããã¯ã¼ã¯æ©å¨ã§ã
ãã©ã¤ãã¼ãããããå®ç¾ã§ããã¨ãããã¨ã§ãã
å½æ¥ã®æ§æ(æ¡)
æ§æ(å ¨ä½)
å½æ¥ã®æ§æã¯ä»¥ä¸ã®ãããªã®ãèãã¦ãã¾ããããã®é¨åã¯é¨æã®èª¿éå
·åã§å¤æ´ããããããã¾ããã
è¶è²ã®ç·(HDMI)ã§ã¤ãªãã§ããé
ä¿¡ç¨ã®PCã¯ãã®ãããã¯ã¼ã¯ã«æ¥ç¶ãã¦ãããã
é
ä¿¡ããããã«å¥ã®ãããã¯ã¼ã¯ã«æ¥ç¶ãã¦ã¤ã³ã¿ã¼ãããã«åºããããã«ããäºå®ã§ãã
æ§æ(é ç·)
ãã¡ãã¯é
ç·å³ã«ãªãã¾ããStreamingãPrivate2ã¨æ¸ãããã®ãVLANã«ãªãã¾ãã
C841MããWS-C2960L-8TS-JPã¸ã¯VLANã5åä¸ããã¦ãWS-C2960L-8TS-JP ãã
Hubã¸åãã¼ãããåVLANãä¸ã¤ã¥ã¤ä¸ããã¦ãã¾ãã
è¨å®
ä»å使ç¨ããæ©å¨ã®è¨å®ã¯ä»¥ä¸ã«ããã¦ããã¾ãã
(èªåã§è¨å®ããå
容以å¤ã¯åºæ¬çã«åé¤ãã¦ããã¾ãã)
ã¾ã¨ã
- ãããã¯ã¼ã¯æ©å¨ã®ãªãä¼å ´(ãããã¯ä½¿ããªã)ã§ãSplathonãã§ããããã«ãªã£ãï¼
- ãããã¯ã¼ã¯ã対æ¦åæ¯ã«åãããã¨ã§ä»ã®å¯¾æ¦åã®ãã©ã¤ãã¼ããããã¨æ··ãããªããªã£ãï¼
ä»å¾
æ£ç´ãããã¯ã¼ã¯ã«é¢ãã¦ã¯ããããããã¨ã»ã¨ãã©ãªãæ°ããã¾ãã
éä¿¡ã®ãã©ãã£ãã¯ã®å¯è¦åã¨ããã§ããªãã¯ãªãã§ããããã¼ã¿ãåãæ©è½ãªã©ã
ãªãå®ä¾¡ãªãããªã©ãç¨ãããããã®ã§ãããé£ããããªã¨ã
ä½ãé¢ç½ãããªãã®ãæãã¤ããæ¹ãããé£çµ¡ãã ããã
( ã¹ããã©SPã®ãªãã©ã¤ã³å¯¾æ¦ã§ä½¿ãããã¯æ°ã«ãªãã¨ããã)
æå¾ã«
æå¾ã¾ã§ãã®è¨äºãèªãã§ããã ããããã¨ããããã¾ããã
ãªãã©ã¤ã³å¤§ä¼ãèãã¦ãã人ã®å°ãã§ãå©ãã«ãªãã°å¹¸ãã§ãã
ä»åã®è¨äºã«æ¸ããæ©å¨ãããã¦ããåããããªè¨å®ãã§ããã°
ã¤ã³ã¿ã¼ãããç°å¢ããªãå ´æã§ããªãã©ã¤ã³å¤§ä¼ãéããããã«ãªãã¨æãã¾ãã
ãªã®ã§ãã¿ãªããããã²éãã¦ã¿ã¦ãã ããã
æå¾ã«ä¼å ´ä¸è¦ã§ä»åã®æ¤è¨¼ã«ååããã¦ãããçæ§æ¬å½ã«ãããã¨ããããã¾ããã
ãã®å ´ãåãã¦ã礼ãè¨ãããã¨æãã¾ãã
ãªããã¬ããããã¯ã¼ã¯ã¨ã³ã¸ãã¢ããã®åãåããã¯åãä»ãã¤ãã¦ããã¾ããã®ã§äºããäºæ¿ä¸ããã
次åã®Splathon Advent Calendar 2018 - Adventarã®17æ¥ç®ã®è¨äºã¯ã
ã«ã£ãã¼ããã«ãããFactorioã«ã¤ãã¦æ¸ããã§ããã楽ãã¿ã«ã