OpenWrt删除静态路由

2022年4月10日 2886点热度 1人点赞 1条评论

之前由于在静态路由下加了条错误的路由,造成网络故障,直接导致那台OpenWrt软路由失联无法访问,问题也很好解决,

 vi /etc/config/netowork

 

删除那条错误的路由即可

 

 

重启网卡

service network restart

 

网络恢复

Gcod

人生若只如初见,何事秋风悲画扇

文章评论

  • jiajiancheng

    uci set network.your_route='route'
    uci set network.your_route.interface='lan'
    uci set network.your_route.target='10.244.96.0'
    uci set network.your_route.netmask='255.255.255.0'
    uci set network.your_route.gateway='10.244.100.254'
    uci commit network

    2022年6月24日