ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] pptp: no divert_blk to free, ppp0 not ethernet
@ 2002-12-30 20:26 Ilya Kirov
  2002-12-30 20:59 ` Shur
  0 siblings, 1 reply; 2+ messages in thread
From: Ilya Kirov @ 2002-12-30 20:26 UTC (permalink / raw)
  To: AltLinux community

Добрый вечер!

Домучил я свою сетку, теперь pptp не поднимается....

Был бы очень благодарен за подсказку в каком месте искать.

Вот что в /var/log/kernel/info вылезает постоянно:

Dec 30 22:58:53 kaloris kernel: divert: not allocating divert_blk for 
non-ethernet device ppp0
Dec 30 22:59:23 kaloris kernel: divert: no divert_blk to free, ppp0 not 
ethernet


А вот в /var/log/messages:

Dec 30 22:58:41 kaloris network: Shutting down interface eth0: succeeded
Dec 30 22:58:41 kaloris network: Setting network parameters: succeeded
Dec 30 22:58:41 kaloris ifup: SIOCADDRT: Network is unreachable
Dec 30 22:58:41 kaloris network: Bringing up interface lo: succeeded
Dec 30 22:58:41 kaloris network: Bringing up interface eth0: succeeded
Dec 30 22:58:48 kaloris modprobe: modprobe: Can't locate module 
char-major-10-134

ну здесь service network restart, а вот
при service pptptunnel start

Dec 30 22:58:52 kaloris pptp[3858]: 
log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:580]: Client connection 
established.
Dec 30 22:58:53 kaloris pptp[3858]: 
log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:708]: Outgoing call established 
(call ID 0, peer's call ID 0). 
Dec 30 22:58:53 kaloris pppd[3859]: pppd 2.4.1 started by root, uid 0
Dec 30 22:58:53 kaloris pppd[3859]: Using interface ppp0
Dec 30 22:58:53 kaloris pppd[3859]: Connect: ppp0 <--> /dev/pts/0
Dec 30 22:59:23 kaloris pppd[3859]: LCP: timeout sending Config-Requests 
Dec 30 22:59:23 kaloris pppd[3859]: Connection terminated.
Dec 30 22:59:24 kaloris pppd[3859]: Exit.
Dec 30 22:59:24 kaloris pptp[3856]: log[decaps_hdlc:pptp_gre.c:129]: short 
read (4294967295): Input/output error
Dec 30 22:59:24 kaloris pptp[3858]: log[callmgr_main:pptp_callmgr.c:245]: 
Closing connection
Dec 30 22:59:24 kaloris pptp[3858]: log[pptp_conn_close:pptp_ctrl.c:307]: 
Closing PPTP connection
Dec 30 22:59:24 kaloris pptp[3858]: log[pptp_write_some:pptp_ctrl.c:376]: 
write error: Broken pipe
Dec 30 22:59:24 kaloris pptp[3858]: log[call_callback:pptp_callmgr.c:88]: 
Closing connection
Dec 30 22:59:45 kaloris modprobe: modprobe: Can't locate module 
char-major-10-134

Конфигурация:

[root@kaloris kernel]# netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.0.175.0      0.0.0.0         255.255.255.0   U        40 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U        40 0          0 lo
0.0.0.0         10.0.175.1      0.0.0.0         UG       40 0          0 eth0

[root@kaloris sysconfig]# cat /etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=kaloris.unnilquadium.linuxrsp.edu
DOMAINNAME=edu
GATEWAY=10.0.175.1
# менял на 10.0.175.0, чет совсем к НГ... не помню ничего
# при .0 конфигурация ниже, но тоже не работает с теми же ошибками вылазит

[root@kaloris network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.0.175.8
NETMASK=255.255.255.0
NETWORK=10.0.175.0
BROADCAST=10.0.175.255
ONBOOT=yes

[root@kaloris network-scripts]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.175.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         10.0.175.1      0.0.0.0         UG    0      0        0 eth0

################Вариант c gateway 10.0.175.0

[root@kaloris root]# netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.0.175.0      0.0.0.0         255.255.255.0   U        40 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U        40 0          0 lo

[root@kaloris root]# route -n   
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.175.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo

(всё это, естественно, при опущенном pptp, точнее он не поднимается как я уже 
сказал).

Запускаю через:

# pptp 10.0.175.1 debug name username112233 remotename 10.0.175.1 noipdefault

или через service pptptunnel start

P.S. Проходила информация о неком OpenVPN пакете в сизифе, но что-то всё 
затихло и ничего нет.

-- 
Ilya Kirov



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Comm] pptp: no divert_blk to free, ppp0 not ethernet
  2002-12-30 20:26 [Comm] pptp: no divert_blk to free, ppp0 not ethernet Ilya Kirov
@ 2002-12-30 20:59 ` Shur
  0 siblings, 0 replies; 2+ messages in thread
