[OpenWrt-Devel] [PATCH] gre: Generic Routing Encapsulation package support

Baptiste Jonglez bjonglez at illyse.org
Sat Aug 2 10:51:33 EDT 2014

Thank you for this nice implementation.  I've started some documentation
on http://wiki.openwrt.org/doc/uci/network

A few comments after testing gre/gretap on BB-rc2 (with netifd 2014-07-30
from trunk):

1/ the firewall rules added by "zone" do no seem to be flushed when the
   interface goes down (e.g. by issuing "ifdown mygre")

2/ "tunlink" does not seem to work for anything else than "wan".  When
   trying to set it to "lan" (which is properly defined in the network
   config), the tunnel is not created.  There is no error in readlog.

3/ what is the method for configuring static IP addresses on the tunnel
   interface?  Something like this seems to work:

config interface tunnel
        option proto 'static'
        option ipaddr ''
        option netmask ''

config interface mygre
        option proto 'gretap'
        option ipaddr ''
        option peeraddr ''
        option network 'tunnel'

This works for "proto gretap", but not for "proto gre", as there is no
"network" option in this case.  Is there a reason for not providing the
option?  Of course, it makes no sense to bridge a tun GRE interface, but
the above config doesn't involve any bridge and should work just fine for

If there is another way to configure addresses, I'm interested to know
about it.

On Wed, Jul 30, 2014 at 01:51:09PM +0200, Hans Dedecker wrote:
> Following options are valid for gre and gretap kinds:
>     -ipaddr
>     -peeraddr
>     -df
>     -mtu
>     -ttl
>     -tunlink
>     -zone
>     -ikey
>     -okey
>     -icsum
>     -ocsum
>     -iseqno
>     -oseqno

For the sake of completeness, the ToS field feels like missing :)
(IFLA_GRE_TOS, see also tos/dsfield/tclass in iproute2).

But otherwise, it's nice to have so much options.

Thank you,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20140802/fedb4d3f/attachment.sig>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list