Re: [OpenWrt-Devel] netifd: problem setting routes for alias-networks

2013-09-15 Thread Felix Fietkau
On 2013-09-15 10:23 PM, Bastian Bittorf wrote: > * Felix Fietkau [15.09.2013 21:59]: >> > maybe i misunderstand uci - IMHO the question is: >> > how can i name an anonymous section? >> From the command line help: >> rename .[.]= > > 8-) ok, i could believe it - so one can NOT name a sect

Re: [OpenWrt-Devel] netifd: problem setting routes for alias-networks

2013-09-15 Thread Bastian Bittorf
* Felix Fietkau [15.09.2013 21:59]: > > maybe i misunderstand uci - IMHO the question is: > > how can i name an anonymous section? > From the command line help: > rename .[.]= 8-) ok, i could believe it - so one can NOT name a section, but must generate an unamed/anonymous section and a

Re: [OpenWrt-Devel] netifd: problem setting routes for alias-networks

2013-09-15 Thread Felix Fietkau
On 2013-09-15 7:55 PM, Bastian Bittorf wrote: > * Felix Fietkau [15.09.2013 19:50]: >> > which commands should i use for naming the alias section? i tried e.g. >> > >> > uci set network.@alias[-1].name=test >> > >> > can you please write down the commands in the right order? >> If you run uci w

Re: [OpenWrt-Devel] netifd: problem setting routes for alias-networks

2013-09-15 Thread Bastian Bittorf
* Felix Fietkau [15.09.2013 19:50]: > > which commands should i use for naming the alias section? i tried e.g. > > > > uci set network.@alias[-1].name=test > > > > can you please write down the commands in the right order? > If you run uci without arguments, it'll print a command line help :)

Re: [OpenWrt-Devel] netifd: problem setting routes for alias-networks

2013-09-15 Thread Felix Fietkau
On 2013-09-15 2:35 PM, Bastian Bittorf wrote: > * Felix Fietkau [15.09.2013 13:54]: >> > uci add network alias >> > uci set network.@alias[-1].interface="lan" >> > uci set network.@alias[-1].bla=... >> > >> > uci add network route >> > uci set network.@route[-1].interface=cfg164d8f >> > uci set n

Re: [OpenWrt-Devel] netifd: problem setting routes for alias-networks

2013-09-15 Thread Bastian Bittorf
* Felix Fietkau [15.09.2013 13:54]: > > uci add network alias > > uci set network.@alias[-1].interface="lan" > > uci set network.@alias[-1].bla=... > > > > uci add network route > > uci set network.@route[-1].interface=cfg164d8f > > uci set network.@route[-1].bla=... > Bad idea. The cfg164d8f na

Re: [OpenWrt-Devel] netifd: problem setting routes for alias-networks

2013-09-15 Thread Felix Fietkau
On 2013-09-15 1:25 PM, Bastian Bittorf wrote: > * Felix Fietkau [15.09.2013 12:52]: >> I probably should have written instead of alias. The alias >> section needs a name (it's considered an interface by netifd), and the >> route 'interface' option needs to point at that alias section name. > > t

Re: [OpenWrt-Devel] netifd: problem setting routes for alias-networks

2013-09-15 Thread Bastian Bittorf
* Felix Fietkau [15.09.2013 12:52]: > I probably should have written instead of alias. The alias > section needs a name (it's considered an interface by netifd), and the > route 'interface' option needs to point at that alias section name. thank you. it works like this: uci add network alias uc

Re: [OpenWrt-Devel] netifd: problem setting routes for alias-networks

2013-09-15 Thread Felix Fietkau
On 2013-09-15 12:16 PM, Bastian Bittorf wrote: > * Felix Fietkau [15.09.2013 11:58]: >> Try network.myroute.interface=alias > > uci changes looks now like this: > > network.cfg114d8f=alias > network.cfg114d8f.interface=lan > network.cfg114d8f.proto=static > network.cfg114d8f.ipaddr=192.168.10.2

Re: [OpenWrt-Devel] netifd: problem setting routes for alias-networks

2013-09-15 Thread Bastian Bittorf
* Felix Fietkau [15.09.2013 11:58]: > Try network.myroute.interface=alias uci changes looks now like this: network.cfg114d8f=alias network.cfg114d8f.interface=lan network.cfg114d8f.proto=static network.cfg114d8f.ipaddr=192.168.10.2 network.cfg114d8f.netmask=255.255.255.0 network.cfg12c8b4=route

Re: [OpenWrt-Devel] netifd: problem setting routes for alias-networks

2013-09-15 Thread Felix Fietkau
On 2013-09-15 10:20 AM, Bastian Bittorf wrote: > when setting an alias network via > > network.@alias[0]=alias > network.@alias[0].interface=lan > network.@alias[0].proto=static > network.@alias[0].ipaddr=192.168.10.2 > network.@alias[0].netmask=255.255.255.0 > > and adding a route 'myroute' on t

[OpenWrt-Devel] netifd: problem setting routes for alias-networks

2013-09-15 Thread Bastian Bittorf
when setting an alias network via network.@alias[0]=alias network.@alias[0].interface=lan network.@alias[0].proto=static network.@alias[0].ipaddr=192.168.10.2 network.@alias[0].netmask=255.255.255.0 and adding a route 'myroute' on top of this, the route will not be established on bootup network.