Pregunta

I need to add 200 routes using /sbin/route when my linux is switching ip familly.

My problem is adding or deleting 200 routes takes many times on my board and I need to find a way to do it quicker.

Is there a way to add a group of routes ? or do I need to customize the /sbin/route app ?

I need help :)

¿Fue útil?

Solución

I found a way.

it was the spawn time from my bash which was taking time. so i added my 100 routes whith 1 call of bash -c.

It results by a gain of 200% of time.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top