Senin, 18 Maret 2019

Assigning a single switchport to different VLANs





















1






























I've been trying to figure out how to achieve the outcome below.



VLAN Name                             Status    Ports

---- -------------------------------- --------- -------------------------------

232 VLAN 10 active Fa3/0/1,Fa3/0/2,Fa3/0/3,Fa3/0/4,

Fa3/0/5,Fa3/0/14,Fa3/0/15,



233 VLAN 20 active Fa3/0/1, Fa3/0/2, Fa3/0/3,

Fa3/0/4, Fa3/0/5,Fa3/0/17,

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

1004 fddinet-default act/unsup

1005 trnet-default act/unsup



In short, trying to assign two VLANs to a single switchport in access mode. How is this possible?

















share|improve this question


















New contributor









Samson Oduor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

Check out our Code of Conduct.















































    1






























    I've been trying to figure out how to achieve the outcome below.



    VLAN Name                             Status    Ports

    ---- -------------------------------- --------- -------------------------------

    232 VLAN 10 active Fa3/0/1,Fa3/0/2,Fa3/0/3,Fa3/0/4,

    Fa3/0/5,Fa3/0/14,Fa3/0/15,



    233 VLAN 20 active Fa3/0/1, Fa3/0/2, Fa3/0/3,

    Fa3/0/4, Fa3/0/5,Fa3/0/17,

    1002 fddi-default act/unsup

    1003 token-ring-default act/unsup

    1004 fddinet-default act/unsup

    1005 trnet-default act/unsup



    In short, trying to assign two VLANs to a single switchport in access mode. How is this possible?

















    share|improve this question


















    New contributor









    Samson Oduor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

    Check out our Code of Conduct.











































      1






















      1














      1












      I've been trying to figure out how to achieve the outcome below.



      VLAN Name                             Status    Ports

      ---- -------------------------------- --------- -------------------------------

      232 VLAN 10 active Fa3/0/1,Fa3/0/2,Fa3/0/3,Fa3/0/4,

      Fa3/0/5,Fa3/0/14,Fa3/0/15,



      233 VLAN 20 active Fa3/0/1, Fa3/0/2, Fa3/0/3,

      Fa3/0/4, Fa3/0/5,Fa3/0/17,

      1002 fddi-default act/unsup

      1003 token-ring-default act/unsup

      1004 fddinet-default act/unsup

      1005 trnet-default act/unsup



      In short, trying to assign two VLANs to a single switchport in access mode. How is this possible?

















      share|improve this question


















      New contributor









      Samson Oduor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

      Check out our Code of Conduct.






















      I've been trying to figure out how to achieve the outcome below.



      VLAN Name                             Status    Ports

      ---- -------------------------------- --------- -------------------------------

      232 VLAN 10 active Fa3/0/1,Fa3/0/2,Fa3/0/3,Fa3/0/4,

      Fa3/0/5,Fa3/0/14,Fa3/0/15,



      233 VLAN 20 active Fa3/0/1, Fa3/0/2, Fa3/0/3,

      Fa3/0/4, Fa3/0/5,Fa3/0/17,

      1002 fddi-default act/unsup

      1003 token-ring-default act/unsup

      1004 fddinet-default act/unsup

      1005 trnet-default act/unsup



      In short, trying to assign two VLANs to a single switchport in access mode. How is this possible?








      cisco switch










      share|improve this question


















      New contributor









      Samson Oduor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

      Check out our Code of Conduct.



















      share|improve this question


















      New contributor









      Samson Oduor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

      Check out our Code of Conduct.















      share|improve this question





      share|improve this question










      edited 44 mins ago











      Samson Oduor























      New contributor









      Samson Oduor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

      Check out our Code of Conduct.














      asked 1 hour ago













      Samson OduorSamson Oduor



      63







      63







      New contributor









      Samson Oduor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

      Check out our Code of Conduct.








      New contributor









      Samson Oduor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

      Check out our Code of Conduct.








      Samson Oduor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

      Check out our Code of Conduct.


































          2 Answers

          2











          active



          oldest



          votes





































          2




























          You simply use two commands on one interface:



          interface Fa3/0/1

          switchport access vlan 232

          switchport voice vlan 233

          switchport mode access



          Then it will show up as you have listed above, when using show vlan.









          share|improve this answer









































          • 1











            Just to be clear, when you enter these commands, you have created a VLAN trunk (although Cisco doesn't like to call it that). VLAN 232 will be untagged (native) and 233 will be tagged.



            – Ron Trunk

            4 mins ago























          • @RonTrunk huh? it's an access port!



            – Cown

            1 min ago























          • @RonTrunk by the way, OP already wrote, that it is an access port, so i assumed i didn't have to write that.



            – Cown

            13 secs ago






































          1




























          First of all an access port is by definition can only carry one Vlan.
          voice vlan is used , when if its actually a voice vlan traffic needed to be carried.



          so lets say both vlans 232 and 233 are Data Vlans, then the solution by Cown won't work.



          You have to apply like below.



          interface Fa3/0/1,

          switchport mode trunk

          switchport trunk allowed vlan 232,233

          end



          Now , Trunk mode is used carry multiple vlans (Vlan tagging).



          If you don't specify the "allowed vlan" by default all the vlans created on the switch will be tagged on this interface.



          And if the vlan 233 is voice vlan (used to connect IPphones) the solution by Cown , is Correct.



          Please ask if any clarifications needed.



          Regards,
          Hazif Ismail









          share|improve this answer
















          New contributor









          HAZIF ISMAIL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

          Check out our Code of Conduct.







































            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

            });





            }

            });













            Samson Oduor is a new contributor. Be nice, and check out our Code of Conduct.




















            draft saved


            draft discarded



































            StackExchange.ready(

            function () {

            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f57725%2fassigning-a-single-switchport-to-different-vlans%23new-answer', 'question_page');

            }

            );



            Post as a guest




























            Required, but never shown














































            2 Answers

            2











            active



            oldest



            votes















            2 Answers

            2











            active



            oldest



            votes

















            active



            oldest



            votes











            active



            oldest



            votes

















            2




























            You simply use two commands on one interface:



            interface Fa3/0/1

            switchport access vlan 232

            switchport voice vlan 233

            switchport mode access



            Then it will show up as you have listed above, when using show vlan.









            share|improve this answer









































            • 1











              Just to be clear, when you enter these commands, you have created a VLAN trunk (although Cisco doesn't like to call it that). VLAN 232 will be untagged (native) and 233 will be tagged.



              – Ron Trunk

              4 mins ago























            • @RonTrunk huh? it's an access port!



              – Cown

              1 min ago























            • @RonTrunk by the way, OP already wrote, that it is an access port, so i assumed i didn't have to write that.



              – Cown

              13 secs ago






























            2




























            You simply use two commands on one interface:



            interface Fa3/0/1

            switchport access vlan 232

            switchport voice vlan 233

            switchport mode access



            Then it will show up as you have listed above, when using show vlan.









            share|improve this answer









































            • 1











              Just to be clear, when you enter these commands, you have created a VLAN trunk (although Cisco doesn't like to call it that). VLAN 232 will be untagged (native) and 233 will be tagged.



              – Ron Trunk

              4 mins ago























            • @RonTrunk huh? it's an access port!



              – Cown

              1 min ago























            • @RonTrunk by the way, OP already wrote, that it is an access port, so i assumed i didn't have to write that.



              – Cown

              13 secs ago


























            2






















            2














            2










            You simply use two commands on one interface:



            interface Fa3/0/1

            switchport access vlan 232

            switchport voice vlan 233

            switchport mode access



            Then it will show up as you have listed above, when using show vlan.









            share|improve this answer




























            You simply use two commands on one interface:



            interface Fa3/0/1

            switchport access vlan 232

            switchport voice vlan 233

            switchport mode access



            Then it will show up as you have listed above, when using show vlan.









            share|improve this answer

























            share|improve this answer



            share|improve this answer










            edited 1 min ago







































            answered 56 mins ago













            CownCown



            6,55931031







            6,55931031














            • 1











              Just to be clear, when you enter these commands, you have created a VLAN trunk (although Cisco doesn't like to call it that). VLAN 232 will be untagged (native) and 233 will be tagged.



              – Ron Trunk

              4 mins ago























            • @RonTrunk huh? it's an access port!



              – Cown

              1 min ago























            • @RonTrunk by the way, OP already wrote, that it is an access port, so i assumed i didn't have to write that.



              – Cown

              13 secs ago

























            • 1











              Just to be clear, when you enter these commands, you have created a VLAN trunk (although Cisco doesn't like to call it that). VLAN 232 will be untagged (native) and 233 will be tagged.



              – Ron Trunk

              4 mins ago























            • @RonTrunk huh? it's an access port!



              – Cown

              1 min ago























            • @RonTrunk by the way, OP already wrote, that it is an access port, so i assumed i didn't have to write that.



              – Cown

              13 secs ago














            1







            1









            Just to be clear, when you enter these commands, you have created a VLAN trunk (although Cisco doesn't like to call it that). VLAN 232 will be untagged (native) and 233 will be tagged.



            – Ron Trunk

            4 mins ago









            Just to be clear, when you enter these commands, you have created a VLAN trunk (although Cisco doesn't like to call it that). VLAN 232 will be untagged (native) and 233 will be tagged.



            – Ron Trunk

            4 mins ago





















            @RonTrunk huh? it's an access port!



            – Cown

            1 min ago









            @RonTrunk huh? it's an access port!



            – Cown

            1 min ago





















            @RonTrunk by the way, OP already wrote, that it is an access port, so i assumed i didn't have to write that.



            – Cown

            13 secs ago









            @RonTrunk by the way, OP already wrote, that it is an access port, so i assumed i didn't have to write that.



            – Cown

            13 secs ago



















            1




























            First of all an access port is by definition can only carry one Vlan.
            voice vlan is used , when if its actually a voice vlan traffic needed to be carried.



            so lets say both vlans 232 and 233 are Data Vlans, then the solution by Cown won't work.



            You have to apply like below.



            interface Fa3/0/1,

            switchport mode trunk

            switchport trunk allowed vlan 232,233

            end



            Now , Trunk mode is used carry multiple vlans (Vlan tagging).



            If you don't specify the "allowed vlan" by default all the vlans created on the switch will be tagged on this interface.



            And if the vlan 233 is voice vlan (used to connect IPphones) the solution by Cown , is Correct.



            Please ask if any clarifications needed.



            Regards,
            Hazif Ismail









            share|improve this answer
















            New contributor









            HAZIF ISMAIL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

            Check out our Code of Conduct.















































              1




























              First of all an access port is by definition can only carry one Vlan.
              voice vlan is used , when if its actually a voice vlan traffic needed to be carried.



              so lets say both vlans 232 and 233 are Data Vlans, then the solution by Cown won't work.



              You have to apply like below.



              interface Fa3/0/1,

              switchport mode trunk

              switchport trunk allowed vlan 232,233

              end



              Now , Trunk mode is used carry multiple vlans (Vlan tagging).



              If you don't specify the "allowed vlan" by default all the vlans created on the switch will be tagged on this interface.



              And if the vlan 233 is voice vlan (used to connect IPphones) the solution by Cown , is Correct.



              Please ask if any clarifications needed.



              Regards,
              Hazif Ismail









              share|improve this answer
















              New contributor









              HAZIF ISMAIL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

              Check out our Code of Conduct.











































                1






















                1














                1










                First of all an access port is by definition can only carry one Vlan.
                voice vlan is used , when if its actually a voice vlan traffic needed to be carried.



                so lets say both vlans 232 and 233 are Data Vlans, then the solution by Cown won't work.



                You have to apply like below.



                interface Fa3/0/1,

                switchport mode trunk

                switchport trunk allowed vlan 232,233

                end



                Now , Trunk mode is used carry multiple vlans (Vlan tagging).



                If you don't specify the "allowed vlan" by default all the vlans created on the switch will be tagged on this interface.



                And if the vlan 233 is voice vlan (used to connect IPphones) the solution by Cown , is Correct.



                Please ask if any clarifications needed.



                Regards,
                Hazif Ismail









                share|improve this answer
















                New contributor









                HAZIF ISMAIL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

                Check out our Code of Conduct.


















                First of all an access port is by definition can only carry one Vlan.
                voice vlan is used , when if its actually a voice vlan traffic needed to be carried.



                so lets say both vlans 232 and 233 are Data Vlans, then the solution by Cown won't work.



                You have to apply like below.



                interface Fa3/0/1,

                switchport mode trunk

                switchport trunk allowed vlan 232,233

                end



                Now , Trunk mode is used carry multiple vlans (Vlan tagging).



                If you don't specify the "allowed vlan" by default all the vlans created on the switch will be tagged on this interface.



                And if the vlan 233 is voice vlan (used to connect IPphones) the solution by Cown , is Correct.



                Please ask if any clarifications needed.



                Regards,
                Hazif Ismail









                share|improve this answer
















                New contributor









                HAZIF ISMAIL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

                Check out our Code of Conduct.















                share|improve this answer



                share|improve this answer










                New contributor









                HAZIF ISMAIL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

                Check out our Code of Conduct.














                answered 11 mins ago













                HAZIF ISMAILHAZIF ISMAIL



                112







                112







                New contributor









                HAZIF ISMAIL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

                Check out our Code of Conduct.








                New contributor









                HAZIF ISMAIL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

                Check out our Code of Conduct.








                HAZIF ISMAIL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.

                Check out our Code of Conduct.


































                    Samson Oduor is a new contributor. Be nice, and check out our Code of Conduct.




















                    draft saved


                    draft discarded

































                    Samson Oduor is a new contributor. Be nice, and check out our Code of Conduct.
























                    Samson Oduor is a new contributor. Be nice, and check out our Code of Conduct.




















                    Samson Oduor is a new contributor. Be nice, and check out our Code of Conduct.























                    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%2f57725%2fassigning-a-single-switchport-to-different-vlans%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









                    Assigning a single switchport to different VLANs Rating: 4.5 Diposkan Oleh: Admin

                    0 komentar:

                    Posting Komentar

                    Popular Posts