Помогите пожалуиста! При нажатии pppoe-start происходит timeout. Ниже привёл всё что нужно для пояснения ситуации.
Модем: Acorp Sprinter@ADSL USB+
ОС: Runtu 2.0 (DVD)
Установлены пакеты из сорцев: eciadsl-usermode-0.12.tar.tar
rp-pppoe-3.8.tar.gz
Т.к. с файлами gs7470_synch20.bin и gs7470_synch21.bin модем отказывался синхронизоваться создан файл синхронизации gs7470_synch999.bin для eciadsl из под винды с помощью USBSniffer.
Вот мой eciadsl.conf:
VID1=0915
PID1=8104
VID2=0915
PID2=8104
MODE=LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS
VCI=33
VPI=0
FIRMWARE=/etc/eciadsl/firmware00.bin
SYNCH=/etc/eciadsl/gs7470_synch999.bin
PPPD_USER=26347153@mss
PPPD_PASSWD=
USE_DHCP=yes
USE_STATICIP=no
STATICIP=
GATEWAY=
MODEM=Other
MODEM_CHIPSET=GS7470
SYNCH_ALTIFACE=0
PPPOECI_ALTIFACE=0
PROVIDER=Other
DNS1=83.174.193.227
DNS2=83.174.192.227
Вот мой pppoe.conf
#***********************************************************************
#
# pppoe.conf
#
# Configuration file for rp-pppoe. Edit as appropriate and install in
# /etc/ppp/pppoe.conf
#
# NOTE: This file is used by the pppoe-start, pppoe-stop, pppoe-connect and
# pppoe-status shell scripts. It is *not* used in any way by the
# "pppoe" executable.
#
# Copyright (C) 2000 Roaring Penguin Software Inc.
#
# This file may be distributed under the terms of the GNU General
# Public License.
#
# LIC: GPL
# $Id: pppoe.conf,v 1.11 2005/08/09 02:49:12 dfs Exp $
#***********************************************************************
# When you configure a variable, DO NOT leave spaces around the "=" sign.
# Ethernet card connected to DSL modem
ETH='tap0'
# PPPoE user name. You may have to supply "@provider.com" Sympatico
# users in Canada do need to include "@sympatico.ca"
# Sympatico uses PAP authentication. Make sure /etc/ppp/pap-secrets
# contains the right username/password combination.
# For Magma, use xxyyzz@magma.ca
USER='26347153@mss'
# Bring link up on demand? Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number indicating
# the idle time after which the link is brought down.
DEMAND=no
#DEMAND=300
# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=SPECIFY
# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS. Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=no
DNS1=83.174.193.227
DNS2=83.174.192.227
# Make the PPPoE connection your default route. Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes
### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT
# How long pppoe-start waits for a new PPP interface to appear before
# concluding something went wrong. If you use 0, then pppoe-start
# exits immediately with a successful status and does not wait for the
# link to come up. Time is in seconds.
#
# WARNING WARNING WARNING:
#
# If you are using rp-pppoe on a physically-inaccessible host, set
# CONNECT_TIMEOUT to 0. This makes SURE that the machine keeps trying
# to connect forever after pppoe-start is called. Otherwise, it will
# give out after CONNECT_TIMEOUT seconds and will not attempt to
# connect again, making it impossible to reach.
CONNECT_TIMEOUT=30
# How often in seconds pppoe-start polls to check if link is up
CONNECT_POLL=2
# Specific desired AC Name
ACNAME=
# Specific desired service name
SERVICENAME=
# Character to echo at each poll. Use PING="" if you don't want
# anything echoed
PING="."
# File where the pppoe-connect script writes its process-ID.
# Three files are actually used:
# $PIDFILE contains PID of pppoe-connect script
# $PIDFILE.pppoe contains PID of pppoe process
# $PIDFILE.pppd contains PID of pppd process
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-pppoe.pid"
# Do you want to use synchronous PPP? "yes" or "no". "yes" is much
# easier on CPU usage, but may not work for you. It is safer to use
# "no", but you may want to experiment with "yes". "yes" is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=no
# Do you want to clamp the MSS? Here's how to decide:
# - If you have only a SINGLE computer connected to the DSL modem, choose
# "no".
# - If you have a computer acting as a gateway for a LAN, choose "1412".
# The setting of 1412 is safe for either setup, but uses slightly more
# CPU power.
CLAMPMSS=1412
#CLAMPMSS=no
# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3
# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80
# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=NONE
# Linux kernel-mode plugin for pppd. If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
LINUX_PLUGIN=
# Any extra arguments to pass to pppoe. Normally, use a blank string
# like this:
PPPOE_EXTRA=""
# Rumour has it that "Citizen's Communications" with a 3Com
# HomeConnect DSL Modem DualLink requires these extra options:
# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"
# Any extra arguments to pass to pppd. Normally, use a blank string
# like this:
PPPD_EXTRA=""
########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
# If you wish to COMPLETELY overrride the pppd invocation:
# Example:
# OVERRIDE_PPPD_COMMAND="pppd call dsl"
# If you want pppoe-connect to exit when connection drops:
# RETRY_ON_FAILURE=no
Запускаем eciadsl-doctor чтобы узнать есть ли какие неполадки. В результате было выдано, что файл etc/ppp/setup создаёт конфликт и просим вас удалить его, создав резервную копию, что я и сделал.
eciadsl-doctor
root@ilgiz-desktop:~# eciadsl-doctor
You are using linux kernel version 2.6.22-14-generic
Support for USB is OK
Preliminary USB device filesystem is OK
dabusb module is not loaded: OK
UHCI support is OK
OHCI support is not needed
/dev/ppp is OK
HDLC support is OK
HDLC support is OK (no bug)
Loading EZ-USB firmware...
Process skipped .. no more needed
Loading the GlobeSpan firmware...
OK eciadsl-synch: success
You are using pppd version 2.4.4 (untested)
No existing PPP connection... trying to make one (please wait)
using channel 271
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
Script /usr/bin/eciadsl-pppoeci -vpi 0 -vci 33 -vendor 0x0915 -product 0x8104 -mode LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS finished (pid 14424), status = 0x0
Modem hangup
Connection terminated.
using channel 272
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
Modem hangup
Connection terminated.
Script /usr/bin/eciadsl-pppoeci -vpi 0 -vci 33 -vendor 0x0915 -product 0x8104 -mode LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS finished (pid 14448), status = 0x0
Couldn't get channel number: Input/output error
Script /usr/bin/eciadsl-pppoeci -vpi 0 -vci 33 -vendor 0x0915 -product 0x8104 -mode LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS finished (pid 14471), status = 0x0
Couldn't get channel number: Input/output error
Script /usr/bin/eciadsl-pppoeci -vpi 0 -vci 33 -vendor 0x0915 -product 0x8104 -mode LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS finished (pid 14492), status = 0x0
Couldn't get channel number: Input/output error
Script /usr/bin/eciadsl-pppoeci -vpi 0 -vci 33 -vendor 0x0915 -product 0x8104 -mode LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS finished (pid 14513), status = 0x0
Couldn't get channel number: Input/output error
Script /usr/bin/eciadsl-pppoeci -vpi 0 -vci 33 -vendor 0x0915 -product 0x8104 -mode LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS finished (pid 14534), status = 0x0
Couldn't get channel number: Input/output error
Script /usr/bin/eciadsl-pppoeci -vpi 0 -vci 33 -vendor 0x0915 -product 0x8104 -mode LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS finished (pid 14555), status = 0x0
Couldn't get channel number: Input/output error
Script /usr/bin/eciadsl-pppoeci -vpi 0 -vci 33 -vendor 0x0915 -product 0x8104 -mode LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS finished (pid 14576), status = 0x0
Couldn't get channel number: Input/output error
Script /usr/bin/eciadsl-pppoeci -vpi 0 -vci 33 -vendor 0x0915 -product 0x8104 -mode LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS finished (pid 14599), status = 0x0
Couldn't get channel number: Input/output error
Script /usr/bin/eciadsl-pppoeci -vpi 0 -vci 33 -vendor 0x0915 -product 0x8104 -mode LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS finished (pid 14620), status = 0x0
PPP: very bad ... usermode driver just crashed
Затем выдернул и вставил обратно модем и запустил eciadsl-start
root@ilgiz-desktop:~# eciadsl-start
[EciAdsl 1/5] Setting up USB support...
Preliminary USB device filesystem is missing... trying to mount
Loading tun/tap module...
tun loaded successfully
[EciAdsl 2/5] Uploading firmware...
Process skipped .. no more needed
firmware loaded successfully
[EciAdsl 3/5] Synchronization...
OK eciadsl-synch: success
Synchronization successful
[EciAdsl 4/5] Connecting to provider...
Connection successful
[EciAdsl 5/5] Setting up route table...
Waiting for tap0...
root@ilgiz-desktop:~# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Диапазон:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
Потом несколько раз pppd call adsl, потому что с 1 раза tap0 не поднимается:
root@ilgiz-desktop:~# pppd call adsl
root@ilgiz-desktop:~# pppd call adsl
root@ilgiz-desktop:~# pppd call adsl
root@ilgiz-desktop:~# pppd call adsl
root@ilgiz-desktop:~# pppd call adsl
root@ilgiz-desktop:~# pppd call adsl
root@ilgiz-desktop:~# pppd call adsl
root@ilgiz-desktop:~# pppd call adsl
root@ilgiz-desktop:~# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Диапазон:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
tap0 Link encap:Ethernet HWaddr 00:FF:EA:13:6E:AD
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
root@ilgiz-desktop:~# ifconfig tap0 up
root@ilgiz-desktop:~# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Диапазон:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
tap0 Link encap:Ethernet HWaddr 00:FF:EA:13:6E:AD
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)
В итоге вместо надписи connect выдаётся TIMED OUT
root@ilgiz-desktop:~# pppoe-start
................TIMED OUT