This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: Route table error

Expert 2990 points
Other Parts Discussed in Thread: AM5728

Hi all

Just now we use the am5728 custom board to test dual network functions(EMAC network).

We want to use the two network connected to the same subnet , which have two ip address.

such as 192.168.0.200,192.168.0.201.

if the two network is linked , we can ping them successfully

if eth0 is disconnected, then we can not ping eth0 and eth1 

So we added the route table according to the google's suggestion

The command is like below:

ip route add 192.168.0.0/24 dev eth0 src 192.168.0.200 table net_200

ip route add 192.168.0.0/24 dev eth1 src 192.168.0.201 table net_201

ip route add 192.168.0.0/24 dev eth0 src 192.168.0.200
ip route add 192.168.0.0/24 dev eth1 src 192.168.0.201

When we use the above command to add the route table, It will report error

RTNETLINK answers: File exists

So we want to know whether we should modify the Linux kernel configuration.

Thanks

best regards