ÉòÑôµçÄÔάÐÞÍø£¬ÉòÑôÉÏÃÅάÐÞµçÄÔ·þÎñ
µ±Ç°Î»ÖÃ: Ö÷Ò³ > ÍøÂçÉ豸¹ÊÕÏ>CCNPѧϰ֮·֮Voice VLANÓïÒôvlan >

CCNPѧϰ֮·֮Voice VLANÓïÒôvlan

ʱ¼ä:2017-5-23À´Ô´:www.sypcwx.cn ×÷Õß: ÉòÑôµçÄÔάÐÞÍøµã»÷:´Î
ÉòÑôµçÄÔάÐÞ£¬ÉÏÃÅάÐÞµçÄÔ
¡¡¡¡ÉòÑôµçÄÔάÐÞÉÏÃÅ·þÎñ13889116605£º ÔÚĬÈÏʱ£¬ÓïÒôVLANÌØÐÔÊǽûÓõġ£µ«¿ÉÒÔʹÓýӿÚÃüÁîswitchportvoicevlanÆôÓÃËü¡£ÔÚÆôÓÃÁËÓïÒôVLANÌØÐÔÖ®ºó£¬ËùÓв»´ø±ê¼ÇµÄÁ÷Á¿¶¼°´Õն˿ڵÄĬÈÏCOSÓÅÏȼ¶·¢ËÍ... ÔÚĬÈÏʱ£¬ÓïÒôVLANÌØÐÔÊǽûÓõġ£µ«¿ÉÒÔʹÓýӿÚÃüÁîswitchportvoicevlanÆôÓÃËü¡£ÔÚÆôÓÃÁËÓïÒôVLANÌØÐÔÖ®ºó£¬ËùÓв»´ø±ê¼ÇµÄÁ÷Á¿¶¼°´Õն˿ڵÄĬÈÏCOSÓÅÏȼ¶·¢ËÍ¡£¶ÔÓÚIEEE802.1Q»òIEEE802.1p´ø±ê¼ÇµÄÁ÷Á¿£¬COSÖµÊÇ·ÇÐÅÈεġ£ ÒÔÏÂÊÇÓïÒôVLANÅäÖÃÖ¸ÄÏ£º 1.Ó¦µ±ÔÚ½»»»»úµÄ·ÃÎʶ˿ÚÉÏÅäÖÃÓïÒôVLAN¡£¼´Ê¹ÔÚÖм̶˿ÚÉÏÅäÖÃÁËÓïÒôVLAN£¬Öм̶˿ÚÒ²²»Ö§³ÖËü¡£ 2.ÓïÒôVLANÓ¦µ±ÔÚ½»»»»úµÄIPµç»°¶ËÉϳÊÏÖ²¢ÓÐЧ£¬ÒÔ±ãÕýÈ·µÄ½øÐÐͨÐÅ¡£Ê¹ÓÃÌØȨEXECÃüÁîshowvlan,¿É²é¿´VLANÊÇ·ñ´æÔÚ£¬Èç¹û´æÔÚ£¬¾Í»áÏÔʾÔÚÊä³öÖС£ 3.ÔÚÆôÓÃVLAN֮ǰ£¬½¨Òé´ó¼ÒÔÚ½»»»»úÉÏÊäÈëÈ«¾ÖÅäÖÃÃüÁîmlsqos,ÒÑÆôÓÃQOS£¬²¢ÊäÈë½Ó¿ÚÃüÁîmlsqostrustcos,½«¶Ë¿Ú״̬ÉèÖÃΪÐÅÈÎģʽ 4.±ØÐëÈ·ÐÅÔÚÁ¬½Óµ½CiscoIPµç»°µÄ½»»»»ú¶Ë¿ÚÉÏÆôÓÃÁËCDP£¬ÒÔ·¢ËÍÅäÖÃÐÅÏ¢¡£Ä¬ÈÏÊÇËüÊÇÆôÓõģ¬Òò´Ë£¬³ý·ÇÄã½ûÓÃÁËËü£¬·ñÔò¾Í²»»áÓÃÎÊÌâ¡£ 5.ÔÚÅäÖÃÁËÓïÒôVLANÖ®ºó£¬PortFastÌØÐÔ¾Í×Ô¶¯ÆôÓÃÁË£¬µ«Èç¹û½ûÓÃÁËÓïÒôVLAN£¬PortFastÌØÐÔÔò²»»á×Ô¶¯½ûÓᣠ6.ÒªÈö˿ڻص½Ä¬ÈÏÉèÖ㬿ÉÒÔʹÓýӿÚÅäÖÃÃüÁînoswitchportvoicevlan. IPµç»°ÍøÂçÉè¼Æ 1.ΪIPµç»°×é¼þ£¨ÈçciscoIPµç»°¡¢ciscoCallManager¡¢CiscoIPSoftphone¿Í»§¶Ë¡¢IPÍø¹ØµÈ£©ÊµÏÖQos·ÖÀà¡¢±ê¼ÇºÍÓµÈû¹ÜÀí¡£QosÒª½«VoIPͨÐÅÁ÷ÉèÖÃΪ¸ßÓÅÏȼ¶£¬²¢ÓÅÏÈ´«Êä¸ßÓÅÏȼ¶¶ÓÁÐÖеÄͨÐÅÁ÷¡£ 2.½«VoIPͨÐÅÁ÷·ÅÔÚÒ»¸ö¶ÀÁ¢µÄVLANÖС£Îª¸øCiscoIPµç»°²¿ÊðÒ»¸ö¶ÀÁ¢µÄVLAN£¬Ò»ÖÖ¼òµ¥µÄ·½·¨ÊÇʹÓÃÓïÒôVLAN£¨¸¨ÖúVLAN£©¡£ 3.¿¼ÂÇʹÓÃÏßÉϹ©µç£¨inlinepower£©¸øCiscoIPµç»°¹©µç¡£CiscoIPµç»°ÒªÇóÓɽ»»»»úµçÔ´»òÏßÉϹ©µç¡£ 4.ºËʵÎïÀíµçÀÂÊÇ·ñÖ§³ÖIPµç»°¡£IPµç»°ºÍVoIP½â¾ö·½°¸ÒªÇóµçÀÂÖÁÉÙÊÇ5ÀàµçÀ¡£ VoIPµç»°ÍƼöÌØÐÔ 1.Qos VoIPͨÐÅÁ÷¶ÔÑӳٺͶ¶¶¯£¨Êý¾Ý°üÑӳٵı仯£©ÓÐÑϸñÒªÇó¡£ÎªÂú×ãIPµç»°µÄÒªÇó£¬CiscoʹÓôóÁ¿µÄIPQosÌØÐÔ£¬¶ÔͨÐÅÁ÷½øÐзÖÀà¡¢ÅŶӡ¢ÓµÈû¼à²âºÍÁ÷Á¿ÕûÐκÍѹËõ,ÒÔ±£ÕÏ×î´óÏ޶ȵؽµµÍÊý¾Ý°ü¶ªÊ§¡¢ÑӳٺͶ¶¶¯¡£µ±ÍøÂç·¢ÉúÓµÈüºó£¬QosÅäÖø³Óè¹Ø¼üÓ¦ÓýϸߵķþÎñÓÅÏȼ¶£¬ÒÔ±ãÔÚÍøÂç·¢ÉúÓµÈûʱ£¬¹Ø¼üÓ¦ÓõķþÎñÖÊÁ¿½µµÍµÄ½ÏÉÙ¡£ 2.ÓïÒôVLAN£¨¸¨ÖúVLAN£© CiscoIPµç»°ÓÐÒ»¸öÓÃÓÚÁ¬½ÓPCµÄ¶Ë¿Ú£¬Òò´ËºÜ¶àCiscoIPµç»°ÅäÖö¼ÈÃciscoIPµç»°´®Á¬Ò»Ì¨PC¡£ÓÉÓÚCiscoIPµç»°ºÍ¹¤×÷Õ¾Á¬½ÓµÄÊÇͬһ¸ö½»»»»ú½Ó¿Ú£¬Òò´Ë½«¸Ã½Ó¿Ú¼ÓÈëVLANÖкó£¬ÏàÓ¦µÄCiscoIPµç»°ºÍ¹¤×÷Õ¾½«Î»ÓÚͬһ¸öVLANÖС£Cisco½»»»»úÖ§³ÖÒ»ÖÖ¶ÀÌصŦÄÜ£¬ÕâÖÖ¹¦ÄÜÔÚciscoIOSÖб»³ÆΪÓïÒôVLAN£¬Ëü½«CiscoIPºÍ¹¤×÷Õ¾¼ÓÈ벻ͬµÄvlanÖС£Í¨¹ýʹÓÃÓïÒôVLAN£¬¿É½«½Ó¿Ú¶Ë¿ÚµÄVoIPͨÐÅÁ÷¼ÓÈëµ½ÁíÒ»¸öVLANÖС£Èç¹ûÏ£ÍûʹÓÃÓïÒôVLAN£¬ÄÇôֻÐèÒªÅäÖý»»»»ú£¬¶øÎÞÐèÔÚciscoIPµç»°ÉÏ×ö¶îÍâµÄÅäÖᣠ¾ßÌ幤×÷Ô­Àí£º 1.ÓÃÓÚ½«ciscoIPµç»°Á¬½Óµ½ÅäÖÃÁËÓïÒôVLANµÄ½»»»»ú 2.Á´Â·±»¼¤»îºó£¬½»»»»úÁ¢¿ÌÏòciscoIPµç»°·¢ËÍcisco·¢ÏÖЭÒé(CDP)ÏûÏ¢£¬ÆäÖаüº¬µäÐ͵ÄCDPÏûÏ¢£¬°üÀ¨ÓïÒôVLAN-ID 3.ciscoIPµç»°ÊÕµ½CDPÖ¡ºó£¬½âÊÍÓïÒôVLAN-ID£¬²¢¿ªÊ¼¸øVoIPͨÐÅÁ÷¼ÓÉÏ802.1q±ê¼Ç£¬È»ºó½«Æä·¢Ë͸ø¸ÃÓïÒôVLAN¡£ 4.CiscoIPµç»°»¹Ö¸¶¨³öÕ¾Ö¡±ê¼ÇµÄDSCP(DifferentiatedServicesCodePoint£¬Çø·Ö·þÎñ±àÂëµã)ºÍCos(ClassofService£¬·þÎñÀà±ð)Öµ¡£Ê¹ÓÃÓïÒôVLANʱ£¬¶ÔÓÚÀ´×ÔÆäPC¶Ë¿ÚÁ¬½ÓµÄ¹¤×÷Õ¾µÄÈëÕ¾Ö¡£¬CiscoIPµç»°²»Ìí¼ÓVLAN±ê¼Ç¡£Òò´Ë¹¤×÷Õ¾ÈÔλÓÚ½ÓÈëµÄVLAN¡£ ÍøÂç´ø¿í¹©Ó¦ Èç¹ûÏ£ÍûÉè¼Æ³É¹¦µÄIPµç»°ÍøÂ磬ÕýÈ·µÄ¹©Ó¦ÍøÂç´ø¿íÖÁ¹ØÖØÒª¡£ËùÓÐÓ¦Ó㨰üÀ¨ÓïÒô¡¢ÊÓƵºÍÊý¾ÝÓ¦Ó㩵Ä×Ü´ø¿í²»Äܳ¬¹ýÁ´Â·¿ÉÓôø¿íµÄ75%¡£¼´Ê¹ËùÓÐÓ¦ÓõĴø¿í×ÜÐèÇóµÍÓÚ¿ÉÓôø¿íµÄ75%£¬ÈÔ±ØÐë²ÉÓÃQosÉè¼Æ£¬È»¶ø£¬Èç¹ûÓ¦ÓõÄÐèÇ󳬹ýÁË¿ÉÓôø¿íµÄ75%£¬Ó¦Ôö¼ÓÁ´Â·»òʹÓôø¿í¸ü¸ßµØÁ´Â·¡£ ´ÓͨÐÅÁ÷µÄ½Ç¶È¿´£¬µ¥¸öIPµç»°ºô½ÐÓÉÁ½¸öÁ÷×é³É¡£ 1.ÓïÒôÔز¨Á÷---ÓÉ°üº¬Êµ¼ÊÓïÒôÑù±¾µÄRTP(Real-TimeTransportProtocol£¬ÊµÊ±´«ÊäЭÒé)Êý¾Ý°ü×é³É 2.ºô½Ð¿ØÖÆÐÅÁî---ÓÉÊôÓÚ¶àÖÖЭÒéÖ®Ò»£¨ÈçH.323»òMGCPmediaGatewayControlProtocol£¬Ã½ÌåÍø¹Ø¿ØÖÆЭÒ飩µÄÊý¾Ý°ü×é³É¡£¾ßÌåÊôÓÚÄÇÖÖЭÒ飬ȡ¾öÓÚ²ÎÓëºô½ÐµÄ¶Ëµã£¬ºô½Ð¿ØÖƹ¦ÄÜ°üÀ¨½¨Á¢¡¢Î¬»¤¡¢²ð³ýºÍÖض¨Ïòºô½ÐµÈ VoIPÊý¾Ý°üÓɵÚ2²ãÁ´Â·±¨Í·£¨14×Ö½Ú£©¡¢IP±¨Í·£¨20×Ö½Ú£©¡¢Óû§Êý¾Ý±¨£¨UDP£©±¨Í·£¨8×Ö½Ú£©¡¢RTP±¨Í·£¨12×Ö½Ú£©ºÍÓïÒô¸ºÔØ×é³É¡£Á´Â·±¨Í·µÄ³¤¶ÈËæʹÓõĵÚ2²ã½éÖʶøÒì¡£VoIPÊý¾Ý±¨´«ÊäµÄ¿ªÏúºÜÖØÒª¡£´ËÍ⣬ÓïÒô²ÉÑùÂʾö¶¨Á˱ÈÌØÂÊ¡£²ÉÑùÂÊËæÓïÒô±àÂë/½âÂëÆ÷¶øÒì¡£×î³£¼ûµÄ±àÂë/½âÂëÆ÷ÊÇG.711ºÍG.729£¬ËüÃÇʹÓõÄ×Ü´ø¿í£¨°üÀ¨IP±¨Í·ºÍµÚ2²ãÁ´Â·±¨Í·£©·Ö±ðÊÇ87.2kbit/sºÍ31.2kbit/s¡£ÔÚÌá³öIPµç»°µÄ½â¾ö·½°¸Ê±£¬±ØÐëʹÓðüÀ¨ËùÓб¨Í·ÔÚÄÚµÄ×ܱÈÂÊ£¬¼ÆËã²¢ÐÐÓïÒôºô½ÐÊýÁ¿¶àʱËùÐèÒªµÄ´ø¿íÁ¿£¬ÓÈÆä¶ÔÓÚµÍËÙWAN½Ó¿Ú¡£ ÓïÒôVLANµÄÅäÖà ÅäÖýÓÈëVLANºÍÓïÒôVLAN 1£©½øÈëÈ«¾Öģʽ configureterminal 2£©ÅäÖýÓÈëVLANºÍÓïÒôVLAN vlanvlanºÅ 3£©ÅäÖýÓÈëVLAN½Ó¿ÚºÍÓïÒôVLAN½Ó¿Ú£¬ÓÃÓÚµÚ3²ã·ÓÉÑ¡Ôñ interfacevlanvlanºÅ ipaddressµØÖ·ÑÚÂë noshut ÅäÖýÓÈëVLANºÍÓïÒôVLANµÄ½Ó¿Ú 1£©½øÈë½Ó¿Úģʽ interface½Ó¿Ú 2£©½«½Ó¿Ú¼ÓÈëµ½½ÓÈëVLAN switchportaccessvlan½ÓÈëVLANºÅ 3£©½Ó¿Ú¼ÓÈëµ½ÓïÒôVLAN switchportvoicevlanvlanºÅ|dot1p|none|untagged vlanºÅ£ºÔÚÖ¸¶¨µÄVLANÖÐת·¢ËùÓеÄÓïÒôÁ÷Á¿¡£È±Ê¡Ï£¬IPµç»°×ª·¢ÓïÒôÁ÷Á¿Í¨¹ý802.1Q¼°ÓÅÏȼ¶Îª5±ê¼ÇVLAN£¬ÓÃÓÚ½ÓÊÕ/·¢ËÍCiscoIPµç»°µÄͨÐÅÁ÷¡£ Dot1p£º¶ÔÓÚIPµç»°Í¨ÐÅÁ÷£¬Ê¹ÓÃ802.1pÓÅÏȼ¶±ê¼Ç£¬¶ÔÓÚÆäËüͨÐÅÁ÷£¬Ê¹ÓÃĬÈϵı¾µØvlan£¨vlan0£©×ª·¢¡£¶ÔÓÚ²»Ö§³ÖCDPµÄµÚ3·½IPµç»°£¬³£²ÉÓÃÕâÖÖÅäÖà None£º½ûÓÃÓïÒôVLAN¹¦ÄÜ£¬ciscoIPµç»°½«¸ù¾Ý×Ô¼ºµÄÅäÖÃÀ´·¢ËÍδ±ê¼ÇµÄÖ¡ Untagged£ºCiscoIPµç»°ÏÔʽµÄʹÓÃδ±ê¼ÇµÄÖ¡(ÓïÒôºÍPC¶¼Ê¹Óñ¾Õ÷VLAN) 4£©ÆôÓÃportfast¹¦ÄÜ spanning-treeportfast nÅäÖÃÏàÓ¦µÄQos 1£©ÆôÓÃQos mlsqos 2£©ÅäÖýӿڣ¬½«ÓïÒôÖ¡µÄCosÖµÓ³Éäµ½³öÕ¾¶ÓÁÐ wrr-queuecos-map45 wrr-queuecos-map3 7 3£©½«¶ÓÁÐ4ÅäÖÃΪÑϸñÓÅÏȼ¶¶ÓÁÐ priority-queueout ÅäÖýӿڵÄQos·ÖÀà 1£©½øÈë½Ó¿Úģʽ interface½Ó¿Ú 2£©ÅäÖýӿڻùÓÚÄÇÖÖÐÅÈÎÀàÐ͵ķÖÀà mlsqostrustcos|dscp   ÅäÖÃÁ÷Á¿µÄÓÅÏȼ¶ 1£©½øÈëÈ«¾Öģʽ configureterminal 2£©½øÈë½Ó¿Úģʽ ineterface½Ó¿Ú 3£©ÉèÖôÓIPµç»°½ÓÈë¶Ë¿ÚÊÕµ½Êý¾Ý±¨µÄÓÅÏȼ¶ switchportpriorityextend[cosÖµ|trust] cosÖµ£ºÈ¡ÖµÎª0-7£¬7Ϊ×î¸ß trust£ºÅäÖõ绰½ÓÈë¶Ë¿ÚÐÅÈδÓPCÊÕµ½µÄÊý¾ÝÓÅÏȼ¶   ¿ÉÒԿ϶¨µÄÊÇswitchportpriorityextendcos5µÄ×÷ÓÃÊÇ·¢CDP°ü¸øIPphoneÈÃËüÔÚÁ¬PCµÄ¿Ú×ÓÉϵ±ÊÕµ½°üʱÈç¹ûÊÇDot1pµÄÖ¡¾ÍÓÃ5»»µôËüµÄcos,Èç¹ûÊÇuntaggedµÄ°üÔò²»»á½øÐд¦Àí£¨²»ÄܸıäËüµÄ֡״̬¼ÓÒ»¸öDot1pµÄÖ¡Í·cosÊÇ5£©¡£¶ømlsqostrustcos¿ÉÊǿ϶¨µÄÊÇÕâ¸öÃüÁîÓ°ÏìµÄÊÇÔÚÁ¬IPµç»°µÄ½»»»»ú£¬¶ÔÊÕµ½µÄÀ´×ÔIPµç»°µÄÁ÷Á¿£¨ËùÓÐÁ÷Á¿°üÀ¨ÓïÒôºÍPCµÄ£©½øÐд¦Àí¡£ ½øÈë½»»»»úµÄ°üÓÐCOS£¬Ò²ÓÐDSCP¡£ÄãҪͨ¹ýÄÄÒ»¸ö×÷Ϊ·ÖÀàµÄÒÀ¾Ý´Ó¶ø½øÐд¦Àí£¨¶ÓÁУ¬Á÷Á¿¿ØÖƵȣ©ÄØ£¿ËùνµÄtrustcos¾ÍÊǸæËß½»»»»úÓÃcos×÷Ϊ·ÖÀàÒÀ¾Ý¡£½øÈë½»»»»úµÄ°üµÄCOSºÍDSCP²»Ò»¶¨ÓйØÁª¡£Èç¹ûÒ»¸ö°üµÄcosÊÇ5£¬ËüµÄDSCPÍêÈ«ÓпÉÄÜÊÇ0 ÑéÖ¤£º Switch#showinterfacef0/4switchport Name:Fa0/4 Switchport:Enabled AdministrativeMode:dynamicdesirable OperationalMode:down AdministrativeTrunkingEncapsulation:dot1q NegotiationofTrunking:On AccessModeVLAN:1(default) TrunkingNativeModeVLAN:1(default) VoiceVLAN:dot1p Administrativeprivate-vlanhost-association:none Administrativeprivate-vlanmapping:none Administrativeprivate-vlantrunknativeVLAN:none Administrativeprivate-vlantrunkencapsulation:dot1q Administrativeprivate-vlantrunknormalVLANs:none Administrativeprivate-vlantrunkprivateVLANs:none Operationalprivate-vlan:none TrunkingVLANsEnabled:ALL PruningVLANsEnabled:2-1001 CaptureModeDisabled CaptureVLANsAllowed:ALL Protected:false Appliancetrust:none
ÉÏһƪ:»ªÎªÈý²ã½»»»»úʵÏÖvlan¼ä»¥·Ã
²é¿´[CCNPѧϰ֮·֮Voice VLANÓïÒôvlan]ËùÓÐÆÀÂÛ
·¢±íÆÀÂÛ
Çë×Ô¾õ×ñÊØ»¥ÁªÍøÏà¹ØµÄÕþ²ß·¨¹æ£¬ÑϽû·¢²¼É«Çé¡¢±©Á¦¡¢·´¶¯µÄÑÔÂÛ¡£
Óû§Ãû£º ÑéÖ¤Â룺
ÍƼöÄÚÈÝ
¹ØÓÚÎÒÃÇ ·þÎñ¼Û¸ñ ÁªÏµÎÒÃÇ ÆóÒµÍøÕ¾ÓÅ»¯ ÉòÑôÍøÕ¾½¨Éè ÉòÑôάÐÞµçÄÔ