All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ido Schimmel <idosch@idosch.org>
To: Ben Greear <greearb@candelatech.com>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: GRE tunnels bound to VRF
Date: Mon, 18 Nov 2024 11:00:37 +0200	[thread overview]
Message-ID: <ZzsCNUN1vl01uZcX@shredder> (raw)
In-Reply-To: <86264c3a-d3f7-467b-b9d2-bdc43d185220@candelatech.com>

On Sun, Nov 17, 2024 at 10:40:18AM -0800, Ben Greear wrote:
> Hello,
> 
> Is there any (sane) way to tell a GRE tunnel to use a VRF for its
> underlying traffic?
> 
> For instance, if I have eth1 in a VRF, and eth2 in another VRF, I'd like gre0 to be bound
> to the eth1 VRF and gre1 to the eth2 VRF, with ability to send traffic between the two
> gre interfaces and have that go out whatever the ethernet VRFs route to...

You can set eth{1,2} as the "physical device" of gre{0,1}

ip link add name gre0 up type gre [...] dev eth1
ip link add name gre1 up type gre [...] dev eth2

The "physical device" can be any interface in the VRF, not necessarily
eth{1,2}.

  parent reply	other threads:[~2024-11-18  9:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-17 18:40 GRE tunnels bound to VRF Ben Greear
2024-11-17 22:41 ` Alexandre Ferrieux
2024-11-18 16:38   ` Ben Greear
2024-11-18  9:00 ` Ido Schimmel [this message]
2024-11-18 19:48   ` Ben Greear
2024-11-19  1:47     ` Ben Greear
2024-11-19 14:59       ` Ben Greear
2024-11-19 16:36         ` David Ahern
2024-11-19 16:53           ` Ben Greear
2024-11-19 18:04             ` Eyal Birger
2024-11-19 18:08               ` David Ahern
2024-11-20  7:40           ` Ido Schimmel

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=ZzsCNUN1vl01uZcX@shredder \
    --to=idosch@idosch.org \
    --cc=greearb@candelatech.com \
    --cc=netdev@vger.kernel.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.