Imx6ull - set ip on rndis

Hi,

I’m working on a colibri-imx6ull. Setting up the usb-otg as rndis network device works fine and there is even a dhcpd running. My problem is, that I can’ t change the network address. I found this in the documentaton:

ifconfig usb0 192.168.100.2

Okay, the address changes, but after rebooting, the address falls back to 192.168.11.1. And the dhcpd always gives leases in the network 192.168.11.0/24

Where can I configure the rndis device?

Hi @tux007 and Welcoem tot the Toradex Community!!!

Why do you want to change the IP address?

Best regards,
Jaski

Well, I just want to configure it. I want to have a address different to 192.168.x.x just to see the difference. And to change it in the case the 192.168.11.0 net is already used on the PC which will be connected.

You should be looking at the following configuration which lives at /usr/lib/systemd/network on the target:

http://git.toradex.com/cgit/meta-toradex-demos.git/tree/recipes-core/systemd/systemd/rndis.network?h=rocko