cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify default routing table on STM32MP157 with OpenSTlinux

yclin
Associate III

Hi,

 

I'm new of linux.

Now I have two network interface on my board, end0 for ethernet & en1u2i4 for 4G modem.

Capture21.PNG

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.

Capture22.PNG 

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.

1 REPLY 1

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.