Think before you speak, read before you think.

macOS 路由管理

by

in

osx添加与删除静态路由

sudo route -n add -net 10.10.1.0/24 10.10.1.2
sudo route -n delete -net 10.10.1.0/24 10.10.1.2

清除路由

You need to flush the routes . Use route -n flush several times . Afterwards add your routes with route add. restart network

print routes

netstat -rn

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *