Originally Posted by
andy2112
1. То есть в любой момент можно без проблем поменять mac вот так
Code:
ifconfig vlan1 hw ether 00:11:22:33:44:55
он сразу поменяется и сразу без какой либо задержки можно устанавливать соединение по PPPoE?
Да.
Originally Posted by
andy2112
2. Как правильнее поступить? Чтобы при загрузке роутера ни какое соединение не устанавливалось? Или правильнее, чтобы соединение устанавливалось с настройками из веб-интерфейса, устанавливалось время из интернета, а потом уже по расписанию соединение переустанавливалось с новыми параметрами?
Наверное, это у Вас нужно спросить - это же Ваша задача?
Однако, без правильного времени заставить правильно работать cron будет непросто (если речь идет о точных границах, а не "1 раз в N минут").
Originally Posted by
andy2112
3. Как сделать, чтобы при загрузке роутера ни какое соединение не устанавливалось?
Не настраивать его стандартным способом.
Originally Posted by
andy2112
4. В чем разница между
Code:
kilall pppd
pppd file /tmp/ppp/options.wan1
и
Code:
kill -SIGHUP "`pidof pppd`"
?
man killall:
Code:
DESCRIPTION
killall sends a signal to all processes running any of the specified commands.
If no signal name is specified, SIGTERM is sent.
man pppd:
Code:
NOTES
Some limited degree of control can be exercised over a running pppd process by
sending it a signal from the list below.
SIGINT, SIGTERM
These signals cause pppd to terminate the link (by closing LCP), restore
the serial device settings, and exit. If a connector or disconnector
process is currently running, pppd will send the same signal to its
process group, so as to terminate the connector or disconnector process.
SIGHUP This signal causes pppd to terminate the link, restore the serial device
settings, and close the serial device. If the persist or demand option
has been specified, pppd will try to reopen the serial device and start
another connection (after the holdoff period). Otherwise pppd will
exit. If this signal is received during the holdoff period, it causes
pppd to end the holdoff period immediately. If a connector or discon-
nector process is running, pppd will send the same signal to its process
group.
SIGUSR1
This signal toggles the state of the debug option.
SIGUSR2
This signal causes pppd to renegotiate compression. This can be useful
to re-enable compression after it has been disabled as a result of a
fatal decompression error. (Fatal decompression errors generally indi-
cate a bug in one or other implementation.)