ev3dev / ev3dev

ev3dev meta - bug tracking, wiki and releases
http://www.ev3dev.org
GNU General Public License v2.0
629 stars 85 forks source link

Change tethering IP #1268

Open xdsl opened 5 years ago

xdsl commented 5 years ago

How to change tethering IP 192.168.0.1 ?

dlech commented 5 years ago

As far as I know, you can't. You could check the ConnMan mailing list to see if there have been any updates. It has been discussed in the past, but I don't think any action was ever taken.

xdsl commented 5 years ago

Solved. I create udev rule for add tether network interface.

dlech commented 5 years ago

Could you post your solution here in case others have the same problem?

xdsl commented 5 years ago

ev3dev-jessie: Create file /etc/udev/rules.d/99-bt-tether-net.rules: SUBSYSTEM=="net", ACTION=="add", DEVPATH=="/devices/virtual/net/tether", RUN+="/bin/sh -c 'ip addr add 192.168.1.1/24 dev tether'", RUN+="/bin/sh -c 'ip addr add 192.168.2.1/24 dev tether'"

xdsl commented 5 years ago

On computer I create to bluetooth ev3dev-connection in NetworkManager with static ip 192.168.1.2/24 or 192.168.2.2/24 and thus avoid conflicts with my home WIFI-network 192.168.0.0/24

dlech commented 5 years ago

Thanks!

snaildos commented 3 years ago

Oh wow, That's pretty cool. Thank you very much for this. :p