← Back to team overview

ubuntu-phone team mailing list archive

Re: rndis networking

 

On Thu, 2015-05-14 at 13:06 +0200, Matthias Apitz wrote:
> El jueves, 14 de mayo de 2015 12:42:20 (CEST), Ed Kapitein escribió:
> > Hi,
> > 
> > Where can i find more information on the rndis network settings?
> > The phone uses 10.42.0.1 on rndis0, but also uses a dhcp server if one
> > is present on the PC side.
> > But that doesn't seem to work always.
> > Sometimes the PC gets an ip address on its usbX interface from the
> > phone.
> > 
> > I see a lot of different behaviour when using rndis, what is supposed to
> > happen if you use android-gadget-service enable rndis ?
> > 
> > Kind regards,
> > Ed
> 
> Hi Ed,
> 
> I always use rndis and in my FreeBSD netbook I simple start dhcclient, get 
> the IP from the phones DHCP server, set default route to the phone, restart 
> sendmail and I'm fully connected to Internet using the phone as router.
> 
> matthias
> 
> 

Thanks!

I noticed that that works, but i am using it the other way around, i use
my PC as a router for the phone.
And that works too!
So the phone can work as a dhcpserver, but also as a dhcpclient.
But somtimes the the dhcpclient part of the phone does not work, failing
to set the default gateway and the interface address.

As Oliver pointed out, the interface is handled by network manager.
But i can't seem to find where  10.42.0.1 address comes from, or how i
can change it to, lets say 192.168.x.y.

I am still confused that the interface acts like a dhcpserver and a
dhcpclient at the same time ( sometimes failing the latter )

Thanks for the help so far!

Kind regards,
Ed





Follow ups

References