Hi Felix,

On 24/06/12 15:47, Felix Fietkau wrote:
> Support for that is already part of netifd in a proto-independent way.

> There is already the 'defaultroute' option (defaults to 1). Set that to
> 0 and netifd will not apply udhcpc's default route.
I'm aware us this option and tried using it, somehow it doesn't have the desired
effect (defaultroute set to '0' still sets a default route when using proto 
'dhcp').

>> - use_gateway_for_dns_servers (would be enabled in my case)
>> - usepeerdns (would be disabled in my case)
> There's the 'peerdns' option, also supported for all proto handlers.
Ack. This works for me.

> You can extract the provided DNS server and default gateway (even when
> unused) by using the ifstatus script (which simply does a ubus call).
Yes, this is what I was thinking, good to hear it's the right way to go.
>From what I can see, for proto 'ppp' it's still pppd setting up/replacing the
default route itself rather than having netifd doing this task.
If netifd should be aware of the DNS server supplied by pppd even when unused,
we shall probably always pass usepeerdns to pppd and pass them to netifd in the
ifup script, right?

>> Probably it would be a good idea to let the user select the parent-interface 
>> for
>> PPtP and L2TP links instead of dynamically adding the interface-dependencies
>> based on routes, as that won't always work nicely (especially when there is 
>> more
>> than one such interface providing a potential default route).
> Yep, that's on my todo list as well.
Good.
I'll try to find out why 'defaultroute' set to '0' still uses the dhcp-supplied
default gateway as default route (I tested r32466 on ar71xx).

As it is part of my productive system here, I'll happily test that whole
interface-dependency story with DHCP and both, L2TP and PPTP running on top of 
it.

> Only a few minor details are missing to make that work.
Ack. That's why I brought it up :)


Cheers


Daniel
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to