From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5475009599529409300==" MIME-Version: 1.0 From: Darren Hart Subject: ofono-tests internet context: DNS works, ping wget and ssh do not (Connection Refused) Date: Wed, 09 May 2012 16:06:37 -0700 Message-ID: <4FAAF87D.7010201@linux.intel.com> List-Id: To: ofono@ofono.org --===============5475009599529409300== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable I have successfully used ofono-tests to enable,online,activate,and create-internet-context. I have an IP address and added the opendns servers= . DNS appears to be working and the route looks sane-ish. However, ping, wget, and ssh all fail. ping just sits there, wget and ssh b= oth fail with Connection Refused. Is there something obvious/common I might be running into? I'm using ofono 1.5. The steps I took for context follow: # ./enable-modem Connecting modem /mbm_0... # ./online-modem Setting modem /mbm_0 online... # ./activate-context # ./create-internet-context Found context /mbm_0/context1 # ifconfig usb0 usb0 Link encap:Ethernet HWaddr 02:80:37:EC:02:00 inet addr:10.25.40.80 Bcast:10.25.40.95 Mask:255.255.255.224 inet6 addr: fe80::80:37ff:feec:200/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:41 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:846 (846.0 B) TX bytes:28270 (27.6 KiB) # cat /etc/resolv.conf # Generated by Connection Manager nameserver 208.67.222.222 nameserver 208.67.220.220 nameserver 127.0.0.1 # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Ifa= ce 0.0.0.0 10.25.40.66 0.0.0.0 UG 0 0 0 usb0 10.25.40.64 0.0.0.0 255.255.255.224 U 0 0 0 usb0 10.25.40.66 0.0.0.0 255.255.255.255 UH 0 0 0 usb0 172.18.7.170 10.25.40.66 255.255.255.255 UGH 0 0 0 usb0 # ping dvhart.com PING dvhart.com (184.= 154.165.98): 56 data bytes ^C = --- d= vhart.com ping statistics --- = 1 packets transmitted, 0 packets received, 100% packet loss = # wget http://www.dvhart.com/darren/hello Connecting to www.dvh= art.com (184.154.165.98:80) wget: can't c= onnect to remote host (184.154.165.98): Connection refused # ssh dvhart(a)dvhart.com ssh: Exited: Error = connecting: Connection refused After disabling usb0 and bringup eth0, all of the above commands work as expected. And finally, I saved the output of list-modems off, but I don't recall when in the process, but I'm including it for the modem information, etc: # ./list-modems [ /mbm_0 ] Features =3D gprs net cbs ussd gps sms stk rat sim Emergency =3D 0 Powered =3D 1 Lockdown =3D 0 Interfaces =3D org.ofono.ConnectionManager org.ofono.NetworkRegistratio= n org.ofono.CellBroadcast org.ofono.SupplementaryServices org.ofono.Locatio= nReporting org.ofono.SmartMessaging org.ofono.PushNotification org.ofono.Me= ssageManager org.ofono.SimToolkit org.ofono.RadioSettings org.ofono.SimMana= ger Online =3D 1 Model =3D F5521gw Revision =3D R2A07(R2A07) Type =3D hardware Serial =3D 356215040140315 Manufacturer =3D Ericsson [ org.ofono.ConnectionManager ] Powered =3D 1 Attached =3D 1 Bearer =3D none Suspended =3D 0 RoamingAllowed =3D 0 [ org.ofono.NetworkRegistration ] Status =3D registered Strength =3D 80 Name =3D AT&T LocationAreaCode =3D 33998 Mode =3D auto-only MobileCountryCode =3D 310 Technology =3D hspa CellId =3D 13805302 MobileNetworkCode =3D 410 [ org.ofono.CellBroadcast ] Topics =3D Powered =3D 1 [ org.ofono.SupplementaryServices ] State =3D idle [ org.ofono.LocationReporting ] Type =3D nmea Enabled =3D 0 [ org.ofono.SmartMessaging ] [ org.ofono.PushNotification ] [ org.ofono.MessageManager ] Alphabet =3D default UseDeliveryReports =3D 0 Bearer =3D cs-preferred ServiceCenterAddress =3D +13123149810 [ org.ofono.SimToolkit ] IdleModeIcon =3D MainMenuTitle =3D MainMenu =3D = MainMenuIcon =3D [ org.ofono.RadioSettings ] TechnologyPreference =3D any [ org.ofono.SimManager ] Retries =3D [pin2 =3D 3] [puk2 =3D 10] [pin =3D 3] [puk =3D 10] = MobileCountryCode =3D 310 FixedDialing =3D 0 SubscriberNumbers =3D PreferredLanguages =3D en Bar= redDialing =3D 0 CardIdentifier =3D 89014104254691314226 LockedPins =3D MobileNetworkCode =3D 410 SubscriberIdentity =3D 310410469131422 Present =3D 1 PinRequired =3D none Thanks, -- = Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel --===============5475009599529409300==--