ä¾ä¸ï¼ãé
ç½®ç¯å¢åæ°ã1. PC1ãPC2åPC3åå«è¿æ¥å°äºå±äº¤æ¢æºSwitchAç端å£E0/1 ãE0/2å E0/3ï¼ç«¯å£åå±äºVLAN10ã20å30ï¼æå¡å¨è¿æ¥å°ç«¯å£G2/1ï¼å±äºVLAN100ã2. PC1çIPå°å为10.1.1.1/24ï¼PC2çIPå°å为10.1.1.2/24ï¼PC3çIPå°å为10.1.1.3/24ï¼æå¡å¨çIPå°å为10.1.1.254/24ããç»ç½éæ±ã1. PC1åPC2ä¹é´å¯ä»¥äºè®¿ï¼2. PC1åPC3ä¹é´å¯ä»¥äºè®¿ï¼3. PC1ãPC2åPC3é½å¯ä»¥è®¿é®æå¡å¨ï¼4. å
¶ä½çPCé´è®¿é®åç¦æ¢ããSwitchAç¸å
³é
ç½®ã1. å建ï¼è¿å
¥ï¼VLAN10ï¼å°E0/1å å
¥å°VLAN10[SwitchA]vlan 10[SwitchA-vlan10]port Ethernet 0/12. å建ï¼è¿å
¥ï¼VLAN20ï¼å°E0/2å å
¥å°VLAN20[SwitchA]vlan 20[SwitchA-vlan20]port Ethernet 0/23. å建ï¼è¿å
¥ï¼VLAN30ï¼å°E0/3å å
¥å°VLAN30[SwitchA]vlan 30[SwitchA-vlan30]port Ethernet 0/34. å建ï¼è¿å
¥ï¼VLAN100ï¼å°G2/1å å
¥å°VLAN100[SwitchA]vlan 100[SwitchA-vlan100]port GigabitEthernet 2/15. é
置端å£E0/1为Hybrid端å£ï¼è½å¤æ¥æ¶VLAN20ã30å100åè¿æ¥çæ¥æ[SwitchA]interface Ethernet 0/1[SwitchA-Ethernet0/1]port link-type hybrid[SwitchA-Ethernet0/1]port hybrid vlan 20 30 100 untagged6. é
置端å£E0/2为Hybrid端å£ï¼è½å¤æ¥æ¶VLAN10å100åè¿æ¥çæ¥æ[SwitchA]interface Ethernet 0/2[SwitchA-Ethernet0/2]port link-type hybrid[SwitchA-Ethernet0/2]port hybrid vlan 10 100 untagged7. é
置端å£E0/3为Hybrid端å£ï¼è½å¤æ¥æ¶VLAN10å100åè¿æ¥çæ¥æ[SwitchA]interface Ethernet 0/3[SwitchA-Ethernet0/3]port link-type hybrid[SwitchA-Ethernet0/3]port hybrid vlan 10 100 untagged8. é
置端å£G2/1为Hybrid端å£ï¼è½å¤æ¥æ¶VLAN10ã20å30åè¿æ¥çæ¥æ[SwitchA]interface GigabitEthernet 2/1[SwitchA-GigabitEthernet2/1]port link-type hybrid[SwitchA-GigabitEthernet2/1]port hybrid vlan 10 20 30 untaggedä¾äºï¼ãé
ç½®ç¯å¢åæ°ã1. PC1ãPC2åPC3åå«è¿æ¥å°äºå±äº¤æ¢æºSwitchAç端å£E0/1 ãE0/2å E0/3ï¼ç«¯å£åå±äºVLAN10ã20å30ï¼PC4åPC5åå«è¿æ¥å°äºå±äº¤æ¢æºSwitchBç端å£E0/1åE0/2ï¼ç«¯å£åå±äºVLAN10å20ï¼2. SwitchAéè¿ç«¯å£G2/1ï¼è¿æ¥å°SwitchBç端å£G1/1ï¼SwitchAç端å£G2/1åSwitchBç端å£G1/1åä¸æ¯Trunk端å£ï¼3. PC1çIPå°å为10.1.1.1/24ï¼PC2çIPå°å为10.1.1.2/24ï¼PC3çIPå°å为10.1.1.3/24ï¼PC4çIPå°å为10.1.1.4/24ï¼PC5çIPå°å为10.1.1.5/24ããç»ç½éæ±ã1. PC1åPC3ä¹é´å¯ä»¥äºè®¿ï¼2. PC2åPC3ä¹é´å¯ä»¥äºè®¿ï¼3. PC1åPC4ä¹é´å¯ä»¥äºè®¿ï¼4. PC2åPC5ä¹é´å¯ä»¥äºè®¿ï¼5. å
¶ä½PCä¹é´åç¦æ¢äºç¸è®¿é®ããSwitchAç¸å
³é
ç½®ã1. å建ï¼è¿å
¥ï¼VLAN10ï¼å°E0/1å å
¥å°VLAN10[SwitchA]vlan 10[SwitchA-vlan10]port Ethernet 0/12. å建ï¼è¿å
¥ï¼VLAN20ï¼å°E0/2å å
¥å°VLAN20[SwitchA]vlan 20[SwitchA-vlan20]port Ethernet 0/23. å建ï¼è¿å
¥ï¼VLAN30ï¼å°E0/3å å
¥å°VLAN30[SwitchA]vlan 30[SwitchA-vlan30]port Ethernet 0/34. é
置端å£E0/1为Hybrid端å£ï¼è½å¤æ¥æ¶VLAN30åè¿æ¥çæ¥æ[SwitchA]interface Ethernet 0/1[SwitchA-Ethernet0/1]port link-type hybrid[SwitchA-Ethernet0/1]port hybrid vlan 30 untagged5. é
置端å£E0/2为Hybrid端å£ï¼è½å¤æ¥æ¶VLAN30åè¿æ¥çæ¥æ[SwitchA]interface Ethernet 0/2[SwitchA-Ethernet0/2]port link-type hybrid[SwitchA-Ethernet0/2]port hybrid vlan 30 untagged6. é
置端å£E0/3为Hybrid端å£ï¼è½å¤æ¥æ¶VLAN10å20åè¿æ¥çæ¥æ[SwitchA]interface Ethernet 0/3[SwitchA-Ethernet0/3]port link-type hybrid[SwitchA-Ethernet0/3]port hybrid vlan 10 20 untagged7. é
置端å£G2/1为Hybrid端å£ï¼è½å¤æ¥æ¶å¹¶éä¼ VLAN10å20åè¿æ¥çæ¥æ[SwitchA]interface GigabitEthernet 2/1[SwitchA-GigabitEthernet2/1]port link-type hybrid[SwitchA-GigabitEthernet2/1]port hybrid vlan 10 20 taggedãSwitchBç¸å
³é
ç½®ã1. å建ï¼è¿å
¥ï¼VLAN10ï¼å°E0/1å å
¥å°VLAN10[SwitchB]vlan 10[SwitchB-vlan10]port Ethernet 0/12. å建ï¼è¿å
¥ï¼VLAN20ï¼å°E0/2å å
¥å°VLAN20[SwitchB]vlan 20[SwitchB-vlan20]port Ethernet 0/23. é
置端å£G1/1为Hybrid端å£ï¼è½å¤æ¥æ¶å¹¶éä¼ VLAN10å20åè¿æ¥çæ¥æ[SwitchB]interface GigabitEthernet 2/1[SwitchB-GigabitEthernet2/1]port link-type hybrid[SwitchB-GigabitEthernet2/1]port hybrid vlan 10 20 taggedãè¡¥å
说æã对äºHybrid端å£æ¥è¯´ï¼å¯ä»¥åæ¶å±äºå¤ä¸ªVLANãè¿äºVLANåå«æ¯è¯¥Hybrid端å£çPVIDï¼ä»¥åæå·¥é
ç½®çå°untaggedå°åå°taggedå°æ¹å¼çVLANãä¸å®è¦æ³¨æ对åºç«¯å£çVLANé
ç½®ï¼ä¿è¯æ¥æè½å¤è¢«ç«¯å£è¿è¡æ£å¸¸çæ¶åå¤çãå©ç¨Hybrid端å£çç¹æ§ââä¸ä¸ªç«¯å£å¯ä»¥å±äºå¤ä¸ªä¸åçVLANï¼æ¥å®æåå±ä¸åVLANå
çåç½æ®µPCæºç访é®éæ±ãæ¤åºç¨å¨äºå±ç½ç»ä¸ï¼å¯¹ç¸åç½æ®µç主æºè¿è¡è®¿é®æéçæ§å¶ãææ»ç»çhybrid端å£ç设计ç®çæ¯ââå®ç°ä¸åvlanä¹é´çäºéï¼è¿ä¸ªåè½éè¿accessåtrunkå£æ¯å®ç°ä¸äºçã
温馨提示:答案为网友推荐,仅供参考