I connected my smartphone in usb tethering mode and connected to my home wifi network to a USB powered hub, and the hub to the Raspberry.
For Debian, a simple
sudo dhclient usb0
worked, and I could explore the internet with Midori.
But with RASPBMC, after exiting the XBMC to a terminal window, those commands didn't work.
I also tryed
sudo ifdown wlan0
sudo ifup usb0
And editing the interfaces document (/etc/network/interfaces), as:
iface usb0 inet dhcp
The strange thing is that I type "ifconfig" I can see an IP address assigned to usb0. Also in System Information, back in XBMC, it says
IP address: 192.168...
Internet: Not connected. Check network settings
For more details, IP address and Gateway are diferent from the ones used by the smartphone and the ones used for my network.
Will appreciate some advice, what I finally want is to use my RPi usign my phone with 3G or wifi network.
For sure it would be easy to connect an ethernet cable, but, you know...
Thanks in advance