span/mirror port to guest
-
lunes, 30 de abril de 2012 22:53
Will the Windows 8 version of Hyper-V allow one to run a span port (or port mirroring) into a guest?
- Cambiado Vincent HuModerator martes, 01 de mayo de 2012 2:12 (From:Hyper-V)
Todas las respuestas
-
lunes, 30 de abril de 2012 23:13
If you check the properties of a vNIC in Win8 you will find you can define port mirroring.
you set the origionating and destination vNIC. This setting is in PowerShell and the GUI.
Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.
Disclaimer: Attempting change is of your own free will. -
miércoles, 02 de mayo de 2012 13:38
I have a physical nic plugged into a span port. When I associate a guest to that nic and select destination, I'm still unable to view *all* traffic.
I've verified the span port is working as expected by plugging in my laptop and running tcpdump. Seems the host is not passing the traffic to the guest. I've also enabled "mac address spoofing" in hopes to get the spanned traffic to arrive at the guest but that didn't work either.
Is the setting you suggested for monitoring traffic between VM's? Is there a setting to have Hyper-V pass all traffic arriving at a physical NIC to a guest?
-
miércoles, 02 de mayo de 2012 13:45
Port mirroring in Win8 is supported between virtual NICs (ports of hte virtual switch actually), not at the physical layer.
You change the setting of the vNIC of one VM and set the portmirroring rule to forward its traffic to another VM.
You cannot forward a physical NIC to a VM - as this would create a type of loop if the physical NIC was the external port of the virtual switch. You would need to set the rule at the vNIC level of each VM.
MAC address spoofing is deisgned to support clustering in VMs, or things like networking appliances in VMs.
Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.
Disclaimer: Attempting change is of your own free will. -
miércoles, 02 de mayo de 2012 15:50
I came across this thread that does a better job of explaining the functionality I'm looking for.
http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/cf662c1e-cb75-4e92-af0a-f48a514e09c4Perhaps there's a way to convert a Hyper-V virtual switch into a hub? ;)
-
miércoles, 02 de mayo de 2012 16:00
That article and product goes way back.
In Server "8" (not 2208 nor 2008 R2, nor 2008 R2 SP1) you set up a rule that you want the traffic from X VM vNIC to Y VM vNIC.
Y VM can have the traffic of many VMs forwarded to it. (except itself).
I am simply explaining how it is done, not that it is easy nor difficult.
You will find this in the Set-VMNetworkAdapter cmdlet
Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.
Disclaimer: Attempting change is of your own free will.- Marcado como respuesta pjhanson jueves, 03 de mayo de 2012 16:30

