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

Baptiste Jonglez bjonglez at illyse.org
Sun Aug 3 21:51:04 EDT 2014


On Sun, Aug 03, 2014 at 11:37:51AM +0200, Steven Barth wrote:
> tbh. we should get rid of that option network stuff.
> I merged it anyway at first so we can get some experience with this
> gre-integration.
> Normally you should use something like this instead:
> 
> config interface mygre
>         option proto 'gre'
>         option ipaddr '203.0.113.2'
>         option peeraddr '192.0.2.42'
>         option network 'tunnel'

You meant to remove this option, I guess.

> config interface mygre_static
> 	option proto static
> 	option ifname @mygre
> 	option ipaddr 10.0.0.217
> 	option netmask 255.255.255.0
> 
> 
> Same should hopefully work with gre and gretap as source.
> If this does the trick I'm for removing the option network stuff.

Thanks, I didn't know this syntax.  I'll give it a try.

Is the "@mygre" syntax new?  It seems to have been introduced in 2011
(ab4a8a35 in netifd), but I didn't find any other reference.

Thanks,
Baptiste
-------------- 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/20140804/0c266749/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