[Openswan Users] L2TP/IPSEC & DSL ppp interface assignment

Lewis Shobbrook lshobbrook at fasttrack.net.au
Tue Mar 15 12:25:06 CET 2005


Thanks again Jacco
> 
> > while the connection is down we get an L2TP/IPSEC VPN connection 
> > coming in which then occupies the ppp0, when the DSL service comes 
> > back online it takes the next available ppp interface such 
> as ppp1. Is 
> > there anyway to assign or reserve the ppp interface to prevent this 
> > from happening?
> 
> Yes, you can add 'unit 1' to /etc/ppp/options.l2tpd. Then 
> pppd will look for a free ppp unit number starting from ppp1. 
> 'unit 2' means it will start from ppp2 etc. etc. This will 
> allow you to reserve ppp0 for the DSL link.
> 
> You do need ppp-2.4.2 or higher for this option. The pppd man 
> page says that it only works for outbound connections but it 
> works for incoming connections too (undocumented feature in 
> pppd?). See also this discussion over at the l2tpd mailinglist:
> 
> http://www.mail-archive.com/l2tpd-devel@l2tpd.org/msg00895.html
> 
This setting works a treat! 

...It also works for pptpd FYI.

Cheers,

Lewis


More information about the Users mailing list