Agora é só discar:
$ ppp call 1xEVDO
Vai ficar mais ou menos assim:
$ pppd call 1xEVDO
Serial connection established.
using channel 1
Starting negotiation on /dev/ttyUSB0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x31de6a34> <pcomp> <accomp> <mrru 1500> <endpoint [MAC:00:0f:20:c7:60:00]>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x31de6a34> <pcomp> <accomp> <mrru 1500> <endpoint [MAC:00:0f:20:c7:60:00]>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x31de6a34> <pcomp> <accomp> <mrru 1500> <endpoint [MAC:00:0f:20:c7:60:00]>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x64fadb76>]
No auth is possible
sent [LCP ConfRej id=0x1 <auth pap>]
rcvd [LCP ConfRej id=0x1 <mrru 1500>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x31de6a34> <pcomp> <accomp> <endpoint [MAC:00:0f:20:c7:60:00]>]
rcvd [LCP ConfRej id=0x1 <mrru 1500>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x64fadb76>]
sent [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x64fadb76>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x31de6a34> <pcomp> <accomp> <endpoint [MAC:00:0f:20:c7:60:00]>]
sent [LCP EchoReq id=0x0 magic=0x31de6a34]
Using interface ppp0
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [LCP EchoRep id=0x0 magic=0x64fadb76]
rcvd [IPCP ConfReq id=0x1 <addr 200.142.130.226>]
sent [IPCP ConfAck id=0x1 <addr 200.142.130.226>]
rcvd [LCP ProtRej id=0x3 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfNak id=0x1 <addr 10.103.207.209> <ms-dns1 200.142.130.8> <ms-dns3 200.142.130.11>]
sent [IPCP ConfReq id=0x2 <addr 10.103.207.209> <ms-dns1 200.142.130.8> <ms-dns3 200.142.130.11>]
rcvd [IPCP ConfAck id=0x2 <addr 10.103.207.209> <ms-dns1 200.142.130.8> <ms-dns3 200.142.130.11>]
not replacing existing default route via 10.52.249.1
Cannot determine ethernet address for proxy ARP
local IP address 10.103.207.209
remote IP address 200.142.130.226
primary DNS address 200.142.130.8
secondary DNS address 200.142.130.11
Script /etc/ppp/ip-up started (pid 15195)
Script /etc/ppp/ip-up finished (pid 15195), status = 0x0
Depois basta dar um ifconfig e verificar qual ip na internet você pegou:
$ ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.103.94.203 P-t-P:200.142.130.226 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:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:54 (54.0 b) TX bytes:69 (69.0 b)
Agora temos que adicionar o nosso ip na internet como gateway padrão:
$ sudo route add default gw 200.142.130.226 netmask 255.0.0.0
E pronto! Tive alguns problemas de lentidão no início, mas depois funcionou perfeitamente.
Para desconectar, basta apertar CTRL + C e ele termina a conexão.
Dá para fazer tudo o processo de discagem com script, mas eu estou com muita preguiça agora, depois eu atualizo aqui. (=P)
Era isso gurizada.