[英]adding 200 routes with busybox
I need to add 200 routes using /sbin/route when my linux is switching ip familly. 当我的linux切换IP系列时,我需要使用/ sbin / route添加200条路由。
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. 我的问题是在板上添加或删除200条路由需要花费很多时间,因此我需要找到一种更快地完成路由的方法。
Is there a way to add a group of routes ? 有没有办法添加一组路由? or do I need to customize the /sbin/route app ? 还是我需要自定义/ sbin / route应用程序?
I need help :) 我需要帮助 :)
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
. 所以我添加了我的100条路由,其中有1次调用bash -c
。
It results by a gain of 200% of time. 结果是获得了200%的时间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.