From: Shur @ 2002-12-30 20:59 UTC (permalink / raw)
  To: community

Добрый вечер.

On Mon, 30 Dec 2002 23:26:15 +0300
Ilya Kirov <xinu@pochtamt.ru> wrote:

> Добрый вечер!
> 
> Домучил я свою сетку, теперь pptp не поднимается....
> 
> Был бы очень благодарен за подсказку в каком месте искать.
> 
> Вот что в /var/log/kernel/info вылезает постоянно:
> 
> Dec 30 22:58:53 kaloris kernel: divert: not allocating
> divert_blk for non-ethernet device ppp0
> Dec 30 22:59:23 kaloris kernel: divert: no divert_blk to free,
> ppp0 not ethernet

Это фигня, у меня то же самое пишет.

> Конфигурация:
> 
> [root@kaloris kernel]# netstat -nr
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS
> Window  irtt Iface 10.0.175.0      0.0.0.0        
> 255.255.255.0   U        40 0          0 eth0 127.0.0.0      
> 0.0.0.0         255.0.0.0       U        40 0          0 lo
> 0.0.0.0         10.0.175.1      0.0.0.0         UG       40 0  
>        0 eth0
> 
> [root@kaloris sysconfig]# cat /etc/sysconfig/network
> NETWORKING=yes
> FORWARD_IPV4=false
> HOSTNAME=kaloris.unnilquadium.linuxrsp.edu
> DOMAINNAME=edu
> GATEWAY=10.0.175.1

[root@stamp kernel]# cat /etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=stamp.home
DOMAINNAME=home

> # менял на 10.0.175.0, чет совсем к НГ... не помню ничего
> # при .0 конфигурация ниже, но тоже не работает с теми же
> # ошибками вылазит

У меня нет гейтвея.

> 
> [root@kaloris network-scripts]# cat
> /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0
> BOOTPROTO=static
> IPADDR=10.0.175.8
> NETMASK=255.255.255.0
> NETWORK=10.0.175.0
> BROADCAST=10.0.175.255
> ONBOOT=yes

[root@stamp kernel]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=dhcp
DHCP_CLIENT=/sbin/dhcpxd
#IPADDR=
#NETMASK=
#NETWORK=
#BROADCAST=
ONBOOT=yes

> 
> [root@kaloris network-scripts]# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric
> Ref    Use Iface 10.0.175.0      0.0.0.0         255.255.255.0 
>  U     0      0        0 eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0 
>       0 lo
> 0.0.0.0         10.0.175.1      0.0.0.0         UG    0      0 
>       0 eth0
> 
> ################Вариант c gateway 10.0.175.0
> 
> [root@kaloris root]# netstat -nr
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS
> Window  irtt Iface 10.0.175.0      0.0.0.0        
> 255.255.255.0   U        40 0          0 eth0 127.0.0.0      
> 0.0.0.0         255.0.0.0       U        40 0          0 lo
> 
> [root@kaloris root]# route -n   
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric
> Ref    Use Iface 10.0.175.0      0.0.0.0         255.255.255.0 
>  U     0      0        0 eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0 
>       0 lo
> 
> (всё это, естественно, при опущенном pptp, точнее он не
> поднимается как я уже сказал).

[root@stamp kernel]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
172.17.0.0      *               255.255.0.0     U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo

При опущенном pptp.

[root@stamp kernel]# cat /etc/ppp/options.pptp
debug
lock
nobsdcomp
deflate 0
defaultroute
pty "/usr/sbin/pptp vpn.informedia.ru --nolaunchpppd"
                    ^^^^^^^^^^^^^^^^^
Здесь у вас должен быть ip адрес

[root@stamp kernel]# cat /etc/ppp/peers/informedia
#
# PPTP Tunnel configuration for tunnel informedia

# 
# Tags for CHAP secret selection
#
name ficus
remotename PPTP

#
# Include the main PPTP configuration file
#
file /etc/ppp/options.pptp

Ну и CHAP-secrets

> 
> Запускаю через:
> 
> # pptp 10.0.175.1 debug name username112233 remotename
> # 10.0.175.1 noipdefault

Запускаю:

[root@stamp kernel]# cat /usr/local/bin/tunnel-on
#!/bin/bash
echo '1' > /var/tmp/pptp.pid
pppd call informedia

Получается:

[root@stamp kernel]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
62.117.80.226   *               255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
172.17.0.0      *               255.255.0.0     U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         62.117.80.226   0.0.0.0         UG    0      0        0 ppp0

Не поможет?


--
Удачи.
Александр.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-30 20:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-30 20:26 [Comm] pptp: no divert_blk to free, ppp0 not ethernet Ilya Kirov
2002-12-30 20:59 ` Shur

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git