Communication between outer world and container


I have one VM of having IP :
Another VM of having IP: HOST Machine)

So My requirement is to ping the container from

now In I have created one there one Virtual Ethernet interface is created and docker0 interface is created

docker0 Link encap:Ethernet HWaddr 02:42:3a:fd:9a:a7
inet addr: Bcast: Mask:

veth374a4ce Link encap:Ethernet HWaddr e2:e0:e4:f5:68:b7
inet addr: Bcast: Mask:
(So By default veth374a4ce does not have any IP.I have assigned an IP with this interface)

and the container IP is with eth0 interface.
eth0 Link encap:Ethernet HWaddr 02:42:ac:11:00:02
inet addr: Bcast: Mask:

As we know that veth374a4ce and eth0 is act as two side of pipe in between Container Host and Container.

So if we want to communicate with any specific container we have to talk through that specific veth interface.

So on container host side----

  1. I have created one custom routing table
    echo 200 custom >> /etc/iproute2/rt_tables
    2.I have added rule for that routing table
    ip rule add from lookup custom
    3.added route
    ip route add default via dev veth374a4ce table custom

But I am not able to ping from to container

Can anyone please help here.
Thanks in Advance!