I some time have to change the USB IP address to 192.168.3.2 when I’m using the Fx30 connected (by its ETH0) to a network using the subnet 192.168.2.XXX.
To do this, I’m using the console command: “$> configEcm on target 192.168.3.2 host 192.168.3.3 netmask 255.255.255.0”
I’m using an Fx30 with the firmware R13.1.3.001.
After this command, the USB link correctly responds on the new IP address (192.168.3.2), but I have seen the Fx30 DHCP server (dnsmasq module) responding on the network 192.168.2.XXX. All clients listening to the Fx30 DHCP server endup with the Fx30 as their gateway which is wrong.
I need the Fx30 DHCP server to respond on the USB interface ONLY.
I see on that the new configuration (the one with the subnet 192.168.3.XXX) is added to the configuration file /etc/dnsmasq.d/dnsmasq.ecm.conf. the old configuration (the one with the subnet 192.168.2.XXX) should be removed.
I propose to modify the /mnt/legato/system/bin/configEcm script to clean the DHCP configuration file before adding into it the new configuration (in the config_dhcp() function).
Thanks to give me your opinion on this modification.
Best regards, Christian.