is there another possibility to reconfigure an interface (red0 in my case) besides using the “setup”-command?
Background: I want to write a little script that automatically reconfigures an interface (ip-adress, netmask, gateway, etc.).
I found all those informations in “/var/ipfire/ethernet/settings” but editing that file and restarting the network-service did not seem to do the trick. Maybe I’m just missing something here.
Background-Background (longer): I did some experimenting with a WWAN-module (Recommendation for WWAN-Module - #8 by lexuspolaris) and was successful in the end.
The only problem left is, that I am not able (due to the lack of knowledge, obviously ) to make it work for the connected devices. Getting an IP adress from the provider, assigning it to red interface, creating some routes, everything worked out: But in the end, only the firewall itself could do pings and so on, but not the connected devices in green and blue.
And because I KNOW that I will not be able to figure out all the necessary steps in an acceptable amount of time, I created a workaround: I established a connection via console, copied the assigned IP, Netmask and Gateway from the Provider and configured the red-interface as “static” with the provided information
Works without any problems, but now I would like to “automate” it.
Any help appreciated!
P.S.: I KNOW that this is not even nearly a perfect solution. The best solution would be to implement the new “libmbim” library in IPFire in a way, that it could be used just like “libqmi” in the dial-up screen. But as I said earlier, I do not have the necessary skills to accomplish such a big thing.