3
ãããã¯ã¼ã¯æè¡ååä¸ã®ããã«è³¼å ¥ããæ¸ç±ããããã¯ã¼ã¯è¶ å ¥éãå ã®æ¼ç¿ãCisco Packet Tracer ã§å®éã«æ§ç¯ãã¦ã¿ã¾ããã
ä»åã®æ¼ç¿ã§æ±ã£ãVLANã¯ã
1ã¤ã®ç©ççãªã¤ã¼ãµããããããã¯ã¼ã¯ã®ä¸ã«è¤æ°ã®è«ççãªãããã¯ã¼ã¯ãæ§æããæè¡ã§ãã
VLANï¼Virtual LANï¼ã使ç¨ãããã¨ã§ã
ãããã¯ã¼ã¯å ã®ããã¼ããã£ã¹ãç¯å²ãåå²ã§ãã
ã»ãã¥ãªãã£ããããã¯ã¼ã¯å¹çãåä¸ããããã¨ãå¯è½ã§ãã
ãã®æ¼ç¿ã§åããã¤ã¹ãæå±ãããããã¯ã¼ã¯ãè«ççã«åå²ãããã¨ã§ã
ç°ãªããããã¯ã¼ã¯éã§ã®éä¿¡å¶å¾¡ãè¡ãããã»ã¹ãä½é¨ãã¾ããã
å®éã«æãåãããã¨ã§æºä¸ã§ã®ç¥èãç¾å®çãªç解ã«çµã³ã¤ãã
確ããªæè¡ã¨ãã¦å®çãã¦ããã®ãæãã¦ãã¾ãã
æ¼ç¿
æ¼ç¿æ¦è¦
æ¼ç¿ã¿ã¤ãã«ï¼VLAN
æ²è¼ãã¼ã¸ï¼P.108-118
æ¼ç¿æ¦è¦ï¼L2SWã3å°ä½¿ç¨ãã¦ãï¼ã¤ã®ç¬ç«ãããããã¯ã¼ã¯ãæ§ç¯ãã
åæ©å¨ã®é ç½®ã¨é ç·
ããããã¯ã¼ã¯å³ã
ãPC1ããããPC4ã
ãSwitch1ããããSwitch3ã
ããããã¯ã¼ã¯IPã¢ãã¬ã¹è¡¨ã
ãããã¯ã¼ã¯è¨å®
åæ©å¨ã®ãããã¯ã¼ã¯è¨å®ãè¡ã£ã¦ããã¾ããPCã®è¨å®ã¯GUIã§è¡ãã¾ãããã«ã¼ã¿ã«é¢ãã¦ã¯ãCCNAåå¼·ã®ãããCLIããã³ãã³ãã«ã¦è¨å®ãã¦ãã¾ãã
ãPC1ããããPC4ã
å ¨PCã«åãã»ã°ã¡ã³ãï¼192.168.1.0 / 24ï¼ã®IPã¢ãã¬ã¹ãè¨å®ãã¾ãã
VLANãè¨å®ããªããã°ãã¹ã¦ã®åPCéã®éä¿¡ã¯å¯è½ã§ãã
ãSwitch1ã
Switch>enableÂ
Switch#configure terminal
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#vlan 20
Switch(config-vlan)#exit
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/3
Switch(config-if)#switchport mode trunkÂ
Â
ãSwitch2ã
Switch>enableÂ
Switch#configure terminal
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode trunkÂ
Switch(config)#vlan 20
Switch(config-vlan)#exit
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport mode trunkÂ
Â
ãSwitch3ã
Switch>enableÂ
Switch#configure terminal
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#vlan 20
Switch(config-vlan)#exit
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/3
Switch(config-if)#switchport mode trunkÂ
Â
çé確èª
PC0ããå端æ«ã¸ã®PINGçéã確èªãã
ãâ PC0ï¼192.168.1.10ï¼ããPC1ï¼192.168.1.20ï¼ã¸PING
ãâ¡PC0ï¼192.168.1.10ï¼ããPC2ï¼192.168.1.30ï¼ã¸PING
ãâ¢PC0ï¼192.168.1.10ï¼ããPC3ï¼192.168.1.40ï¼ã¸PING
VLAN10ãè¨å®ãã¦ããPC2(192.168.1.30)ã®ã¿PINGçéãã§ãã¦ãã¾ãï¼
Â
åèæ¸ç±
æ¸ç±åï¼ãããã¯ã¼ã¯è¶
å
¥éãæãåãããªããå¦ã¶IPãããã¯ã¼ã¯Â
èè
ï¼GENEÂ
åºç社ï¼æè¡è©è«ç¤¾
Â