CCIEÊÔÑ鱸¿¼Ö®½»»»VLAN¼ä·ÓÉ
°æÈ¨ÉùÃ÷£ºÔ´´×÷Æ·£¬ÈçÐè×ªÔØ£¬ÇëÓë×÷ÕßÁªÏµ¡£·ñÔò½«×·¾¿·¨ÂÉÔðÈΡ£ |
VLAN¼ä·Óɵķ½·¨
·½·¨Ò» ·ÓÉÆ÷µÄÿ¸ö½Ó¿Ú¶ÔӦÿ¸övlan£¬ÀûÓ÷ÓÉÐÒéʵÏÖvlanÖ®¼äµÄ·ÓÉ£¬ÕâÖÖ·½·¨ÊÜ·ÓÉÆ÷ת·¢ÄÜÁ¦µÄÏÞÖÆ£¬ÇÒÕ¼ÓôóÁ¿µÄ·ÓÉÆ÷¶Ë¿Ú ·½·¨¶þ ÀûÓÃÖм̶˿ڣ¨isl»ò802.1Q£©ÊµÏÖ¶àVLANºÍ·ÓÉÆ÷×Ó½Ó¿ÚµÄģʽ£¬ÊµÏÖµ¥±Û·ÓÉ£¬ÕâÖÖ·½·¨×ª·¢´ø¿íÊÜÖмÌÁ´Â·´ø¿íÏÞÖÆ ·½·¨Èý ²ÉÓü¯³ÉÁË·ÓÉ´¦ÀíÆ÷µÄ½»»»»ú£¨3²ã½»»»»ú£©Íê³ÉVLAN¼ä·ÓÉ£¬ÕâÖÖ·½·¨È«²¿²ÉÓÃÄÚ²¿½»»»Á´Â·½øÐн»»»£¬¾ßÓÐËٶȸߣ¬ÎÞ³åͻӰÏìµÈÓŵ㠶à²ã½»»»»úʵÏÖVLAN¼ä·ÓÉ
ͨ¹ýʹÓü¯³ÉµÄµÚ3²ãÄ£¿é»ò¸½Êô¿¨£¬¿ÉÒÔʵÏÖvlan¼ä·ÓɵÄÑ¡Ôñ£¬Í¬Ê±¿ÉÒÔÖ±½Ó·ÃÎʱ³°å×ÜÏߣ¬Ìá¸ßÁ˽»»»ËÙ¶È¡£Â·ÓÉÆ÷±»¸ß¶È¼¯³Éµ½½»»»»úÖУ¬Ê¹µÃ¸æËß·ÓÉÑ¡ÔñÌØÐÔ¸üÈÝÒ×ʵÏÖ¡£ ÏÂͼÊÇÏàÓ¦µÄ·ÓÉ´¦ÀíÆ÷Ä£¿é ΪÁËʵÏÖVLAN¼äµÄ·ÓÉ£¬½»»»»ú±ØÐëʹÓõÚ3²ãµØÖ·À´Íê³É¡£¶à²ã½»»»»úÖ§³Ö¶àÖÖ²»Í¬ÀàÐ͵ĵÚ3²ã½Ó¿Ú£º 1£® ·ÓÉ½Ó¿Ú Â·Óɶ˿ÚÊÇÒ»ÖÖÎïÀí½Ó¿Ú£¬ËüÀàËÆÓÚ´«Í³Â·ÓÐÆ÷ÉÏÅäÖÃÁ˵Ú3²ãµØÖ·µÄ¶Ë¿Ú¡£Óë½ÓÈë¶Ë¿Ú²»Í¬µÄÊÇ£¬Â·Óɶ˿ڲ»ÓëÌØ¶¨VLANÏà¹ØÁª¡£Â·Óɶ˿ÚÀàËÆÓÚÆÕͨµÄ·ÓÉÆ÷¶Ë¿Ú£¬²»Í¬Ö®´¦ÔÚÓëËü²»ÄÜÏñ·ÓÉÆ÷ÄÇÑùÖ§³Ö×Ó½Ó¿Ú¡£ ·Óɶ˿ÚÓÃÓÚµã¶ÔµãÁ´Â·£¬Â·Óɶ˿ڵĵäÐÍÓ¦ÓþÍÊÇÁ¬½ÓWAN·ÓÉÆ÷ºÍ°²È«É豸¡£ÔÚ¶à²ã½»»»»úÍøÂçÖУ¬Â·Óɶ˿ڴó¶àÊý¶¼ÅäÖÃÓÚÔ°ÇøÖ÷¸É×ÓÄ£¿éÖеĽ»»»»úÖ®¼ä¡£ ÅäÖùý³Ì£º 1£© ½øÈëÈ«¾Öģʽ configure terminal 2£© ½øÈë½Ó¿Úģʽ interface ½Ó¿Ú 3£© ÅäÖÃΪ·ÓÉ¶Ë¿Ú no switchport °¸Àý£º sw(config)#interface g0/1 sw(config-if)#ip address 192.168.0.1 255.255.255.0 % IP addresses may not be configured on L1 Links ³öÏÖ´íÎó£¬ÒòΪĬÈÏÇé¿öÏ£¬½»»»»úµÄ½Ó¿Ú¶¼ÊǽÓÈëģʽ sw(config-if)#no switchport sw(config-if)#ip address 192.168.0.1 255.255.255.0 sw(config-if)#end °¸Àý£º CCIE-LAB(V180) ÌâĿҪÇó£º SW1ºÍSW2µÄFA0/3½Ó¿ÚÓëR3ÏàÁ¬£¬IPµØÖ·ÎªYY.YY.13.2/30,YY.YY.31.2/30 ÅäÖ㺠SW1 Configure terminal Interface f0/3 No switchport Ip address 11.11.13.2 255.255.255.252 SW2 Config termi Interface f0/3 No switchport Ip address 11.11.31.2 255.255.255.252 CCIE-LAB(V210) ÌâĿҪÇó£º ÅäÖÃSW1µÄFA0/1,FA0/6£¬SW2µÄFA0/2,FA0/4,FA0/5½Ó¿ÚµÄIPµØÖ·£¬ÓÃÓÚºóÃæµÄOSPF·ÓÉËùÓÃ(¾ßÌåIPµØÖ·²é¿´ÍØÆË) ÅäÖ㺠SW1 Config termi Interface f0/1 No switchport Ip address 11.11.17.7 255.255.255.0 Interface f0/6 No switchport Ip address 11.11.67.7 255.255.255.0 SW2 config termi Interface f0/2 No switchport Ip address 11.11.28.8 255.255.255.0 Interface f0/4 No switchport Ip address 11.11.48.8 255.255.255.0 2£® ½»»»ÐéÄâ½Ó¿Ú ½»»»»úÐéÄâ½Ó¿Ú(Switch Virtual Interface)ÊÇÒ»ÖÖµÚ3²ã½Ó¿Ú£¬ËüÊÇΪÔÚ¶à²ã½»»»»úÉÏÍê³ÉVLAN¼ä·ÓÉÑ¡Ôñ¶øÅäÖõĽӿڡ£SVIÊÇÒ»ÖÖÓëVLAN IDÏà¹ØÁªµÄÐéÄâVLAN½Ó¿Ú£¬ÆäÄ¿µÄÔÚÓÚÆôÓøÃVLANÉϵÄ·ÓÉÑ¡ÔñÄÜÁ¦¡£ ÅäÖùý³Ì£º 1£© ½øÈëÈ«¾Öģʽ configure terminal 2£© ½øÈë½Ó¿Úģʽ interface vlan vlanID 3£© ½øÐеÚ3²ãµÄÅäÖà ip address network-address netmask 4£© ÆôÓÃ½Ó¿Ú no shutdown 5£© ÑéÖ¤½á¹û show running interface vlan ºÅ °¸Àý£º sw(config)#inteface vlan 10 sw(config-if)#ip address 10.10.1.1 255.0.0.0 sw(config-if)#no shut sw(config-if)#interface vlan 20 sw(config-if)#ip address 10.20.1.1 255.0.0.0 sw(config-if)#no shut sw#show running interface vlan 10 sw#show interface vlan 20 °¸Àý£º CCIE-LAB(V135) ÌâĿҪÇó£º configure SVI interface for vlan 30 and vlan 50,it is for ospf and EIGRP routing later. ÅäÖ㺠SW1 Config termi Interface vlan 30 Ip address 11.11.57.1 255.255.255.0 No shut Interface vlan 50 Ip address 11.11.37.1 255.255.255.0 No shut CCIE-LAB(V142)
ÌâĿҪÇó£º SW1½¨Á¢VLANA(vlan2)¶Ë¿Ú£¬µØÖ·142.1.30.7/24£¬SW1½«²ÎÓ벿·Ö·ÓÉ SW2½¨Á¢VLANB(vlan3)¶Ë¿Ú£¬µØÖ·142.1.8.8/24£¬SW2²»²ÎÓë·ÓÉ£¬µ«ÒªÇóÔÚ×öÍêIGP·ÓɺóËùÓзÓÉÆ÷¶¼ÄÜ·ÃÎÊSw1ºÍSw2µÄÃüÁîÐÐģʽ¡£ ÅäÖ㺠SW1 Config termi Interface vlan 2 Ip address 142.1.30.7 255.255.255.0 No shut Interface vlan 3 Ip address 142.1.8.8 255.255.255.0 No shut °¸Àý£º CCIE-LAB(v148) ÌâĿҪÇó£º Using a switch virtual interface,add Ip address yy.yy.62.8/25 to SW2.Make sure you do have connectivity to other devices on that network segment. ÅäÖÃÒªÇó£º SW2 Config termin Interface vlan 62 Ip address 11.11.62.8 255.255.255.128 No shut CCIE-LAB£¨Vyy£© ÌâĿҪÇó£º Îªvlan D£¨vlan 14£©ÆôÓÃSVI£¬IPµØÖ·Îªyy.yy.13.7/24 ÅäÖ㺠SW1 Config ter Interface vlan 14 Ip address 11.11.13.7 255.255.255.0 No shut ʹÓý»»»»úÐéÄâ½Ó¿ÚʵÏÖVLAN¼ä·ÓÉÑ¡ÔñµÄÅäÖùý³Ì£º 1£© ½øÈëÈ«¾Öģʽ config terminal 2£© ÆôÓöà²ã½»»»»úµÄ·Óɹ¦ÄÜ ip routing 3£© Ñ¡Ôñ·ÓÉÐÒ飬ÓÃÓÚvlan¼äµÄ·ÓÉ(¿ÉÑ¡£© router ·ÓÉÐÒé 4£© ¶¨ÒåvlanµÄSVI½Ó¿Ú interface vlan vlanID 5£© ÅäÖõÚ3²ã²ÎÊý ip address ÿ¸öVLANµÄÍø¹ØµØÖ· ÑÚÂë 6£© ÆôÓÃ½Ó¿Ú no shut 7£© ÑéÖ¤½á¹û °¸Àý£º sw(config)#ip routing sw(config)#router rip sw(config-router)#network 192.168.10.0 sw(config-rotuer)#network 192.168.20.0 sw(config)#interface vlan 10 sw(config-if)#ip address 192.168.10.1 255.255.255.0 sw(config-if)#no shut sw(config-if)#interface vlan 20 sw(config-if)#ip address 192.168.20.1 255.255.255.0 sw(config-if)#no shut 3.µÚ3²ãEtherchannel½Ó¿Ú
µ¥±Û·ÓÉ
²ÉÓõ¥±Û·ÓÉÆ÷µÄ×î´óÓŵãÊǽÚÔ¼Á˽»»»»úºÍ·ÓÉÆ÷µÄ½Ó¿Ú£¬µ«¿ÉÄÜ´øÀ´Â·ÓÉÆ÷²úÉú¹ýÔØ, ÿ¸ö vlan´ø¿í²»×ã»òÕßIOS°æ±¾¹ýµÍ£¬µ¼Ö½öÖ§³ÖISL·â×°£¬²»Ö§³Ödot1q µÈÇé¿ö·¢Éú¡£ µ¥±Û·ÓɵÄÅäÖ÷½·¨ÐèҪ·ÓÉÆ÷Ö§³ÖTrunk ·â×°ÀàÐÍ£¬Í¬Ê±»¹ÐèҪ·ÓÉÆ÷Ö§³Ö×Ó½Ó¿Ú£¬²¢ÔÚ×Ó½Ó¿Ú ÉÏÅäÖø÷ÖÖ3 ²ã·ÓÉÌØÐÔ¡£¸Ã½Ó¿Ú±ØÐëÊÇ¿ìËÙÒÔÌ«¿Ú»ò¼ª±ÈÌØ½Ó¿Ú£¨>100M£© ÅäÖùý³Ì£º ·ÓÉÆ÷²¿·Ö£º 1£© ½øÈëÈ«¾Öģʽ configure terminal 2£© ½øÈë½Ó¿Úģʽ interface ½Ó¿Ú £¨¸Ã½Ó¿ÚÊÇÓë½»»»»úÏàÁ¬µÄtrunk¸ÉµÀ£© 3£© Ö÷½Ó¿ÚÖв»ÄÜÅäÖÃipµØÖ· no ip address 4£© ¸ù¾ÝvlanµÄÊýÁ¿½¨Á¢×Ó½Ó¿Ú interface ½Ó¿Ú.×Ó½Ó¿Ú 5£© ÉèÖõÚ3²ãµÄ²ÎÊý ip address ¶ÔÓ¦vlanµÄÍø¹ØµØÖ· ×ÓÍøÑÚÂë 6£© ÅäÖÃÁ´Â·¾Û¼¯£¨trunking£©·â×°ºÍ¶ÔÓ¦µÄvlan encapsulation [dot1q|isl] vlanID ½»»»»ú²¿·Ö£º 1£© ½øÈëÈ«¾Öģʽ configure terminal 2£© ½øÈë½Ó¿Úģʽ interface ½Ó¿Ú (Óë·ÓÉÆ÷ÏàÁ¬µÄ¸ÉµÀ½Ó¿Ú) 3£© ÅäÖøýӿÚtrunkµÄ·â×°ÀàÐÍ switchport trunk encapsulation [dot1q|isl] switchport mode trunk °¸Àý£º R1(config)#interface f0/1 R1(config-if)#no ip address R1(config-if)#no shut R1(config-if)#interface f0/1.1 R1(config-if)#encapsulation dot1q 10 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#interface f0/1.2 R1(config-if)#encapsulation dot1q 20 R1(config-if)#ip address 192.168.2.1 255.255.255.0 R1(config-if)#interface f0/1.3 R1(config-if)#encapsulation dot1q 30 R1(config-if)#ip address 192.168.3.1 255.255.255.0 Sw(config)#interface f0/1 Sw(config-if)#switchport trunk encapsulation dot1q Sw(config-if)#switchport mode trunk °¸Àý£º CCIE-LAB(V133) ÌâĿҪÇó£º R1ÓëR2µÄÒ»¸ö¿ìËÙÒÔÌ«¿Ú£¬±»»®µ½2¸öVLANÖУ¬´ó¼ÒÒª²ÉÓÃÔÚ·ÓÉÆ÷×Ó½Ó¿ÚÉÏ·â×°ÏàÓ¦µÄVLAN£¬²¢ÇÒTRUNKģʽΪDOT1Q¡£Ïà¶ÔÓ¦½»»»»úµÄ¶Ë¿ÚΪTURNK£¬Ä£Ê½Îªdot1Q£¬ÔÊÐíÏàÓ¦VLANͨ¹ý¡£ vlan 10 name vlan bb1 vlan 20 name vlan D vlan 2 name vlan A ÅäÖ㺠R1 Config term Interface f0/0 No ip address Interface f0/0.1 Encapsulation dot1q 10 Ip address 150.100.1.1 255.255.255.0 Interface f0/0.2 Encapsulation dot1q 20 Ip address 11.11.12.1 255.255.255.0 R2 Config term Interface f0/0 No ip address Interface f0/0.1 Encapsulation dot1q 20 Ip address 11.11.12.2 255.255.255.0 Interface f0/0.2 Encapsulation dot1q 2 Ip address 11.11.23.1 255.255.255.0 Sw1 Config terminal Interface f0/1 Switchport trunk encapsulation dot1q Switchport mode trunk Switchport trunk allowed vlan none Switchport trunk allowed vlan 10,20 Interface f0/2 Switchport trunk encap dot1q Switchport mode trunk Switchport trunk allowed vlan none Switchport trunk allowed vlan 2,20 CCIE-LAB(V135)
ÌâĿҪÇó£º R6µÄFA0/1Æð×Ó½Ó¿Ú£¬·âװģʽΪDOT1Q£¬×öµ¥±Û·ÓÉ£¬Ö»ÔÊÐíÏàÓ¦µÄvlan ÅäÖ㺠R6 Config terminal Interface f0/1 No ip address No shut Interface f0/1.1 Encapsulation dot1q 13 Ip address 11.11.68.6 255.255.255.0 Interface f0/1.2 Encapsulation dot1q 60 Ip address 192.2.1.11 255.255.255.0 SW2 Config terminal Interface f0/6 Switchport trunk encapsulation dot1q Switchport mode trunk Switchport trunk allowed vlan none Switchport trunk allowed vlan 13,60 CCIE-LAB(YY)
ÌâĿҪÇó£º R6µÄfa0/0ʹÓõ¥±Û·ÓÉ,°üÀ¨Á½¸ö½Ó¿Ú£¬fa0/0.1Á¬½Óbb1£¬fa0/0.XXÁ¬½Óbb3£¬ÒªÏÞÖÆ¸ÃÓеÄvlan¡£ ÅäÖ㺠SW1 config terminal interface f0/6 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 15,17 R6 config terminal interface f0/0 no ip address no shut inteface f0/0.1 encapsulation dot1q 15 ip address 150.1.1.11 255.255.255.0 interface f0/0.2 encapsulation dot1q 17 ip address 192.168.2.11 255.255.255.0 ±¾Îijö×Ô ¡°ÎÞÁÄÉú»î£¬»ý¼«Ãæ¶Ô¡± ²©¿Í£¬×ªÔØÇëÓë×÷ÕßÁªÏµ£¡ ±¾Îijö×Ô 51CTO.COM¼¼Êõ²©¿Í |



hello_me
²©¿Íͳ¼ÆÐÅÏ¢
ÈÈÃÅÎÄÕÂ
×îÐÂÆÀÂÛ
ÓÑÇéÁ´½Ó
