{"id":1737,"date":"2019-06-30T21:01:03","date_gmt":"2019-07-01T04:01:03","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1737"},"modified":"2019-07-01T19:59:18","modified_gmt":"2019-07-02T02:59:18","slug":"adding-a-static-routes-in-macos-mojave","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1737","title":{"rendered":"Adding a static routes in MacOS Mojave"},"content":{"rendered":"<p>To add a permanent static route in MacOS Mojave, open up a terminal session.<\/p>\n<p>List all of your available network services.  Services really just seem to be aliases for network interfaces.<\/p>\n<blockquote><p>$ sudo networksetup -listallnetworkservices<br \/>\nAn asterisk (*) denotes that a network service is disabled.<br \/>\nUSB-Serial Controller D<br \/>\niPad USB<br \/>\niPhone USB<br \/>\nWi-Fi<br \/>\nBluetooth PAN<br \/>\nThunderbolt Bridge<\/p><\/blockquote>\n<p>You will be adding the route to a service, therefore, you will need to know which service to apply the route to.<\/p>\n<p>In my case, I wanted to add the route to my wireless interface:<\/p>\n<blockquote><p>$ sudo networksetup -setadditionalroutes Wi-Fi network-destination destination-mask gateway-to-use<br \/>\n$ sudo networksetup -setadditionalroutes Wi-Fi 10.1.1.0 255.255.255.0 192.168.0.254<\/p><\/blockquote>\n<p>List all of your current routes:<\/p>\n<blockquote><p>$ sudo networksetup -getadditionalroutes Wi-Fi<br \/>\n10.1.1.0 255.255.255.0 192.168.0.254<\/p><\/blockquote>\n<p>To remove static routes from a network service just remove the parameters from the command you used to set the route:<\/p>\n<blockquote><p>$ sudo networksetup -setadditionalroutes Wi-Fi<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>To add a permanent static route in MacOS Mojave, open up a terminal session. List all of your available network services. Services really just seem to be aliases for network interfaces. $ sudo networksetup -listallnetworkservices An asterisk (*) denotes that a network service is disabled. USB-Serial Controller D iPad USB iPhone USB Wi-Fi Bluetooth PAN [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[99,476],"class_list":["post-1737","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-macos","tag-route"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1737"}],"version-history":[{"count":3,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1737\/revisions"}],"predecessor-version":[{"id":1740,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1737\/revisions\/1740"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}