Activation of network connection failed (VLAN)












0















I'm trying to set up a VLAN to test an issue. I have the following:




  1. A dell laptop running windows 7

  2. A lenovo notebook running ubuntu from live USB with some storage preserved on it

  3. A tp-link TL-SG105E switch set up to have VLAN with the id 100


Everything's working fine with the windows system and the switch but the ubuntu system keeps saying it cannot connect to the ethernet connection. I made the following settings on the ubuntu system to set it up for my VLAN:



sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
sudo ip addr add dev ctlvlan 172.16.32.20/24


However the ethernet connection issue was present already before making the steps above. My wifi connection on the ubuntu system works perfectly, it's just the ethernet not being able to connect. I'm pretty much new to ubuntu so I'd like to ask for your advice on the issue. Am I missing something here?










share|improve this question









New contributor




Azazel Darth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I'm trying to set up a VLAN to test an issue. I have the following:




    1. A dell laptop running windows 7

    2. A lenovo notebook running ubuntu from live USB with some storage preserved on it

    3. A tp-link TL-SG105E switch set up to have VLAN with the id 100


    Everything's working fine with the windows system and the switch but the ubuntu system keeps saying it cannot connect to the ethernet connection. I made the following settings on the ubuntu system to set it up for my VLAN:



    sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
    sudo ip addr add dev ctlvlan 172.16.32.20/24


    However the ethernet connection issue was present already before making the steps above. My wifi connection on the ubuntu system works perfectly, it's just the ethernet not being able to connect. I'm pretty much new to ubuntu so I'd like to ask for your advice on the issue. Am I missing something here?










    share|improve this question









    New contributor




    Azazel Darth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I'm trying to set up a VLAN to test an issue. I have the following:




      1. A dell laptop running windows 7

      2. A lenovo notebook running ubuntu from live USB with some storage preserved on it

      3. A tp-link TL-SG105E switch set up to have VLAN with the id 100


      Everything's working fine with the windows system and the switch but the ubuntu system keeps saying it cannot connect to the ethernet connection. I made the following settings on the ubuntu system to set it up for my VLAN:



      sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
      sudo ip addr add dev ctlvlan 172.16.32.20/24


      However the ethernet connection issue was present already before making the steps above. My wifi connection on the ubuntu system works perfectly, it's just the ethernet not being able to connect. I'm pretty much new to ubuntu so I'd like to ask for your advice on the issue. Am I missing something here?










      share|improve this question









      New contributor




      Azazel Darth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I'm trying to set up a VLAN to test an issue. I have the following:




      1. A dell laptop running windows 7

      2. A lenovo notebook running ubuntu from live USB with some storage preserved on it

      3. A tp-link TL-SG105E switch set up to have VLAN with the id 100


      Everything's working fine with the windows system and the switch but the ubuntu system keeps saying it cannot connect to the ethernet connection. I made the following settings on the ubuntu system to set it up for my VLAN:



      sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
      sudo ip addr add dev ctlvlan 172.16.32.20/24


      However the ethernet connection issue was present already before making the steps above. My wifi connection on the ubuntu system works perfectly, it's just the ethernet not being able to connect. I'm pretty much new to ubuntu so I'd like to ask for your advice on the issue. Am I missing something here?







      windows ethernet vlan






      share|improve this question









      New contributor




      Azazel Darth 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




      Azazel Darth 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 15 hours ago









      vidarlo

      10.8k52748




      10.8k52748






      New contributor




      Azazel Darth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 16 hours ago









      Azazel DarthAzazel Darth

      1




      1




      New contributor




      Azazel Darth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Azazel Darth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Azazel Darth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0















          sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
          sudo ip addr add dev ctlvlan 172.16.32.20/24



          Is the problem. The commands are not internally consistent.



          First, find adapter name:



           ip link


          This will show you the interfaces. Note down the correct name of the interface. Then create vlan



           sudo ip link add link interfacename name vlan100 type vlan id 100


          This will create a new interface named vlan100 on interfacename with vlan 100.



          Next, set an IP:



          sudo ip addr add dev vlan100 172.16.32.20/24


          You used different device names for the same thing, with no internal consistency.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            Azazel Darth 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%2faskubuntu.com%2fquestions%2f1123193%2factivation-of-network-connection-failed-vlan%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









            0















            sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
            sudo ip addr add dev ctlvlan 172.16.32.20/24



            Is the problem. The commands are not internally consistent.



            First, find adapter name:



             ip link


            This will show you the interfaces. Note down the correct name of the interface. Then create vlan



             sudo ip link add link interfacename name vlan100 type vlan id 100


            This will create a new interface named vlan100 on interfacename with vlan 100.



            Next, set an IP:



            sudo ip addr add dev vlan100 172.16.32.20/24


            You used different device names for the same thing, with no internal consistency.






            share|improve this answer




























              0















              sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
              sudo ip addr add dev ctlvlan 172.16.32.20/24



              Is the problem. The commands are not internally consistent.



              First, find adapter name:



               ip link


              This will show you the interfaces. Note down the correct name of the interface. Then create vlan



               sudo ip link add link interfacename name vlan100 type vlan id 100


              This will create a new interface named vlan100 on interfacename with vlan 100.



              Next, set an IP:



              sudo ip addr add dev vlan100 172.16.32.20/24


              You used different device names for the same thing, with no internal consistency.






              share|improve this answer


























                0












                0








                0








                sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
                sudo ip addr add dev ctlvlan 172.16.32.20/24



                Is the problem. The commands are not internally consistent.



                First, find adapter name:



                 ip link


                This will show you the interfaces. Note down the correct name of the interface. Then create vlan



                 sudo ip link add link interfacename name vlan100 type vlan id 100


                This will create a new interface named vlan100 on interfacename with vlan 100.



                Next, set an IP:



                sudo ip addr add dev vlan100 172.16.32.20/24


                You used different device names for the same thing, with no internal consistency.






                share|improve this answer














                sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
                sudo ip addr add dev ctlvlan 172.16.32.20/24



                Is the problem. The commands are not internally consistent.



                First, find adapter name:



                 ip link


                This will show you the interfaces. Note down the correct name of the interface. Then create vlan



                 sudo ip link add link interfacename name vlan100 type vlan id 100


                This will create a new interface named vlan100 on interfacename with vlan 100.



                Next, set an IP:



                sudo ip addr add dev vlan100 172.16.32.20/24


                You used different device names for the same thing, with no internal consistency.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 15 hours ago









                vidarlovidarlo

                10.8k52748




                10.8k52748






















                    Azazel Darth is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    Azazel Darth is a new contributor. Be nice, and check out our Code of Conduct.













                    Azazel Darth is a new contributor. Be nice, and check out our Code of Conduct.












                    Azazel Darth is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f1123193%2factivation-of-network-connection-failed-vlan%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

                    How did Captain America manage to do this?

                    迪纳利

                    南乌拉尔铁路局