dhcpcd-discuss

Re: preserving l2tp

Roy Marples

Sat Jan 01 19:09:05 2011

On Sat, 2011-01-01 at 21:02 +0200, Niv wrote:
> As ppp wont assign a default route as long as the eth0 default route
> is present, how can I get that gateway info? 
> Do you mean I should issue a dhcp query after the l2tp connection is
> established? 
> Then I can elevate its metric higher then the eth0 default gw. 

No :)

Simply, let dhcpcd manage your interfaces by starting it as a single
daemon. You use gentoo, so simply `rc-update add dhcpcd`, and remove all
net.* scripts apart from net.lo. Although that requires that you are
using OpenRC as baselayout-1 does not support init script templates,
which dhcpcd uses.

dhcpcd can monitor the interface for the assigned IP and destination
addresses manage the default route accordingly. It will even assign
correct metrics, which you an also manually adjust if you desire. There
is no actual need to call dhcpcd after the l2tp connection is made.

Thanks

Roy


References:
preserving l2tpNiv
Re: preserving l2tpRoy Marples
Re: preserving l2tpNiv
Re: preserving l2tpRoy Marples
Re: preserving l2tpNiv
Re: preserving l2tpRoy Marples
Re: preserving l2tpNiv Wiser
Re: preserving l2tpRoy Marples
Re: preserving l2tpNiv Wiser
Re: preserving l2tpRoy Marples
Archive administrator: postmaster@marples.name