From: "לירן אודיז" <liranodiz@gmail.com>
To: netdev@vger.kernel.org
Subject: GRE Tunnel Over Linux VRF
Date: Mon, 19 Oct 2020 17:59:56 +0300 [thread overview]
Message-ID: <CAFZsvkmCyRdOePeedok0b6Hn4PR-FPcNjfY7sWBzSBOAW+HRWg@mail.gmail.com> (raw)
Hi, i am trying to create GRE tunnel over vrf.
after binding the GRE tunnel interface (also the LAN & WAN
interfaces) to VRF, the traffic didn't forwarded via the WAN
interface, the path is LAN(VRx)----->GRE--x-->WAN(VRx) .
only while the WAN interface is binding to the default router, the
traffic forwarded correctly via the WAN interface, the path is
LAN(VRx)----->GRE----->WAN(VRx).
used configuration:
ifconfig lan1 80.80.80.1/24 up
ifconfig wan2 50.50.50.1/24 up
ip link add VR2 type vrf table 2
ip link set dev VR2 up
ip route add table 2 unreachable default metric 4278198272
ip tunnel add greT2 mode gre local 50.50.50.1 remote 50.50.50.2
ip addr add 55.55.55.1/24 dev greT2
ip link set greT2 up
ip link set dev greT2 master VR2
ip link set dev lan1 master VR2
ip link set dev wan2 master VR2
ip route add vrf VR2 90.90.90.0/24 via 55.55.55.2
what is the correct way to create GRE tunnel over VRF.
Thank for support.
BR, Liran
next reply other threads:[~2020-10-19 15:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-19 14:59 לירן אודיז [this message]
2020-10-19 17:08 ` GRE Tunnel Over Linux VRF Alarig Le Lay
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=CAFZsvkmCyRdOePeedok0b6Hn4PR-FPcNjfY7sWBzSBOAW+HRWg@mail.gmail.com \
--to=liranodiz@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).