WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to setup usbip for connection to cell phone  (Read 3550 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: How to setup usbip for connection to cell phone
« Reply #15 on: July 26, 2021, 09:38:05 AM »
With just an IP set, you can only ping the other end and stuff on that network. To connect to other networks via it, you also need to set up a route. (and DNS to use names).

Having two internet connections complicates things. Disable your eth0 first, then play with usb0. If your phone offers DHCP, you can do via cli what vinnie wrote above, udhcpc is the bundled dhcp client.
The only barriers that can stop you are the ones you create yourself.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: How to setup usbip for connection to cell phone
« Reply #16 on: July 26, 2021, 09:41:11 AM »
Hi jbbum
Maybe you need to add routing information. When setting up  eth0  you execute a command similar to:
Code: [Select]
route add default gw 192.168.1.1so that  eth0  knows how to reach the outside world. You may have to do something similar using the cell phones
IP address as a gateway.

5) select dhcp
Or maybe you need to do something with dhcp.

Offline jbbum

  • Newbie
  • *
  • Posts: 33
Re: How to setup usbip for connection to cell phone
« Reply #17 on: July 26, 2021, 03:05:00 PM »
Got that problem solved.  After the "ifconfig.............up" statement from previous to bring the usb0 interface up, doing "sudo dhclient usb0" allowed access.  Can now "ping -I usb0 8.8.8.8" and get a result.    In the process of trying to enable packet forwarding to bridge the wireless ap and usb0.

Offline jbbum

  • Newbie
  • *
  • Posts: 33
Re: How to setup usbip for connection to cell phone
« Reply #18 on: July 26, 2021, 03:26:03 PM »
I apologize.  The command is "sudo dhcpcd usb0" not dhclient.

Offline honeydatax@sapo.pt

  • Newbie
  • *
  • Posts: 13
Re: How to setup usbip for connection to cell phone
« Reply #19 on: August 18, 2021, 12:19:18 AM »
Use my depedency builder tree

https://github.com/honeydatax/tinycorelinux/blob/main/dep.bas
 To know all the files you need to install