Короче говоря, дело такое: подключаюсь к провайдеру по l2tp.
root@serv:~# cat /etc/xl2tpd/xl2tpd.conf
[global]
access control = yes
[lac corbina]
name = 1234567890
require pap = yes
lns = 10.255.255.247
redial = yes
redial timeout = 5
require authentication =no
ppp debug = no
pppoptfile = /etc/ppp/options.xl2tpd
autodial = yes
root@serv:~# cat /etc/xl2tpd/xl2tpd.conf
[global]
access control = yes
[lac corbina]
name = 1234567890
require pap = yes
lns = 10.255.255.247
redial = yes
redial timeout = 5
require authentication =no
ppp debug = no
pppoptfile = /etc/ppp/options.xl2tpd
autodial = yes
root@serv:~#
root@serv:~#
root@serv:~# cat /etc/ppp/options.xl2tpd
unit 0
name 0892037826
remotename corbina
ipparam corbina
connect /bin/true
mru 1460
mtu 1460
nodeflate
nobsdcomp
noproxyarp
persist
maxfail 0
nopcomp
noaccomp
defaultroute
После ребута сие подключается крайне долго и постоянно пишет в логи такое вот (в огромном количестве):
Apr 16 12:28:16 serv xl2tpd[3459]: Can not find tunnel 56052 (refhim=0)
Apr 16 12:28:16 serv xl2tpd[3459]: network_thread: unable to find call or tunnel to handle packet. call = 15470, tunnel = 56052 Dumping.
Apr 16 12:28:16 serv xl2tpd[3459]: Can not find tunnel 56052 (refhim=0)
Apr 16 12:28:16 serv xl2tpd[3459]: network_thread: unable to find call or tunnel to handle packet. call = 15470, tunnel = 56052 Dumping.
Apr 16 12:28:16 serv xl2tpd[3459]: Can not find tunnel 56052 (refhim=0)
Apr 16 12:28:16 serv xl2tpd[3459]: network_thread: unable to find call or tunnel to handle packet. call = 15470, tunnel = 56052 Dumping.
Apr 16 12:28:16 serv xl2tpd[3459]: Can not find tunnel 56052 (refhim=0)
Apr 16 12:28:16 serv xl2tpd[3459]: network_thread: unable to find call or tunnel to handle packet. call = 15470, tunnel = 56052 Dumping.
Apr 16 12:28:16 serv xl2tpd[3459]: Can not find tunnel 56052 (refhim=0)
Apr 16 12:28:16 serv xl2tpd[3459]: network_thread: unable to find call or tunnel to handle packet. call = 15470, tunnel = 56052 Dumping.
Если разорвать соединение и подключиться заново
root@serv:~# cat ~mike/xl2tp.sh
#!/bin/sh
IP=$(ifconfig ppp0 | grep "inet addr:" | gawk -F: '{ print $2 }' | gawk -F' ' '{print $1}')
/etc/ppp/ppp0down1 $IP
echo "d corbina" > /var/run/xl2tpd/l2tp-control
/etc/init.d/xl2tpd stop
/etc/xl2tpd/findserv.pl
/etc/init.d/xl2tpd start
echo "c corbina" > /var/run/xl2tpd/l2tp-control
то подключается к новому серверу (/etc/xl2tpd/findserv.pl ищет среди восьми ppp-гейтов самый быстропингуемый) практически мгновенно. В чём может быть засада - как считаете?