openthread / ot-br-posix

OpenThread Border Router, a Thread border router for POSIX-based platforms.
https://openthread.io/
BSD 3-Clause "New" or "Revised" License
421 stars 235 forks source link

/etc/iproute2/rt_tables: No such file or directory #2552

Open OlivierGre opened 1 month ago

OlivierGre commented 1 month ago

I'm facing an error during setup screen: sed: can't read /etc/iproute2/rt_tables: No such file or directory

Here is what I have done:

I'm then getting the above error.

I'm attaching the traces. Do you think that it is related to the change of interface (eth -> wifi)?

setup_nok.txt

OlivierGre commented 1 month ago

If I use the Ethernet interface and call "INFRA_IF_NAME=wlan0 ./script/setup" (which is odd), I get the same error

OlivierGre commented 1 month ago

I have also tried this:

A clean is maybe necessary to flush what has been built before for Ethernet.

OlivierGre commented 1 month ago

I have fixed it with:

sudo mkdir -p /etc/iproute2
sudo touch /etc/iproute2/rt_tables
echo -e "255\tlocal\n254\tmain\n253\tdefault\n0\tunspec" | sudo tee /etc/iproute2/rt_tables
sudo chmod 644 /etc/iproute2/rt_tables

Is it normal that I had to do this after an installation from scratch?