2025-06-04 2:41 AM
Hi,
I'm new of linux.
Now I have two network interface on my board, end0 for ethernet & en1u2i4 for 4G modem.
The ethenet(end0) is directly connected to my PC only for development that I can use ssh to connect my board.
And I want the other connection transfered by 4G modem(en1u2i4), so I use "route del default" to delete the first rule of the routing table.
That will work. But I need to do this everytime the board boot up.
Are there settings can be modified in the system? Or should I write a script to do "route del" command with a startup service?
Thank you.
2025-07-01 12:01 AM
Hi @yclin,
Indeed, you can write a script to do the commands that you need to configure your network interfaces.
Maybe (I haven’t tested it) you can also use the configuration files as explained in the https://wiki.st.com/stm32mpu/wiki/How_to_configure_ethernet_interface STM32 MPU wiki article, and in the official documentation of systemd-networkd that is referenced in this article (https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html).
Hope this information helps.
Regards,
JC.