Set' nedostupna [SOLVED]

Pri podklyuchenii cherez GPRS v loge proskakivaet soobshchenie

default route ioctl(SIOCADDRT): Network is unreachable

Dalee (pri rabotayushchem podklyuchenii) imeem:

$ping <Lyuboj IP>
ping: Network is unreachable

Resheniya problemy ya ne nashyol... Kuda kopat'?

Log:

abort on (BUSY)
abort on (ERROR)
abort on (NO ANSWER)
abort on (NO CARRIER)
abort on (NO DIAL)
send (AT^M)
expect (OK)
AT^M^M
OK
-- got it

send (AT+CGDCONT=1,"IP","internet"^M)
expect (OK)
^M
AT+CGDCONT=1,"IP","internet"^M^M
OK
-- got it

send (ATDP*99*1**1#^M)
expect (CONNECT)
^M
ATDP*99*1**1#^M^M
CONNECT
-- got it

send (\d)
Serial connection established.
using channel 3
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
sent [LCP ConfReq id=0x1
]
rcvd [LCP ConfRej id=0x1 ]
sent [LCP ConfReq id=0x2
]
rcvd [LCP ConfAck id=0x2
]
rcvd [LCP ConfReq id=0x1
]
sent [LCP ConfAck id=0x1
]
sent [PAP AuthReq id=0x1 user="localhost" password=]
rcvd [LCP EchoReq id=0x0 magic=0x2a1d]
sent [LCP EchoRep id=0x0 magic=0xcdb67d3d]
rcvd [PAP AuthAck id=0x1 "Login ok"]
Remote message: Login ok
PAP authentication succeeded
sent [IPCP ConfReq id=0x1 ]
rcvd [IPCP TermAck id=0x1]
rcvd [IPCP ConfReq id=0x1 ]
sent [IPCP ConfAck id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
rcvd [IPCP ConfNak id=0x1 ]
sent [IPCP ConfReq id=0x2 ]
rcvd [IPCP ConfAck id=0x2 ]
default route ioctl(SIOCADDRT): Network is unreachable
local IP address 91.145.220.208
remote IP address 0.0.0.1
primary DNS address 212.58.160.33
secondary DNS address 212.58.160.34
Script /etc/ppp/ip-up started (pid 2956)
Script /etc/ppp/ip-up finished (pid 2956), status = 0x1

Problema rewena

Problema rewena blagodar'a

add default route ppp0

Vsem spasibo =/

offtop
Kak vosstanovit' framebuffer links'a posle pereklu4enija konsoli po ++?
/offtop

для жпрс часть

для жпрс часть /etc/conf.d/net

###
# ppp0 config
###

config_ppp0=( "ppp" )
link_ppp0="/dev/ttyUSB0"
username_ppp0='nwgsm'
password_ppp0='guest'
pppd_ppp0=(
            "115200"
            "asyncmap 20A0000"
            "escape FF"
            "maxfail 0"
            "updetach"
            "debug"
            "noauth"
            "defaultroute"
            "usepeerdns"
            "mtu 1500"
            "noipdefault"
            "ipcp-accept-remote"
            "ipcp-accept-local"
            "holdoff 3"
            "novj"
            "novjccomp"
            "lock"
            "modem crtscts"
        )
phone_number_ppp0=( "*99***1#" )
chat_ppp0=(
        'ABORT' 'BUSY'
        'ABORT' 'NO ANSWER'
        'ABORT' 'NO CARRIER'
        'ABORT' 'NO DIALTONE'
        'ABORT' '\nRINGING\r\n\r\nRINGING\r'
        'TIMEOUT' '5'
        '' 'AT'
        'OK-ATQ0V1&C1-OK' 'ATE1'
        'ABORT' 'ERROR'
        'TIMEOUT' 12
        'OK' 'AT&F'
        'OK' 'AT+CMEE=2'
        'OK' 'AT+CGDCONT=1,"IP","internet.nw","0.0.0.0",0,0'
        'OK' 'AT+CGQREQ=1,0,0,0,0,0'
        'OK' 'AT+CGQMIN=1,0,0,0,0,0'
        'OK' 'AT+CGATT=1'
        'OK' 'ATD*99***1#'
        'CONNECT' ''
            )

он для питерского мегафона... .
но адаптировать под другого опереатора не проблема..

далее создаем линк на нинтерфес

cd /etc/init.d
ln -s net.lo net.ppp0 

ну и стартуем ссоединение

/etc/init.d/net.ppp0 start

и мы в сети ;-)
_________________
Gentoo GNU/Linux 2.6.21 GCC 4.1.2 Dual Xeon
Working on Gentoo for iPAQ hx4700 :-)

Y men'a eto propisano v

Y men'a eto propisano v /etc/ppp/peers i ja startyu 4erez

pppd call life

(life - moj mobil'nij operator)
Est' kakaja-to raznica? I mtu=1500 -- ne mnogo li dl'a GPRS? Vsio-taki sv'az' dovol'no slabaja...

впринципе

впринципе разници нет....
просто это для генту более удобный способ....
в случае обрыва будет заново конектится само например...
роутинг само пропишет и потом вернет на место и тд...
_________________
Gentoo GNU/Linux 2.6.21 GCC 4.1.2 Dual Xeon
Working on Gentoo for iPAQ hx4700 :-)

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".