I'd like to bond two of my router's network ports, but when giving it an intial shot through LuCI, it demands I fill in an IP for the interface. Checking the UCI entries, it looks like it is indeed created as an interface. I'd like to make the bond interface part of the LAN still. Is this possible? If so, how?
UCI entries LuCI shows:
uci set network.bond0=interface
uci set network.bond0.proto='bonding'
uci set network.bond0.force_link='1'
uci set network.bond0.netmask='255.255.255.0'
uci add_list network.bond0.slaves='p3'
uci add_list network.bond0.slaves='p4'
uci set network.bond0.bonding_policy='balance-rr'
uci set network.bond0.packets_per_slave='1'
uci set network.bond0.all_slaves_active='0'
uci set network.bond0.link_monitoring='off'
uci set network.bond0.ipaddr='10.0.0.100'
Didi you found way to create Bonding interface with out IP address? I can create it using Luci, but need ti set any IP to it and only after that can add it to bridge. I don't found way, how to make bonding without IP.
I know it's not beautiful but you can write a small script which creates the bond and call that script from the hook script after your bridge interface is up...