Date created: 07/26/19 09:43:22. Last modified: 07/26/19 09:43:36

Static Routes

List IPv4/IPv6 routes:

netstat -nr -f inet

netstat -nr -f inet6

 

Add a static IPv4 host route:

sudo route -n add -host 192.168.1.254 -interface en0

 

Delete a static IPv4 network route:

sudo route -n delete -net 10.0.0.0/24 -interface en0

 

Monitor route changes:

route -n monitor