From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Marc Roos" Subject: FW: gretap tunnel redirecting 2 different networks on destination host Date: Tue, 3 Apr 2018 06:33:43 +0200 Message-ID: <15208.4267618649$1522749049@news.gmane.org> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 8BIT To: netdev Return-path: Received: from mail03.roosit.eu ([212.19.193.213]:57432 "EHLO mail03.roosit.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751413AbeDCJwu (ORCPT ); Tue, 3 Apr 2018 05:52:50 -0400 Received: from sx.f1-outsourcing.eu (host-213.189.39.136.telnetsolutions.pl [213.189.39.136] (may be forged)) by mail03.roosit.eu (8.14.7/8.14.7) with ESMTP id w339qlT8026273 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 3 Apr 2018 11:52:49 +0200 Received: from sx.f1-outsourcing.eu (localhost.localdomain [127.0.0.1]) by sx.f1-outsourcing.eu (8.13.8/8.13.8) with ESMTP id w334XhF9027626 for ; Tue, 3 Apr 2018 06:33:43 +0200 Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-ID: I see you are quite busy with discussing the patches etc. If this is the incorrect place to ask for a little help please let me know. I just got this from some one on stack overflow who got some answers here. -----Original Message----- Subject: gretap tunnel redirecting 2 different networks on destination host How can I get the 10.11.12.x traffic received on tun1 at server B to eth2, and 172.16.1.x to eth1? I have a server A that sends 172.16.1.x and 10.11.12.x traffic via a gretab tunnel 192.168.1.x to server B. +-------------+ +------------+ 172.16.1.x | B | | A | -------|eth1 | 192.168.1.x GRETAP | | | tun1|-----------------------------|tun1 | 10.11.12.x | | | | -------|eth2 | | | +-------------+ +------------+ When I put the tun1 interface of server B in a bridge with eth1 I am able to ping several 172.16.1.x ip's from server A. And communication on this network seems to be ok - I cannot put eth2 on the same bridge. - I thought of creating a 2nd gretab tunnel and use each tunnel for a network, but I think there is probably a better solution.