can not route traffic to VM

julienjut

Bit poster
My Linux VM has two nics,
1, host-only or shared (192.168.56.254)
2, bridged (192.168.8.0/24)

In older PD versions, such as PD9, 10, 11, I can route my traffic from macos to VM by adding a route:

sudo route add -net 114.114.114.114/32 192.168.56.254

While I update to PD18 today, this doesn't work. I can access the VM and VM can access the internet correctly.
`ping 114.114.114.114`
I use 'tcpdump' to catch traffic from the bridge(on macOS) and inner the VM, but I can not get any packet.
What's wrong with the latest PD? Is there any limit?
In the VM, too many scripts relevant to DNS, route, and VPN. It affects my work every day.

This method works fine in VirtualBox and PD older releases.
 
In PD11, I find that PD uses vnic, while in PD18, I find that PD uses bridge. Maybe it causes this difference. I wonder which is the last release that still uses vnic mode.

In PD11:
屏幕快照 2022-12-11 20.02.24.png
In PD18:
Screen Shot 2022-12-11 at 20.17.18.png
 
Back
Top