Currently openwrt doesn't accept a gateway that is in a different subnet in a static or dhcp config. That is due to $(route add default gw "$gateway" dev "$iface") requiring that the $gateway is first reachable by another route. I've worked around this by editting /lib/network/config.sh and /usr/share/default.script, with something like this:
ip route get "$gateway" >/dev/null 2>/dev/null || route add -host "$gateway" dev "$iface" route add default gw "$gateway" dev "$iface" This works ok, but it needs ip(8) which is not a good idea, I guess. Any other command I can use? Any brave awk/sed coder to parse "route -n"? Regards, -- + Nuno Gonçalves + nuno...@gmail.com + http://nunoassimassim.blogspot.com/ + PORTUGAL E-mail sent directly from Google Mail webmail using HTTPS on behalf of Nuno João Pinto Gonçalves, birth date 1986-11-16. E-mail headers provide good assurance that this message was not tampered and originates from nuno...@gmail.com. If you require additional security, I may provide on request X509 electronic signature under Portuguese government chain. Se precisar de assinatura digital do Cartão de Cidadão, de uma apitadela. _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel