ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    MacVTap Modes

    IT Discussion
    virtualization kvm networking macvtap vepa reflective relay hairpin
    4
    7
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EddieJenningsE
      EddieJennings
      last edited by

      Here are two links I found helpful when wrapping my head around the differences between the modes available for macvtap interfaces for my KVM virtual machines.

      https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_administration_guide/sect-attch-nic-physdev

      https://seravo.fi/2012/virtualized-bridged-networking-with-macvtap

      They're a bit older, but the information seems good. The one difference is I noticed with virt-manager on Fedora 32 (was also true with 31 and likely older as well) is that the default mode seems to be bridge rather than VEPA.

      VEPA talks about reflective relay or hairpin mode being supported on the switch (802.1Qbg)

      Juniper Document
      Cisco Document

      It doesn't look like any of the Ubiquiti EdgeSwitch offerings support this.

      JaredBuschJ 1 Reply Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch @EddieJennings
        last edited by

        @EddieJennings What is your us case for VEPA?

        Why on earth would you want to add hopes to inter-VM communication?

        Not to mention dramatically reducing the vailable bandwidth between two virtual machines.

        EddieJenningsE 1 Reply Last reply Reply Quote 1
        • EddieJenningsE
          EddieJennings @JaredBusch
          last edited by EddieJennings

          @JaredBusch said in MacVTap Modes:

          @EddieJennings What is your us case for VEPA?

          I don’t have one in particular. I was curious to know what VEPA was.

          Why on earth would you want to add hopes to inter-VM communication?

          Not to mention dramatically reducing the vailable bandwidth between two virtual machines.

          Personally, I wouldn’t (hops, I assume). Perhaps there some use case where you want to mirror the traffic of the port on the external switch to another port and use this mirroring for some kind of traffic monitoring. I’d like to think there would be some reason for this to be a thing, otherwise it would like the development of it was time wasted.

          black3dynamiteB 1 2 Replies Last reply Reply Quote 0
          • black3dynamiteB
            black3dynamite @EddieJennings
            last edited by

            @EddieJennings said in MacVTap Modes:

            @JaredBusch said in MacVTap Modes:

            @EddieJennings What is your us case for VEPA?

            I don’t have one in particular. I was curious to know what VEPA was.

            Why on earth would you want to add hopes to inter-VM communication?

            Not to mention dramatically reducing the vailable bandwidth between two virtual machines.

            Personally, I wouldn’t (hops, I assume). Perhaps there some use case where you want to mirror the traffic of the port on the external switch to another port and use this mirroring for some kind of traffic monitoring. I’d like to think there would be some reason for this to be a thing, otherwise it would like the development of it was time wasted.

            Just a FYI, if you want to see VMs network interface stats you can use virsh domifstat. Here's an example.

            watch -n1 "sudo virsh domifstat --domain popos --interface vnet0"
            
            1 Reply Last reply Reply Quote 1
            • 1
              1337 @EddieJennings
              last edited by 1337

              @EddieJennings said in MacVTap Modes:

              @JaredBusch said in MacVTap Modes:

              @EddieJennings What is your us case for VEPA?

              I don’t have one in particular. I was curious to know what VEPA was.

              Why on earth would you want to add hopes to inter-VM communication?

              Not to mention dramatically reducing the vailable bandwidth between two virtual machines.

              Personally, I wouldn’t (hops, I assume). Perhaps there some use case where you want to mirror the traffic of the port on the external switch to another port and use this mirroring for some kind of traffic monitoring. I’d like to think there would be some reason for this to be a thing, otherwise it would like the development of it was time wasted.

              Yes, I would guess to support mirroring, external packet capture, IDS/IPS, access control, isolated ports and stuff like that. Maybe 802.1x as well.

              One option I didn't see in the redhat doc was openvswitch. Don't they support it?

              EddieJenningsE 1 Reply Last reply Reply Quote 0
              • EddieJenningsE
                EddieJennings @1337
                last edited by

                One option I didn't see in the redhat doc was openvswitch. Don't they support it?

                The link I posted was for RHEL 6. I just now saw that RHEL 8's documentation is online. I glanced through it and didn't see that mentioned. I'll read it more closely tomorrow.

                https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_virtualization/configuring-virtual-machine-network-connections_configuring-and-managing-virtualization

                black3dynamiteB 1 Reply Last reply Reply Quote 0
                • black3dynamiteB
                  black3dynamite @EddieJennings
                  last edited by

                  @EddieJennings said in MacVTap Modes:

                  One option I didn't see in the redhat doc was openvswitch. Don't they support it?

                  The link I posted was for RHEL 6. I just now saw that RHEL 8's documentation is online. I glanced through it and didn't see that mentioned. I'll read it more closely tomorrow.

                  https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_virtualization/configuring-virtual-machine-network-connections_configuring-and-managing-virtualization

                  There's no mention of openvswitch anywhere in that document. I am aware of XenServer and XCP-ng uses it by default. So its possible RHEL just prefers using macvlan/macvtap instead of openvswitch.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post