NetworkManager GUI: How to affect a VLAN to an Ethernet Connection












0















I'm using Ubuntu Mate and created VLAN are not listed in the Applet Menu.



I would like to know how to affect a VLAN to a specific Ethernet Connection to enable a VLAN when you activate an Ethernet Connection an deactivate it when this Ethernet connection is disabled.



Ethernet Connection



Here are my network connections:



Network Connections



I have created a VLAN : test.2112



VLAN: VLAN Tab



VLAN



VLAN: IPV4 Settings



VLAN: IPV4 Settings



I have created an Ethernet Connection : test.2112



Ethernet Connection: Ethernet Tab



Ethernet Connection: Ethernet Tab



Ethernet Connection: IPV4 Settings



Ethernet Connection: IPV4 Settings



If I check "Automatically connect to this network when it is available" for the VLAN under the General Tab this one is always UP.



VLAN: General Tab



If I uncheck "Automatically connect to this network when it is available" for the VLAN under the General Tab this one is never activated.



I have tried to set the "Parent Interface" option to enp1s0 (via “test.2112”) but it seems to have no effect.



Parent Interface



The two interfaces
- Ethernet Connection test.2112
- VLAN test.2112
are active at the same time




enp1s0: flags=4163 mtu 1500
inet 10.0.0.10 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::a9c1:6593:c4fc:3201 prefixlen 64 scopeid 0x20
ether 30:65:ec:8c:b3:a5 txqueuelen 1000 (Ethernet)
RX packets 832104790 bytes 428508362607 (428.5 GB)
RX errors 0 dropped 3876 overruns 0 frame 0
TX packets 1195724290 bytes 1628838882720 (1.6 TB)
TX errors 1 dropped 0 overruns 0 carrier 0 collisions 0



