Date created: Friday, July 26, 2019 9:43:22 AM. Last modified: Monday, January 25, 2021 2:10:25 PM

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