Internet and GPRS configure
-
Anonymous
Interface List
0x1 ........................... MS TCP Loopback interface
0x2000003 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.184.57.234 10.184.57.234 1
10.184.57.234 255.255.255.255 127.0.0.1 127.0.0.1 1
10.184.57.235 255.255.255.255 10.184.57.234 10.184.57.234 1
10.255.255.255 255.255.255.255 10.184.57.234 10.184.57.234 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
224.0.0.0 224.0.0.0 10.184.57.234 10.184.57.234 1
Default Gateway: 10.184.57.234
===========================================================================
Это из Видны (мобильный оператор - Северозападный мегафон)
0x1 ........................... MS TCP Loopback interface
0x2000003 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.184.57.234 10.184.57.234 1
10.184.57.234 255.255.255.255 127.0.0.1 127.0.0.1 1
10.184.57.235 255.255.255.255 10.184.57.234 10.184.57.234 1
10.255.255.255 255.255.255.255 10.184.57.234 10.184.57.234 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
224.0.0.0 224.0.0.0 10.184.57.234 10.184.57.234 1
Default Gateway: 10.184.57.234
===========================================================================
Это из Видны (мобильный оператор - Северозападный мегафон)
-
Anonymous
А это то что из линукса
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.184.41.198 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.184.41.198 0.0.0.0 UG 0 0 0 ppp0
(мобильный оператор - Северозападный мегафон)
проблема осталась
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.184.41.198 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.184.41.198 0.0.0.0 UG 0 0 0 ppp0
(мобильный оператор - Северозападный мегафон)
проблема осталась
-
Anonymous
-
Anonymous
Код: Выделить всё
replacedefaultroute
This option is a flag to the defaultroute option. If defaultroute is set and this flag is also set,
pppd replaces an existing default route with the new default route.
Опыт растет прямо пропорционально выведенному из строя оборудованию
-
Anonymous
Riskkman, ну есть уже как минимум 2.4.2
Очень похожу траблу мы с exe (т.е. маршруты в винде были выставлены так же идиотски, а влинухе не выставлялись совсем) не смогли побороть на FedoraCore 2, в то же время, как на debian sarge все было отлично с теми же самыми скриптами. Пролечилось у exe путем установки третьей федоры.
Очень похожу траблу мы с exe (т.е. маршруты в винде были выставлены так же идиотски, а влинухе не выставлялись совсем) не смогли побороть на FedoraCore 2, в то же время, как на debian sarge все было отлично с теми же самыми скриптами. Пролечилось у exe путем установки третьей федоры.
Опыт растет прямо пропорционально выведенному из строя оборудованию
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
Установил ASP Linux v 10.0
GPRS аля Мегафон заработал...
:P:P
Привожу настройки (Ericsson R520m+NW_GSM):
//--------------------
файл gprs-options:
# General options for making GPRS connection
defaultroute
nodetach
crtscts
noipdefault
ipcp-accept-local
ipcp-accept-remote
usepeerdns
lock
//-------------------
файл gprs-eric
# pppd options for Ericsson r520 / T39
# modem settings
/dev/ttyS0
115200
#GPRS options
file /etc/ppp/gprs-options
# Chat scripts
connect "/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-eric-connect-chat"
disconnect "/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-disconnect-chat"
//-------------------
файл gprs-eric-connect-chat
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT '\nRINGING\r\n\r\nRINGING\r'
SAY "GPRS modem init: press <ctrl>-C to disconnect"
# Wake up the modem
#
TIMEOUT 5
'' '+++AT'
OK-ATQ0V1&C1-OK 'ATE1'
ABORT 'ERROR'
TIMEOUT 12
# Factory defaults on the Ericsson are pretty sane; let's go with them.
# (RTS/CTS, 50sec call timeout, 8n1/auto-rate, verbose responses)
# Also, use '+CME ERROR' codes for ME errors, 'ERROR' for syntax errors
#
OK 'AT&F'
OK 'AT+CMEE=2'
# The Ericsson has multiple contexts; set ourselves up in context 1:
# cid = 1 (which context)
# PDP_type = IP (packet type)
# APN = internet.nw (MEGAFON)
# PDP_addr = "0.0.0.0" (our address, null means they choose)
# data_comp = 1 (data compression enabled)
# head_comp = 1 (header compression enabled)
#
OK 'AT+CGDCONT=1,"IP","internet.nw","0.0.0.0",1,1'
SAY "\n + defining PDP context"
# QoS requested, and minimum accptable, for our context
# (<cid>,<precedence>,<delay>,<reliability>,<peak>,<mean>)
# "0" means let the network pick.
#
OK 'AT+CGQREQ=1,0,0,0,0,0'
SAY "\n + defining QoS requirements"
OK 'AT+CGQMIN=1,0,0,0,0,0'
# Attach to the GPRS service. Strictly, we don't need this step,
# as AT+CGDATA will do it for us, but doing it explicitly makes it
# a little easier to debug.
#
TIMEOUT 45
OK 'AT+CGATT=1'
SAY "\n + attaching to GPRS"
# Enter data state
#
OK 'AT+CGDATA="PPP",1'
SAY "\n + requesting data connection"
CONNECT ''
SAY "\n + connected"
//-------------------
GPRS аля Мегафон заработал...
Привожу настройки (Ericsson R520m+NW_GSM):
//--------------------
файл gprs-options:
# General options for making GPRS connection
defaultroute
nodetach
crtscts
noipdefault
ipcp-accept-local
ipcp-accept-remote
usepeerdns
lock
//-------------------
файл gprs-eric
# pppd options for Ericsson r520 / T39
# modem settings
/dev/ttyS0
115200
#GPRS options
file /etc/ppp/gprs-options
# Chat scripts
connect "/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-eric-connect-chat"
disconnect "/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-disconnect-chat"
//-------------------
файл gprs-eric-connect-chat
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT '\nRINGING\r\n\r\nRINGING\r'
SAY "GPRS modem init: press <ctrl>-C to disconnect"
# Wake up the modem
#
TIMEOUT 5
'' '+++AT'
OK-ATQ0V1&C1-OK 'ATE1'
ABORT 'ERROR'
TIMEOUT 12
# Factory defaults on the Ericsson are pretty sane; let's go with them.
# (RTS/CTS, 50sec call timeout, 8n1/auto-rate, verbose responses)
# Also, use '+CME ERROR' codes for ME errors, 'ERROR' for syntax errors
#
OK 'AT&F'
OK 'AT+CMEE=2'
# The Ericsson has multiple contexts; set ourselves up in context 1:
# cid = 1 (which context)
# PDP_type = IP (packet type)
# APN = internet.nw (MEGAFON)
# PDP_addr = "0.0.0.0" (our address, null means they choose)
# data_comp = 1 (data compression enabled)
# head_comp = 1 (header compression enabled)
#
OK 'AT+CGDCONT=1,"IP","internet.nw","0.0.0.0",1,1'
SAY "\n + defining PDP context"
# QoS requested, and minimum accptable, for our context
# (<cid>,<precedence>,<delay>,<reliability>,<peak>,<mean>)
# "0" means let the network pick.
#
OK 'AT+CGQREQ=1,0,0,0,0,0'
SAY "\n + defining QoS requirements"
OK 'AT+CGQMIN=1,0,0,0,0,0'
# Attach to the GPRS service. Strictly, we don't need this step,
# as AT+CGDATA will do it for us, but doing it explicitly makes it
# a little easier to debug.
#
TIMEOUT 45
OK 'AT+CGATT=1'
SAY "\n + attaching to GPRS"
# Enter data state
#
OK 'AT+CGDATA="PPP",1'
SAY "\n + requesting data connection"
CONNECT ''
SAY "\n + connected"
//-------------------


