Different VLAN Management VID and End Device

Hi,

Has anybody faced the problem like the scenario i have attached here?

For me the third case is not working…

Thanks.
Regards
shrijan