Portál AbcLinuxu, 17. července 2025 13:51
Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/modem (link na /dev/bluetooth/rfcomm/0)
local IP address 10.192.108.194
remote IP address 192.168.254.254
primary DNS address 213.151.200.30
secondary DNS address 213.151.208.161
co je asi ok
a po zhodeni:
Terminating on signal 2.
Connection terminated.
Connect time 2.8 minutes.
Sent 88 bytes, received 54 bytes.
Serial link disconnected.
telefon nejake prenesene data registruje..
ked bezi pppd, tak # ifconfig ppp0:
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.192.108.194 P-t-P:192.168.254.254 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:54 (54.0 b) TX bytes:88 (88.0 b)
nastavenia vyzeraju takto:
/etc/ppp/peers/gprs:
connect "/usr/sbin/chat -v -f /etc/ppp/peers/gprs-connect"
disconnect "/usr/sbin/chat -v -f /etc/ppp/peers/gprs-disconnect"
/dev/modem 115200
noipdefault
nodetach
novj novjccomp nobsdcomp noipx
______________________
dalej /etc/ppp/gprs-connect:
TIMEOUT 10
ABORT BUSY
ABORT "NO CARRIER"
ABORT VOICE
ABORT "NO DIALTONE"
""
'\rATZ' OK
ATX1 OK
AT+CGDCONT=1,"IP","internet" OK
"ATD*99***1#" CONNECT
_____________________
/etc/ppp/peers/gprs-disconnect:
"" "+++ath"
_______________
tie nastavenia som vyhrabal niekde na abclinuxu.cz v diskusiach.
este pripomeniem, ze gprs je cez orange.
Vedel by mi, pls, niekto poradit, co s tym? vo win gprs fachci, pripojenie v gentoo cez klasicky modem tiez. dakujem
Adresát Brána Maska Přízn Metrik Odkaz Užt Rozhraní 192.168.254.254 * 255.255.255.255 UH 0 0 0 ppp0 192.168.154.0 * 255.255.255.128 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default 192.168.254.254 0.0.0.0 UG 0 0 0 ppp0
nameserver ip_adresa_dns1 nameserver ip_adresa_dns2
rfcomm0 { bind yes; # Bluetooth address of the device device xx:xx:xx:xx:xx:xx; # RFCOMM channel for the connection channel 1; # Description of the connection comment "mobil via Serial port"; }a zacne se to chovat jakoby ten mobil byl pripojen na seriovym portu, akorat ze na /dev/rfcomm1
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.