pppoe подключается ровно через одну перезагрузку - т.е. необходимо чтобы произошла загрузка ядра, потом 1-й раз подклячается, 2-й - нет, 3-й ок и т.д.
Настраивал через pppoe-setup.
$ cat /etc/conf.d/net
text
modules=( "ifconfig" )
config_eth0="192.168.0.1 netmask 255.255.255.0"
config_eth1=( "adsl" )
user_eth1=( "vXXXXXX" )
postup() {
if [ "${IFACE}" = "eth1" ]; then
/usr/local/sbin/zfirewall
fi
return 0
}
newzenon, прежде, чем продолжить, приведите конфигурационный файл /etc/conf.d/net в соответствии с правилами синтаксиса, описанными в /usr/share/doc/openrc-НОМЕР_ВЕРСИИ/net.example.bz2
Lupo Alberto, ничего не изменилось, для чистоты всё таки сделал, согласно моему /usr/share/doc/openrc-0.9.3-r1/net.example.bz2 поправил, в принципе только скобки убраны.
postup() {
if [ "${IFACE}" = "eth1" ]; then
/usr/local/sbin/zfirewall
fi
return 0
}
Всё также - pppoe включается ровно через один reboot.
Кусок лога 1 - pppoe не подключился:
text
rc default logging started at Mon Sep 12 15:37:09 2011
vixie-cron | * Starting vixie-cron ...
udev-postmount | * Doing udev cleanups
net.eth1 | * Bringing up interface eth1
net.eth0 | * Bringing up interface eth0
[ ok ]
smartd | * Use of the opts variable is deprecated and will be
smartd | * removed in the future.
mysql | * Starting mysql ...
smartd | * Please use extra_commands or extra_started_commands.
smartd | * Starting S.M.A.R.T. monitoring daemon ...
net.eth1 | * adsl ...
net.eth0 | * 192.168.0.1 ...
[ ok ]
net.eth0 | * Running postup ...
net.eth1 | * Starting ADSL for eth1
[ ok ]
[ ok ]
local | * local: waiting for net.eth1 (50 seconds)
netmount | * netmount: waiting for net.eth1 (50 seconds)
php-fpm | * php-fpm: waiting for net.eth1 (50 seconds)
dnsmasq | * dnsmasq: waiting for net.eth1 (50 seconds)
nginx | * nginx: waiting for net.eth1 (50 seconds)
local | * local: waiting for net.eth1 (41 seconds)
netmount | * netmount: waiting for net.eth1 (41 seconds)
php-fpm | * php-fpm: waiting for net.eth1 (41 seconds)
nginx | * nginx: waiting for net.eth1 (41 seconds)
dnsmasq | * dnsmasq: waiting for net.eth1 (41 seconds)
local | * local: waiting for net.eth1 (32 seconds)
netmount | * netmount: waiting for net.eth1 (32 seconds)
php-fpm | * php-fpm: waiting for net.eth1 (32 seconds)
nginx | * nginx: waiting for net.eth1 (32 seconds)
dnsmasq | * dnsmasq: waiting for net.eth1 (32 seconds)
net.eth1 |TIMED OUT
net.eth1 |/usr/sbin/pppoe-start: line 198: 16139 Terminated $CONNECT <(echo "$CONFREAD") > /dev/null 2>&1
[ !! ]
[ !! ]
net.eth1 | * ERROR: net.eth1 failed to start
php-fpm | * ERROR: cannot start php-fpm as net.eth1 would not start
dnsmasq | * ERROR: cannot start dnsmasq as net.eth1 would not start
nginx | * ERROR: cannot start nginx as net.eth1 would not start
netmount | * ERROR: cannot start netmount as net.eth1 would not start
local | * Starting local
[ ok ]
rc default logging stopped at Mon Sep 12 15:37:43 2011
Сразу перезагружаюсь и подключается - вот следующий кусок лога:
text
rc default logging started at Mon Sep 12 15:40:37 2011
vixie-cron | * Starting vixie-cron ...
net.eth0 | * Bringing up interface eth0
udev-postmount | * Doing udev cleanups
net.eth1 | * Bringing up interface eth1
[ ok ]
smartd | * Use of the opts variable is deprecated and will be
smartd | * removed in the future.
mysql | * Starting mysql ...
smartd | * Please use extra_commands or extra_started_commands.
net.eth0 | * 192.168.0.1 ...
net.eth1 | * adsl ...
[ ok ]
smartd | * Starting S.M.A.R.T. monitoring daemon ...
net.eth0 | * Running postup ...
net.eth1 | * Starting ADSL for eth1
[ ok ]
[ ok ]
net.eth1 | * Running postup ...
dnsmasq | * Use of the opts variable is deprecated and will be
dnsmasq | * removed in the future.
dnsmasq | * Please use extra_commands or extra_started_commands.
dnsmasq | * Starting dnsmasq ...
[ ok ]
netmount | * Mounting network filesystems ...
[ ok ]
nginx | * Use of the opts variable is deprecated and will be
nginx | * removed in the future.
[ ok ]
nginx | * Please use extra_commands or extra_started_commands.
nginx | * Checking nginx' configuration ...
[ ok ]
nginx | * Starting nginx ...
[ ok ]
php-fpm | * Use of the opts variable is deprecated and will be
php-fpm | * removed in the future.
php-fpm | * Please use extra_commands or extra_started_commands.
php-fpm | * Starting PHP FastCGI Process Manager ...
[ ok ]
[ ok ]
local | * Starting local
[ ok ]
rc default logging stopped at Mon Sep 12 15:40:42 2011
Попробовал (сразу после загрузки с неподнятым pppoe):
[console]/etc/init.d/net.eth1 start[/console]
pppoe поднялся, обработал нормально postup() (там у меня firewall), но! не поднял за собой dnsmasq, php-fpm и nginx (что при нормальном подключении поднимается вместе с eth1).
Также попробовал pppoe-start/stop - работает.
Можно конечно придумать как повторно всё это запускать, но это уже какие-то костыли, и +60 сек к загрузке.
ы. Вот главное не понятна переодичность - ровно через раз.
Обычная сетевая карта, подключение pppoe, в debian такого не наблюдается, включается всегда, настройка в deb - через pppoeconf, да и в других дистрибутивах такого не наблюдал, например в федоре (NM не использовал, настройка через консоль) помню как-то ставил всё -ок.
Так что вариант неполадок с провайдером отметается.
postup() {
if [ "${IFACE}" = "eth0" ]; then
/usr/local/sbin/zfirewall
fi
return 0
}
Подключается вроде всегда, но warning'ов туча, последний лог:
text
rc sysinit logging started at Tue Sep 13 03:29:08 2011
OpenRC 0.9.3 is starting up Gentoo Linux (x86_64)
* /proc is already mounted, skipping
udev-mount | * /dev is already mounted
udev | * Starting udevd ...
[ ok ]
udev | * Populating /dev with existing devices through uevents ...
[ ok ]
udev | * Waiting for uevents to be processed ...
[ ok ]
devfs | * Mounting /dev/shm ...
[ ok ]
rc sysinit logging stopped at Tue Sep 13 03:29:08 2011
rc boot logging started at Tue Sep 13 03:29:08 2011
hwclock | * Setting system clock using the hardware clock [UTC] ...
hwclock |hwclock: Cannot access the Hardware Clock via any known method.
hwclock |hwclock: Use the --debug option to see the details of our search for an access method.
hwclock | * Failed to set the system clock
[ !! ]
hostname | * Setting hostname to gzst ...
sysctl | * Configuring kernel parameters ...
[ ok ]
modules | * Autoloaded 0 module(s)
fsck | * Checking local filesystems ...
[ ok ]
root | * Remounting root filesystem read/write ...
[ ok ]
mtab | * Updating /etc/mtab ...
[ ok ]
localmount | * Mounting local filesystems ...
[ ok ]
swap | * Activating swap devices ...
procfs | * Mounting USB device filesystem [usbfs] ...
urandom | * Initializing random number generator ...
[ ok ]
[ ok ]
[ ok ]
bootmisc | * Creating user login records ...
[ ok ]
bootmisc | * Cleaning /var/run ...
[ ok ]
bootmisc | * Wiping /tmp directory ...
[ ok ]
termencoding | * Setting terminal encoding [UTF-8] ...
net.lo | * Bringing up interface lo
[ ok ]
keymaps | * Setting keyboard mode [UTF-8] ...
consolefont | * Setting console font [cyr-sun16] ...
[ ok ]
keymaps | * Loading key mappings [ru] ...
[ ok ]
[ ok ]
net.lo | * 127.0.0.1/8 ...
[ ok ]
net.lo | * Adding routes
net.lo | * 127.0.0.0/8 via 127.0.0.1 ...
[ ok ]
net.lo | * Running postup ...
rc boot logging stopped at Tue Sep 13 03:29:10 2011
rc default logging started at Tue Sep 13 03:29:10 2011
udev-postmount | * Doing udev cleanups
vixie-cron | * Starting vixie-cron ...
net.eth0 | * Bringing up interface eth0
net.eth1 | * Bringing up interface eth1
smartd | * Use of the opts variable is deprecated and will be
smartd | * removed in the future.
mysql | * Starting mysql ...
smartd | * Please use extra_commands or extra_started_commands.
smartd | * Starting S.M.A.R.T. monitoring daemon ...
[ ok ]
net.eth1 | * 192.168.0.1 ...
[ ok ]
net.eth0 | * Running postup ...
net.eth1 | * Running postup ...
[ ok ]
net.eth0 |Device "ppp0" does not exist.
net.eth0 |Device "ppp0" does not exist.
[ ok ]
net.ppp0 | * Bringing up interface ppp0
net.ppp0 | * Starting pppd in ppp0 ...
dnsmasq | * WARNING: dnsmasq is scheduled to start when net.ppp0 has started
netmount | * WARNING: netmount is scheduled to start when net.ppp0 has started
nginx | * WARNING: nginx is scheduled to start when net.ppp0 has started
php-fpm | * WARNING: php-fpm is scheduled to start when net.ppp0 has started
[ ok ]
net.ppp0 | * Backgrounding ...
net.ppp0 | * WARNING: net.ppp0 has started, but is inactive
[ ok ]
local | * Starting local
[ ok ]
rc default logging stopped at Tue Sep 13 03:29:14 2011