有没有一种快速的方法来删除Linux中的路由表,我route
看起来像这样:
SOLVED
我想从br-lan
界面中删除除那个以外的所有东西。有没有一种快速的方法来做到这一点?
使用iproute2ip route
输出您的路由并
ip route show | grep -v 192.168.1 | sed -e 's/.*/ip route del &/' > /tmp/clearroutes.sh
bash /tmp/clearroutes.sh
最好在执行前阅读/tmp/clearroutes.sh。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句