Matching vlan id and priority with ebtablesHow do you set a vlan priority on a nic in freeBSD?In which vlan...

How can I make parentheses stick to formula?

Identity of a supposed anonymous referee revealed through "Description" of the report

When do you stop "pushing" a book?

How does weapons training transfer to empty hand?

Why is there a cap on 401k contributions?

Why do the Avengers care about returning these items in Endgame?

Does a surprised creature obey the 1st level spell Command?

Is there an idiom that means "revealing a secret unintentionally"?

Why does the electron wavefunction not collapse within atoms at room temperature in gas, liquids or solids due to decoherence?

Does Thread.yield() do anything if we have enough processors to service all threads?

How to handle DM constantly stealing everything from sleeping characters?

What is the status of the three crises in the history of mathematics?

How long can fsck take on a 30 TB volume?

Renting a house to a graduate student in my department

Was Mohammed the most popular first name for boys born in Berlin in 2018?

Which spells are in some way related to shadows or the Shadowfell?

What's the "magic similar to the Knock spell" referenced in the Dungeon of the Mad Mage adventure?

How did Captain Marvel know where to find these characters?

Are double contractions formal? Eg: "couldn't've" for "could not have"

How to find the transfer orbit from a initial circular orbit to a final elliptical orbit

Does STATISTICS IO output include Version Store reads?

How is Arya still alive?

Ugin's Conjurant vs. un-preventable damage

Why did Missandei say this?



Matching vlan id and priority with ebtables


How do you set a vlan priority on a nic in freeBSD?In which vlan am I in?iptables / VLAN: interface namesFilter on bridged vlan interface with iptablesCreating a VLANUsing ethtool filters to balance NIC queuesDifference between ip link add … vlan and bridge vlan add vid…?Linux bond with VLAN questionPacket meta class applied, but captured VLAN priority is wrongLinux bridge SNAT with ebtables






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I am attempting to use ebtables to match a specific VLAN ID (non zero) along with a specific VLAN PCP value.



I tried the following:



ebtables -A FORWARD -p 0x8100 --vlan-id 5 --vlan-prio 3 -j DROP



Ebtables does not complain (as the check has been commented out in ebtables), but the rule reported back using "ebtables -L" only contained the match for VLAN ID.



I did see in the ebtables man page that when vlan-prio is used, the vlan-id must either be zero or not specified.



Can anyone please explain to me as to why this is the case? I have so far not been able to find any references to support that the ID must be zero when the priority bits are used.



Is there anyway to make this possible, aside from creating a separate chain to match the vlan-id and vlan-prio separately?



Thanks in advance.










share|improve this question









New contributor



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


























    0















    I am attempting to use ebtables to match a specific VLAN ID (non zero) along with a specific VLAN PCP value.



    I tried the following:



    ebtables -A FORWARD -p 0x8100 --vlan-id 5 --vlan-prio 3 -j DROP



    Ebtables does not complain (as the check has been commented out in ebtables), but the rule reported back using "ebtables -L" only contained the match for VLAN ID.



    I did see in the ebtables man page that when vlan-prio is used, the vlan-id must either be zero or not specified.



    Can anyone please explain to me as to why this is the case? I have so far not been able to find any references to support that the ID must be zero when the priority bits are used.



    Is there anyway to make this possible, aside from creating a separate chain to match the vlan-id and vlan-prio separately?



    Thanks in advance.










    share|improve this question









    New contributor



    wei 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 am attempting to use ebtables to match a specific VLAN ID (non zero) along with a specific VLAN PCP value.



      I tried the following:



      ebtables -A FORWARD -p 0x8100 --vlan-id 5 --vlan-prio 3 -j DROP



      Ebtables does not complain (as the check has been commented out in ebtables), but the rule reported back using "ebtables -L" only contained the match for VLAN ID.



      I did see in the ebtables man page that when vlan-prio is used, the vlan-id must either be zero or not specified.



      Can anyone please explain to me as to why this is the case? I have so far not been able to find any references to support that the ID must be zero when the priority bits are used.



      Is there anyway to make this possible, aside from creating a separate chain to match the vlan-id and vlan-prio separately?



      Thanks in advance.










      share|improve this question









      New contributor



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











      I am attempting to use ebtables to match a specific VLAN ID (non zero) along with a specific VLAN PCP value.



      I tried the following:



      ebtables -A FORWARD -p 0x8100 --vlan-id 5 --vlan-prio 3 -j DROP



      Ebtables does not complain (as the check has been commented out in ebtables), but the rule reported back using "ebtables -L" only contained the match for VLAN ID.



      I did see in the ebtables man page that when vlan-prio is used, the vlan-id must either be zero or not specified.



      Can anyone please explain to me as to why this is the case? I have so far not been able to find any references to support that the ID must be zero when the priority bits are used.



      Is there anyway to make this possible, aside from creating a separate chain to match the vlan-id and vlan-prio separately?



      Thanks in advance.







      linux firewall vlan






      share|improve this question









      New contributor



      wei 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



      wei 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 4 mins ago







      wei













      New contributor



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








      asked 20 mins ago









      weiwei

      1




      1




      New contributor



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




      New contributor




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
























          0






          active

          oldest

          votes












          Your Answer








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


          }
          });






          wei 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%2funix.stackexchange.com%2fquestions%2f517905%2fmatching-vlan-id-and-priority-with-ebtables%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








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










          draft saved

          draft discarded


















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













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












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
















          Thanks for contributing an answer to Unix & Linux 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%2funix.stackexchange.com%2fquestions%2f517905%2fmatching-vlan-id-and-priority-with-ebtables%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...