Перейти к содержанию

Навигация

Modem-stretch/en: различия между версиями

Новая страница: «The usage of the ppp0 interface configuration in ''/etc/network/interfaces'' file gives the most comprehensive ability to control establishing the connection to t…»
(Новая страница: «For connection to restart itself when it breaks, and to execute it an unlimited number of times, add the following lines to the connection settings (the settings…»)
(Новая страница: «The usage of the ppp0 interface configuration in ''/etc/network/interfaces'' file gives the most comprehensive ability to control establishing the connection to t…»)
Строка 158: Строка 158:
if they're not written. In the latest versions of controllers, these settings are configured by default.
if they're not written. In the latest versions of controllers, these settings are configured by default.


Наиболее полные возможности по контролю за установлением подключения к интернету дает использование настройки интерфейса ppp0 в файле ''/etc/network/interfaces''.
The usage of the ppp0 interface configuration in ''/etc/network/interfaces'' file gives the most comprehensive ability to control establishing the connection to the Internet. The most popular option is the ability to execute commands before installing and after enabling/disabling the ppp0 interface.
Самой востребованной опцией является возможность выполнения команд перед установлением и после включения/отключения интерфейса ppp0.


В файле /etc/network/interfaces для настройки ppp можно использовать стандартные iface-опции pre-up, up, post-up, down, pre-down, post-down. Они задают команды, которые будут выполняться на различных фазах инициализации/деинициализации интерфейса. Подробно особенности их функционирования описаны в [http://manpages.ubuntu.com/manpages/trusty/man5/interfaces.5.html man interfaces] в разделе IFACE OPTIONS.
В файле /etc/network/interfaces для настройки ppp можно использовать стандартные iface-опции pre-up, up, post-up, down, pre-down, post-down. Они задают команды, которые будут выполняться на различных фазах инициализации/деинициализации интерфейса. Подробно особенности их функционирования описаны в [http://manpages.ubuntu.com/manpages/trusty/man5/interfaces.5.html man interfaces] в разделе IFACE OPTIONS.
12 063

правки