What are reasons to configure a Voice VLAN using the Auxillary VLAN feature instead of a Trunk + Native vLAN












4















Imagine this topology:



[PC] ------- [VOIP Phone] ------- [eth0/0 on a Switch]


And this configuration on the switch:



vlan 22
name DATA

vlan 33
name VOICE


There are two ways to have both the PC's traffic and the VOIP phone's traffic "arrive" on eth0/0 in distinct VLANs. 1. Use a Trunk port, 2. Use the Auxillary VLAN feature".



Option 1:



int eth0/0
switchport mode trunk
switchport trunk native vlan 22
switchport trunk allowed vlan 22,33


Option 2:



int eth0/0
switchport mode access
switchport access vlan 22
switchport voice vlan 33


The net effect of either of these is the same untagged traffic from the PC arrives and is accepted into VLAN 22 (the data VLAN), and tagged traffic from the VOIP phone arrives and is accepted into VLAN 33.



My question:



What are the benefits of using Option 1 or Option 2? What reasons exist that make either of these better than the other?










share|improve this question




















  • 1





    with option 2 you can use "spanning-tree portfast edge" as a global command to enable Portfast on all "switchport mode access" ports. Enabling "spanning-tree portfast trunk" with Option1 will set your edge-ports to portfast, but also the Trunks to your upstream switches which might be an unwanted option.

    – Andreas Schaefer
    Feb 1 at 18:46
















4















Imagine this topology:



[PC] ------- [VOIP Phone] ------- [eth0/0 on a Switch]


And this configuration on the switch:



vlan 22
name DATA

vlan 33
name VOICE


There are two ways to have both the PC's traffic and the VOIP phone's traffic "arrive" on eth0/0 in distinct VLANs. 1. Use a Trunk port, 2. Use the Auxillary VLAN feature".



Option 1:



int eth0/0
switchport mode trunk
switchport trunk native vlan 22
switchport trunk allowed vlan 22,33


Option 2:



int eth0/0
switchport mode access
switchport access vlan 22
switchport voice vlan 33


The net effect of either of these is the same untagged traffic from the PC arrives and is accepted into VLAN 22 (the data VLAN), and tagged traffic from the VOIP phone arrives and is accepted into VLAN 33.



My question:



What are the benefits of using Option 1 or Option 2? What reasons exist that make either of these better than the other?










share|improve this question




















  • 1





    with option 2 you can use "spanning-tree portfast edge" as a global command to enable Portfast on all "switchport mode access" ports. Enabling "spanning-tree portfast trunk" with Option1 will set your edge-ports to portfast, but also the Trunks to your upstream switches which might be an unwanted option.

    – Andreas Schaefer
    Feb 1 at 18:46














4












4








4








Imagine this topology:



[PC] ------- [VOIP Phone] ------- [eth0/0 on a Switch]


And this configuration on the switch:



vlan 22
name DATA

vlan 33
name VOICE


There are two ways to have both the PC's traffic and the VOIP phone's traffic "arrive" on eth0/0 in distinct VLANs. 1. Use a Trunk port, 2. Use the Auxillary VLAN feature".



Option 1:



int eth0/0
switchport mode trunk
switchport trunk native vlan 22
switchport trunk allowed vlan 22,33


Option 2:



int eth0/0
switchport mode access
switchport access vlan 22
switchport voice vlan 33


The net effect of either of these is the same untagged traffic from the PC arrives and is accepted into VLAN 22 (the data VLAN), and tagged traffic from the VOIP phone arrives and is accepted into VLAN 33.



My question:



What are the benefits of using Option 1 or Option 2? What reasons exist that make either of these better than the other?










share|improve this question
















Imagine this topology:



[PC] ------- [VOIP Phone] ------- [eth0/0 on a Switch]


And this configuration on the switch:



vlan 22
name DATA

vlan 33
name VOICE


There are two ways to have both the PC's traffic and the VOIP phone's traffic "arrive" on eth0/0 in distinct VLANs. 1. Use a Trunk port, 2. Use the Auxillary VLAN feature".



Option 1:



int eth0/0
switchport mode trunk
switchport trunk native vlan 22
switchport trunk allowed vlan 22,33


Option 2:



int eth0/0
switchport mode access
switchport access vlan 22
switchport voice vlan 33


The net effect of either of these is the same untagged traffic from the PC arrives and is accepted into VLAN 22 (the data VLAN), and tagged traffic from the VOIP phone arrives and is accepted into VLAN 33.



My question:



What are the benefits of using Option 1 or Option 2? What reasons exist that make either of these better than the other?







switch vlan switching trunk voice






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 1 at 14:57









Ron Maupin

68.3k1369126




68.3k1369126










asked Feb 1 at 13:39









rsicrsic

232




232








  • 1





    with option 2 you can use "spanning-tree portfast edge" as a global command to enable Portfast on all "switchport mode access" ports. Enabling "spanning-tree portfast trunk" with Option1 will set your edge-ports to portfast, but also the Trunks to your upstream switches which might be an unwanted option.

    – Andreas Schaefer
    Feb 1 at 18:46














  • 1





    with option 2 you can use "spanning-tree portfast edge" as a global command to enable Portfast on all "switchport mode access" ports. Enabling "spanning-tree portfast trunk" with Option1 will set your edge-ports to portfast, but also the Trunks to your upstream switches which might be an unwanted option.

    – Andreas Schaefer
    Feb 1 at 18:46








1




1





with option 2 you can use "spanning-tree portfast edge" as a global command to enable Portfast on all "switchport mode access" ports. Enabling "spanning-tree portfast trunk" with Option1 will set your edge-ports to portfast, but also the Trunks to your upstream switches which might be an unwanted option.

– Andreas Schaefer
Feb 1 at 18:46





with option 2 you can use "spanning-tree portfast edge" as a global command to enable Portfast on all "switchport mode access" ports. Enabling "spanning-tree portfast trunk" with Option1 will set your edge-ports to portfast, but also the Trunks to your upstream switches which might be an unwanted option.

– Andreas Schaefer
Feb 1 at 18:46










1 Answer
1






active

oldest

votes


















2














Option 1 carries some security risk because broadcast and flooded traffic for the VoIP VLAN will be sent to the interface, even if there is no phone attached. Also, most PCs do not understand VLAN tags (some can be configured to do so, which is the security risk), and they will receive what appears to be garbage, wasting bandwidth on the link.



Option 2 is preferred because the switch interface will automatically optimize for what is, or is not, attached to it.A Cisco phone and switch will use CDP to negotiate a trunk.



In some cases with a non-Cisco phone, you may be forced to use Option 1, or you may be able to use LLDP instead of CDP to negotiate the trunk.






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "496"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f56546%2fwhat-are-reasons-to-configure-a-voice-vlan-using-the-auxillary-vlan-feature-inst%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Option 1 carries some security risk because broadcast and flooded traffic for the VoIP VLAN will be sent to the interface, even if there is no phone attached. Also, most PCs do not understand VLAN tags (some can be configured to do so, which is the security risk), and they will receive what appears to be garbage, wasting bandwidth on the link.



    Option 2 is preferred because the switch interface will automatically optimize for what is, or is not, attached to it.A Cisco phone and switch will use CDP to negotiate a trunk.



    In some cases with a non-Cisco phone, you may be forced to use Option 1, or you may be able to use LLDP instead of CDP to negotiate the trunk.






    share|improve this answer




























      2














      Option 1 carries some security risk because broadcast and flooded traffic for the VoIP VLAN will be sent to the interface, even if there is no phone attached. Also, most PCs do not understand VLAN tags (some can be configured to do so, which is the security risk), and they will receive what appears to be garbage, wasting bandwidth on the link.



      Option 2 is preferred because the switch interface will automatically optimize for what is, or is not, attached to it.A Cisco phone and switch will use CDP to negotiate a trunk.



      In some cases with a non-Cisco phone, you may be forced to use Option 1, or you may be able to use LLDP instead of CDP to negotiate the trunk.






      share|improve this answer


























        2












        2








        2







        Option 1 carries some security risk because broadcast and flooded traffic for the VoIP VLAN will be sent to the interface, even if there is no phone attached. Also, most PCs do not understand VLAN tags (some can be configured to do so, which is the security risk), and they will receive what appears to be garbage, wasting bandwidth on the link.



        Option 2 is preferred because the switch interface will automatically optimize for what is, or is not, attached to it.A Cisco phone and switch will use CDP to negotiate a trunk.



        In some cases with a non-Cisco phone, you may be forced to use Option 1, or you may be able to use LLDP instead of CDP to negotiate the trunk.






        share|improve this answer













        Option 1 carries some security risk because broadcast and flooded traffic for the VoIP VLAN will be sent to the interface, even if there is no phone attached. Also, most PCs do not understand VLAN tags (some can be configured to do so, which is the security risk), and they will receive what appears to be garbage, wasting bandwidth on the link.



        Option 2 is preferred because the switch interface will automatically optimize for what is, or is not, attached to it.A Cisco phone and switch will use CDP to negotiate a trunk.



        In some cases with a non-Cisco phone, you may be forced to use Option 1, or you may be able to use LLDP instead of CDP to negotiate the trunk.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 1 at 14:57









        Ron MaupinRon Maupin

        68.3k1369126




        68.3k1369126






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Network Engineering Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f56546%2fwhat-are-reasons-to-configure-a-voice-vlan-using-the-auxillary-vlan-feature-inst%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith