[OpenWrt-Devel] Netifd support for tunnels and address configuration

Baptiste Jonglez bjonglez at illyse.org
Thu Jul 17 11:04:03 EDT 2014


Hi,

I am currently adding GRE support for OpenWRT, based on 6in4 support [1]
(since I couldn't find any documentation).

What is the proper way to support address configuration for tunnel
interfaces?  It seems redundant to handle static address configuration for
each tunnel type, especially with the new ip6* options in BB.  We could
even imagine doing DHCP over a tap tunnel (for instance gretap).

My use case is several GRE interfaces, each with a static IPv4/IPv6
configuration.  Currently, I am using "proto none", creating tunnels and
assigning addresses in /etc/rc.local, but I'd like to move to native
OpenWRT configuration.

Intuitively, one would like to only define the tunnel parameters in the
"proto {gre,6in4,6to4}" block (such as remote endpoint, mtu, ttl, etc).
Then, we would use a "proto static" block, relating to this new interface,
to handle address configuration.

Is it possible?  If not, what is the right way to configure addresses on a
tunnel interface?

Thanks,
Baptiste

[1] http://wiki.openwrt.org/doc/uci/network#protocol.6in4.ipv6-in-ipv4.tunnel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20140718/97596414/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list