[Lxc-users] container not pinging default gw

Daniel Lezcano daniel.lezcano at free.fr
Thu Nov 4 09:31:29 UTC 2010


On 11/04/2010 01:28 AM, Nirmal Guhan wrote:
> On Tue, Nov 2, 2010 at 6:05 PM, Nirmal Guhan<vavatutu at gmail.com>  wrote:
>    
>> What could be the reason for container not able to ping the default gw
>> while host can do? I use macvlan instead of bridge. Do I need to
>> configure something in the host?
>>
>> -Nirmal
>>
>>      
> Just realized my gw is actually a private IP (vmnet). While host can
> ping it, am not able to do from within container. Is this something
> that anyone has faced before?
>    

You can ping the addresses between macvlan only if you set the network with:

lxc.network.macvlan.mode=bridge

and you set your gateway address on a macvlan on the host.




More information about the lxc-users mailing list