Hi, On Fri, 22 May 2009 01:02:31 -0300 (BRT) Murilo da Silva Ijanc wrote:
> Hello misc@, > > I am trying to use 3G technology in OpenBSD. I have Huawei E220. After a few days of tweaking, I got it working pretty well. There are some caveats however. (See below) > $ ping -c 4 www.google.com > PING google.navigation.opendns.com (208.69.32.231): 56 data bytes > 64 bytes from 208.69.32.231: icmp_seq=0 ttl=51 time=679.708 ms For some reason ping times are big with user space ppp. (600+ ms vs. 150ms with in-kernel ppp) > lynx www.openbsd.org > > HTTP request sent; waiting for response. > .............. 10 min ......... 20 min........ With user space ppp, I had to set MTU to 900 before web browsing worked. I think I did that using "set mrru 900" in /etc/ppp/ppp.conf. I recommend that you try kernel mode ppp using pppd. There you can use bigger MTU/MRRU. My setup is following: $ cat /etc/ppp/mokkula #!/bin/sh ifconfig ppp0 destroy 1>/dev/null 2>&1 ifconfig ppp0 create route delete default 1>/dev/null 2>&1 /usr/sbin/pppd /dev/cuaU0 460800 connect '/usr/sbin/chat -f /etc/ppp/peers/elisa2.chat' sleep 12 $ cat /etc/ppp/peers/elisa2.chat ABORT BUSY ABORT ERROR ABORT "NO CARRIER" ABORT VOICE ABORT "NO DIALTONE" "" AT OK AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0 OK ATDT*99# TIMEOUT 40 CONNECT \c $ cat /etc/ppp/options debug /dev/cuaU0 460800 lock persist noauth 0.0.0.0:10.0.0.2 netmask 255.255.255.255 ipcp-accept-local ipcp-accept-remote noipdefault crtscts deflate 0 bsdcomp 0 noccp novj novjccomp nopcomp #nodetach mru 1440 refuse-chap connect '/usr/sbin/chat -f /etc/ppp/peers/elisa2.chat' $ Like others suggested, enabling "debug" option gives you some hints. Also, using cu directly ("cu -s 460800 -l /dev/cuaU0") and sending AT commands gives you more hints. (For example, you might be required to give PIN code with AT+CPIN command.) -- Tero Koskinen <tero.koski...@iki.fi>