[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: serial links naming



"Дмитрий Федосеев" <fedoseev@planar.ucsnet.ru> writes:


> хочется установить соответствие:
> /etc/ppp/peers/provider1 -> ppp0
> /etc/ppp/peers/provider2 -> ppp1
> и т.д.
> Можно ли это сделать?

Можно.  У pppd есть недокументированный параметр unit <n>
Соответственно в /etc/ppp/peers/provider1 надо добавить unit 0, а в
provider2 добавить unit 1 . 
Поробности в pppd/options.c
-------------------------------------------------------------------
{ "unit", o_int, &req_unit,
      "PPP interface unit number to use if possible",
      OPT_PRIO | OPT_LLIMIT, 0, 0 },
-------------------------------------------------------------------

-- 
	Mon at phobos.loc
	Der kalte Mond in voller Pracht...
	The Moon is Waning Crescent (33% of Full)



Reply to: