How to have host and container talk with each other and with internet too

Using Macvlan, I can have host IP and the containers IP on the same subnet and host IP is pingable from outside world as well all containers in the host can also be pinged from the outside world. But host cannot ping the IP of containers i.e containerA and containerB.

Is there a way to have a networking setup between host and containers so that host and containers are on the same subnet and host can ping the containers as well as outside world and containers can ping the host as well as the outside world?