¹ÊÕÏÅųý
´ÓÉÏÃæ¿ÉÒÔ¿´³ö£º¸Ã¶Ë¿Ú²»ÄÜÇ¿ÖƽøÐÐIEEE 802.1QµÄTrunkÉèÖã¬ÆäËû½Ó¿ÚÇé¿ö¶¼Ò»Ñù¡£´ËʱÏëµ½³¬¼¶ÒýÇæSUP720Ä£¿éÉÏ»¹ÓÐÒ»¸ö½Ó¿ÚûÓÐÓ㬿´ËüÄܲ»ÄܽøÐÐÇ¿ÖÆ·âÖ¡¡£½øÈë¸Ã¶Ë¿ÚµÄTrunkÅäÖ㬿´µ½ÈçÏÂÐÅÏ¢¡£
6509#conf t Enter configuration commands, one per line. End with CNTL/Z. 6509(config)#interface gigabitEthernet 5/2 6509(config-if)#switchport trunk ? allowed Set allowed VLAN characteristics when interface is in trunking mode encapsulation Set trunking encapsulation when interface is in trunking mode native Set trunking native characteristics when interface is in t runking mode pruning Set pruning VLAN characteristics when interface is in trunking mode |
Ï»Ïß±êʾ³öµÄ±ÈÔÚgigabitEthernet 3/48½Ó¿ÚÉÏ¿´µ½µÄ¶àÁËÒ»¸öencapsulationÑ¡ÏÓɴ˿ɼû£¬ÔÚ³¬¼¶ÒýÇæÄ£¿éµÄ½Ó¿ÚÉÏ¿ÉÒÔÇ¿ÖƽøÐÐIEEE 802.1QµÄTrunkÉèÖá£
ÊäÈëÈçÏÂÃüÁ
6509(config-if)#switchport trunk encapsulation £¿µÃµ½£º dot1q Interface uses only 802.1q trunking encapsulation when trunking isl Interface uses only ISL trunking encapsulation when trunking negotiate Device will negotiate trunking encapsulation with peer on interface ¼ÌÐø£º 6509(config-if)#switchport trunk encapsulation dot1q »Ø³µ£» 6509(config-if)#end 6509#write Building configuration... [OK] |
*×¢£º¸Ã6509ËùÓõÄIOS°æ±¾ÊÇVersion 12.2£¨17a£©SX¡£
ÎÒÃǽ«ÌøÏß½Óµ½¸Ã½Ó¿ÚÉÏ£¬ÔÙÀ´²âÊÔÍøÂ磬ÔÀ´µÄÎÊÌâÒѲ»¸´´æÔÚ¡£ÕâÁ½¸öVLANÄÚµÄÓû§·ÃÎÊÍøÒ³»Ö¸´Õý³££¬´øÓи½¼þµÄÓʼþÓÖ¿ÉÒÔÇáËÉ·¢ËÍÁË¡£
¾Ñé×ܽá
ÓÉÓÚCiscoµÄ6509 ºËÐĽ»»»»úÉÏ48¿ÚµÄ¿ìËÙ½»»»µçÄ£¿éÊÇĬÈ϶ԸÉÏß½øÐÐIEEE 802.1Q·âÖ¡µÄ£¬¶øÎÒÃǵݲÄÎÌØÍø¹Ü½»»»»úÇ¿ÖƶԸÉÏß½øÐÐIEEE 802.1Q·âÖ¡£¬ÕâÊÇÁ½¸ö³§¼ÒµÄ²úÆ·£¬Òò´Ë¿ÉÄܻᵼÖÂÊý¾Ý°ü´«Êä½øÐÐÐÒéµÄÐÉÌʱ²»ÄܺܺÃÆ¥ÅäµÄÇé¿ö¡£
´ËʱÎÒÃÇÓÖÏëµ½£¬ÔÚ³öÏÖÕâ¸öÎÊÌâ֮ǰºÜ³¤Ò»¶Îʱ¼ä£¬ÎÒÃǵÄÍøÂ綼ÊÇÕý³£µÄ£¬¶øµ±Ê±ÎÒÃǵÄ×ö·¨ÊÇ£ºÒ»¿ªÊ¼Ö»ÓÐÊÕ·¢Æ÷½ÓÔÚ6509 ³¬¼¶ÒýÇæSUP720Ä£¿égigabitEthernet 5/2¿ÚÉÏ£¬ÎÒÃÇÔڴ˽ӿÚÉϽøÐÐÁËÇ¿ÖÆIEEE 802.1Q·âÖ¡£¬ºóÀ´ÓÉÓÚ48¿ÚµÄ¿ìËÙ½»»»µçÄ£¿éÓпÕÓà½Ó¿Ú£¬ÎÒÃǾͽ«Æä¸ÄÔÚÁËgigabitEthernet 3/48¿ÚÉÏ£¬Ê¹ÓÃÁËĬÈÏIEEE 802.1Q·âÖ¡£¬µ«ÍøÂçʹÓÃÒ»Ö±Õý³£¡£Õâ´ÎÎÒÃǶÔÍøÂç½øÐÐÁËһЩµ÷Õû£¬ÖØÐÂÆô¶¯ÁËÒ»´ÎÎÒÃǵĺËÐĽ»»»»ú£¬½á¹û¾Í³öÏÖÁËÕâ¸öÎÊÌâ¡£Õâ˵Ã÷Èç¹ûÏȽ«³¬¼¶ÒýÇæÇ¿ÖƽøÐÐIEEE 802.1QµÄTrunkÉèÖ㬴ýÍøÂçÎȶ¨ºó£¬ÔÙ½«ÌøÏß½Ó»ØgigabitEthernet 3/48½Ó¿Ú£¬´ËʱCisco 6509 ½«Ê¹ÓÃĬÈϵÄIEEE 802.1Q·âÖ¡£¬Í¬°²ÄÎÌؽøÐиÉÏßÐÒéµÄÐÉÌ£¬ÕâÑùÊý¾Ý°üÔÚ´«Êäʱ½øÐÐÐÒéµÄÐÉ̾Ͳ»»á³öÏÖÎÊÌ⣬VLAN6ºÍVLAN7¾Í¿ÉÒÔÕý³£ÉÏÍø¡£ÎÒÃǺóÀ´ÓÖÕâÑùÊÔÑéÁËһϣ¬ÊÂʵ֤Ã÷ȷʵÈç´Ë¡£