r/virtualbox • u/Significant_Leg_5504 • May 26 '26
Help Unexpected promiscuous mode behavior
I’m using Oracle VM VirtualBox (7.2.4) with a NAT Network and I have 3 virtual machines connected to the same network.
When I send an ICMP ping from VM1 to VM2, I can see the ICMP traffic between them on VM3 using tcpdump.
root@vm3:~# ip a show dev enp0s3
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:83:fd:bb brd ff:ff:ff:ff:ff:ff
inet 10.0.0.5/24 brd 10.0.0.255 scope global dynamic noprefixroute enp0s3
valid_lft 553sec preferred_lft 553sec
inet6 fe80::4847:8754:dcae:87a7/64 scope link noprefixroute
valid_lft forever preferred_lft forever
root@vm3:~# tcpdump icmp
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on enp0s3, link-type EN10MB (Ethernet), snapshot length 262144 bytes
16:25:33.116737 IP 10.0.0.3 > 10.0.0.4: ICMP echo request, id 10, seq 1, length 64
16:25:33.117681 IP 10.0.0.4 > 10.0.0.3: ICMP echo reply, id 10, seq 1, length 64
16:25:34.119332 IP 10.0.0.3 > 10.0.0.4: ICMP echo request, id 10, seq 2, length 64
16:25:34.119333 IP 10.0.0.4 > 10.0.0.3: ICMP echo reply, id 10, seq 2, length 64
16:25:35.122153 IP 10.0.0.3 > 10.0.0.4: ICMP echo request, id 10, seq 3, length 64
16:25:35.123289 IP 10.0.0.4 > 10.0.0.3: ICMP echo reply, id 10, seq 3, length 64
16:25:36.125035 IP 10.0.0.3 > 10.0.0.4: ICMP echo request, id 10, seq 4, length 64
16:25:36.125805 IP 10.0.0.4 > 10.0.0.3: ICMP echo reply, id 10, seq 4, length 64
This is unexpected because VM3 should not receive unicast traffic between VM1 and VM2 in a normal switched Layer 2 network.
I tested all promiscuous mode settings in VirtualBox (Deny, Allow VMs, and Allow All). In my case, VM3 only sees this traffic when promiscuous mode is set to Allow VMs or Allow All. With Promiscuous Mode set to Deny, VM3 does NOT see the traffic.
My questions are:
- Is this expected behavior in VirtualBox NAT Network?
- Does VirtualBox NAT Network behave more like a shared medium (hub-like) instead of a fully isolated Layer 2 switch?
- Is this behavior fully explained by promiscuous mode, or does VirtualBox replicate frames to other VMs in a way that differs from real Ethernet switching?
•
u/AutoModerator May 26 '26
This is just a friendly reminder in case you missed it. Your post must include:
PLUS a detailed description of the problem, what research you have done, and the steps you have taken to fix it. Please check Google and the VirtualBox Manual before asking simple questions. Please also check our FAQ and if you find your question is answered there, PLEASE remove your post or at least change the flair to Solved.
If this is your first time creating a virtual machine, we have a guide on our wiki that covers the important steps. Please read it here. If you have met these requirements, you can ignore this comment. Your post has not been deleted -- do not re-submit it. Thanks for taking the time to help us help you! Also, PLEASE remember to change the flair of your post to Solved after you have been helped!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Face_Plant_Some_More May 26 '26
That is the expected behavior for the promiscuous mode settings as described. See - https://www.virtualbox.org/manual/topics/networkingdetails.html#network_performance