All of lore.kernel.org
 help / color / mirror / Atom feed
From: ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org (Eric W. Biederman)
To: Sudheer <sudheer-ETsMpvZGyKJdeDdKuUvyIgC/G2K4zDHf@public.gmane.org>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Re: vlan based macvlan issue
Date: Wed, 15 Jul 2009 01:13:13 -0700	[thread overview]
Message-ID: <m1ocrm8iue.fsf@fess.ebiederm.org> (raw)
In-Reply-To: <1129ae910907060609g61322dcas8df914eeb2148a6f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> (sudheer-ETsMpvZGyKJdeDdKuUvyIgC/G2K4zDHf@public.gmane.org's message of "Mon\, 6 Jul 2009 18\:39\:23 +0530")

Sudheer <sudheer-ETsMpvZGyKJdeDdKuUvyIgC/G2K4zDHf@public.gmane.org> writes:

> Hi,
>
>    I have created a macvlan container using one vlan interface . After that
> I couldn't ping form the macvlan container to the host machine which is
> included the same vlan network. Below the details.
>
> lxc-macvlan config file :
>
>        lxc.utsname = alpha
>        lxc.network.type = macvlan
>        lxc.network.flags = up
>        lxc.network.link = eth1.100
>        lxc.network.hwaddr = 4a:49:43:49:79:bd
>        lxc.network.ipv4 = <xx.xx.100.xx>
> After creating the container able to see the macvlan interface but couldn't
> ping from the container to host machines. Is anything missing in my above
> config file or anything need to be add for vlan based macvlan?

That is one of the dubious features of macvlan devices.

There are some good technical reasons for it as fixing it makes
the macvlan code noticeably more complicated and expensive.

My suggestion would be to not use the primary ethernet interface
and use macvlans for everything.  macvlan to macvlan communication
should work properly and you should loose anything always going
through a macvlan.

Eric

      parent reply	other threads:[~2009-07-15  8:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-06 13:09 vlan based macvlan issue Sudheer
     [not found] ` <1129ae910907060609g61322dcas8df914eeb2148a6f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-15  8:13   ` Eric W. Biederman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1ocrm8iue.fsf@fess.ebiederm.org \
    --to=ebiederm-as9lmozglivwk0htik3j/w@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=sudheer-ETsMpvZGyKJdeDdKuUvyIgC/G2K4zDHf@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.