enp1s0.2112: flags=4163 mtu 1500
inet 10.0.0.20 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::8fa5:673d:e2fb:a045 prefixlen 64 scopeid 0x20
ether 30:65:ec:8c:b3:a5 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 87 bytes 11831 (11.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0




I have another coputer with the following IP address : 10.0.0.11 without VLAN.
I always can ping the other computer.



If I activate another Ethernet Connection as netgear_wg302 with 192.168.1.0/24 as IP Address, OK I can't no more ping the other computer but the VLAN test.2112 is always active.



I tried to change the Method in the VLAN Settings IPV4 Address tab from Manual to Disabled or Local Only but the VLAN does not work anymore.



Even when all Ethernet Connections are disconnected ... the VLAN is still alive !



So is it possible (without patching NetworkManager) to affect an Ethernet Connection to a dedicated and a specific VLAN with NetworkManager GUI and when this Ethernet Connection is activated it is with it's own VLAN and when the Ethernet Connection is disconnected the VLAN is deleted/disconnected and replaced by another one or none depending of the configuration of the newly activated Ethernet Connection ?



Many Thanks for your help.



Kinds Regards










share|improve this question





























    0















    I'm using Ubuntu Mate and created VLAN are not listed in the Applet Menu.



    I would like to know how to affect a VLAN to a specific Ethernet Connection to enable a VLAN when you activate an Ethernet Connection an deactivate it when this Ethernet connection is disabled.



    Ethernet Connection



    Here are my network connections:



    Network Connections



    I have created a VLAN : test.2112



    VLAN: VLAN Tab



    VLAN



    VLAN: IPV4 Settings



    VLAN: IPV4 Settings



    I have created an Ethernet Connection : test.2112



    Ethernet Connection: Ethernet Tab



    Ethernet Connection: Ethernet Tab



    Ethernet Connection: IPV4 Settings



    Ethernet Connection: IPV4 Settings



    If I check "Automatically connect to this network when it is available" for the VLAN under the General Tab this one is always UP.



    VLAN: General Tab



    If I uncheck "Automatically connect to this network when it is available" for the VLAN under the General Tab this one is never activated.



    I have tried to set the "Parent Interface" option to enp1s0 (via “test.2112”) but it seems to have no effect.



    Parent Interface



    The two interfaces
    - Ethernet Connection test.2112
    - VLAN test.2112
    are active at the same time




    enp1s0: flags=4163 mtu 1500
    inet 10.0.0.10 netmask 255.255.255.0 broadcast 10.0.0.255
    inet6 fe80::a9c1:6593:c4fc:3201 prefixlen 64 scopeid 0x20
    ether 30:65:ec:8c:b3:a5 txqueuelen 1000 (Ethernet)
    RX packets 832104790 bytes 428508362607 (428.5 GB)
    RX errors 0 dropped 3876 overruns 0 frame 0
    TX packets 1195724290 bytes 1628838882720 (1.6 TB)
    TX errors 1 dropped 0 overruns 0 carrier 0 collisions 0



    enp1s0.2112: flags=4163 mtu 1500
    inet 10.0.0.20 netmask 255.255.255.0 broadcast 10.0.0.255
    inet6 fe80::8fa5:673d:e2fb:a045 prefixlen 64 scopeid 0x20
    ether 30:65:ec:8c:b3:a5 txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 87 bytes 11831 (11.8 KB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0




    I have another coputer with the following IP address : 10.0.0.11 without VLAN.
    I always can ping the other computer.



    If I activate another Ethernet Connection as netgear_wg302 with 192.168.1.0/24 as IP Address, OK I can't no more ping the other computer but the VLAN test.2112 is always active.



    I tried to change the Method in the VLAN Settings IPV4 Address tab from Manual to Disabled or Local Only but the VLAN does not work anymore.



    Even when all Ethernet Connections are disconnected ... the VLAN is still alive !



    So is it possible (without patching NetworkManager) to affect an Ethernet Connection to a dedicated and a specific VLAN with NetworkManager GUI and when this Ethernet Connection is activated it is with it's own VLAN and when the Ethernet Connection is disconnected the VLAN is deleted/disconnected and replaced by another one or none depending of the configuration of the newly activated Ethernet Connection ?



    Many Thanks for your help.



    Kinds Regards










    share|improve this question



























      0












      0








      0








      I'm using Ubuntu Mate and created VLAN are not listed in the Applet Menu.



      I would like to know how to affect a VLAN to a specific Ethernet Connection to enable a VLAN when you activate an Ethernet Connection an deactivate it when this Ethernet connection is disabled.



      Ethernet Connection



      Here are my network connections:



      Network Connections



      I have created a VLAN : test.2112



      VLAN: VLAN Tab



      VLAN



      VLAN: IPV4 Settings



      VLAN: IPV4 Settings



      I have created an Ethernet Connection : test.2112



      Ethernet Connection: Ethernet Tab



      Ethernet Connection: Ethernet Tab



      Ethernet Connection: IPV4 Settings



      Ethernet Connection: IPV4 Settings



      If I check "Automatically connect to this network when it is available" for the VLAN under the General Tab this one is always UP.



      VLAN: General Tab



      If I uncheck "Automatically connect to this network when it is available" for the VLAN under the General Tab this one is never activated.



      I have tried to set the "Parent Interface" option to enp1s0 (via “test.2112”) but it seems to have no effect.



      Parent Interface



      The two interfaces
      - Ethernet Connection test.2112
      - VLAN test.2112
      are active at the same time




      enp1s0: flags=4163 mtu 1500
      inet 10.0.0.10 netmask 255.255.255.0 broadcast 10.0.0.255
      inet6 fe80::a9c1:6593:c4fc:3201 prefixlen 64 scopeid 0x20
      ether 30:65:ec:8c:b3:a5 txqueuelen 1000 (Ethernet)
      RX packets 832104790 bytes 428508362607 (428.5 GB)
      RX errors 0 dropped 3876 overruns 0 frame 0
      TX packets 1195724290 bytes 1628838882720 (1.6 TB)
      TX errors 1 dropped 0 overruns 0 carrier 0 collisions 0



      enp1s0.2112: flags=4163 mtu 1500
      inet 10.0.0.20 netmask 255.255.255.0 broadcast 10.0.0.255
      inet6 fe80::8fa5:673d:e2fb:a045 prefixlen 64 scopeid 0x20
      ether 30:65:ec:8c:b3:a5 txqueuelen 1000 (Ethernet)
      RX packets 0 bytes 0 (0.0 B)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 87 bytes 11831 (11.8 KB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0




      I have another coputer with the following IP address : 10.0.0.11 without VLAN.
      I always can ping the other computer.



      If I activate another Ethernet Connection as netgear_wg302 with 192.168.1.0/24 as IP Address, OK I can't no more ping the other computer but the VLAN test.2112 is always active.



      I tried to change the Method in the VLAN Settings IPV4 Address tab from Manual to Disabled or Local Only but the VLAN does not work anymore.



      Even when all Ethernet Connections are disconnected ... the VLAN is still alive !



      So is it possible (without patching NetworkManager) to affect an Ethernet Connection to a dedicated and a specific VLAN with NetworkManager GUI and when this Ethernet Connection is activated it is with it's own VLAN and when the Ethernet Connection is disconnected the VLAN is deleted/disconnected and replaced by another one or none depending of the configuration of the newly activated Ethernet Connection ?



      Many Thanks for your help.



      Kinds Regards










      share|improve this question
















      I'm using Ubuntu Mate and created VLAN are not listed in the Applet Menu.



      I would like to know how to affect a VLAN to a specific Ethernet Connection to enable a VLAN when you activate an Ethernet Connection an deactivate it when this Ethernet connection is disabled.



      Ethernet Connection



      Here are my network connections:



      Network Connections



      I have created a VLAN : test.2112



      VLAN: VLAN Tab



      VLAN



      VLAN: IPV4 Settings



      VLAN: IPV4 Settings



      I have created an Ethernet Connection : test.2112



      Ethernet Connection: Ethernet Tab



      Ethernet Connection: Ethernet Tab



      Ethernet Connection: IPV4 Settings



      Ethernet Connection: IPV4 Settings



      If I check "Automatically connect to this network when it is available" for the VLAN under the General Tab this one is always UP.



      VLAN: General Tab



      If I uncheck "Automatically connect to this network when it is available" for the VLAN under the General Tab this one is never activated.



      I have tried to set the "Parent Interface" option to enp1s0 (via “test.2112”) but it seems to have no effect.



      Parent Interface



      The two interfaces
      - Ethernet Connection test.2112
      - VLAN test.2112
      are active at the same time




      enp1s0: flags=4163 mtu 1500
      inet 10.0.0.10 netmask 255.255.255.0 broadcast 10.0.0.255
      inet6 fe80::a9c1:6593:c4fc:3201 prefixlen 64 scopeid 0x20
      ether 30:65:ec:8c:b3:a5 txqueuelen 1000 (Ethernet)
      RX packets 832104790 bytes 428508362607 (428.5 GB)
      RX errors 0 dropped 3876 overruns 0 frame 0
      TX packets 1195724290 bytes 1628838882720 (1.6 TB)
      TX errors 1 dropped 0 overruns 0 carrier 0 collisions 0



      enp1s0.2112: flags=4163 mtu 1500
      inet 10.0.0.20 netmask 255.255.255.0 broadcast 10.0.0.255
      inet6 fe80::8fa5:673d:e2fb:a045 prefixlen 64 scopeid 0x20
      ether 30:65:ec:8c:b3:a5 txqueuelen 1000 (Ethernet)
      RX packets 0 bytes 0 (0.0 B)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 87 bytes 11831 (11.8 KB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0




      I have another coputer with the following IP address : 10.0.0.11 without VLAN.
      I always can ping the other computer.



      If I activate another Ethernet Connection as netgear_wg302 with 192.168.1.0/24 as IP Address, OK I can't no more ping the other computer but the VLAN test.2112 is always active.



      I tried to change the Method in the VLAN Settings IPV4 Address tab from Manual to Disabled or Local Only but the VLAN does not work anymore.



      Even when all Ethernet Connections are disconnected ... the VLAN is still alive !



      So is it possible (without patching NetworkManager) to affect an Ethernet Connection to a dedicated and a specific VLAN with NetworkManager GUI and when this Ethernet Connection is activated it is with it's own VLAN and when the Ethernet Connection is disconnected the VLAN is deleted/disconnected and replaced by another one or none depending of the configuration of the newly activated Ethernet Connection ?



      Many Thanks for your help.



      Kinds Regards







      networking network-manager ethernet






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 30 at 0:35







      moocan

















      asked Jan 30 at 0:09









      moocanmoocan

      12




      12






















          0






          active

          oldest

          votes











          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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113970%2fnetworkmanager-gui-how-to-affect-a-vlan-to-an-ethernet-connection%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          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%2f1113970%2fnetworkmanager-gui-how-to-affect-a-vlan-to-an-ethernet-connection%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

          Human spaceflight

          Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

          張江高科駅