{"id":2812,"date":"2017-08-17T16:28:05","date_gmt":"2017-08-17T16:28:05","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=2812"},"modified":"2017-08-18T11:19:42","modified_gmt":"2017-08-18T11:19:42","slug":"routing-table","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/pi-operating-systems\/raspbian\/network-settings\/routing-table","title":{"rendered":"Routing Table"},"content":{"rendered":"<h4>\nDisplay current routing table<br \/>\n<\/h4>\n<pre>\r\n<code>\r\nroute -n\r\n<\/code><\/pre>\n<h4>\nDiscover which interface will be used for a specific IP address<br \/>\n<\/h4>\n<pre>\r\n<code>\r\nip route get 8.8.8.8\r\n<\/code><\/pre>\n<h4>\nSetting wlan interfaces to be high priority for routing than eth0, if present<br \/>\n<\/h4>\n<pre>\r\n<code>\r\nsudo nano \/etc\/dhcpcd.conf\r\n<\/code><\/pre>\n<p>\nAdd these lines to the end (or add &quot;metric&quot; to the existing interface definitions if you&#39;ve already specified a setup for the eth or wlan interfaces)\n<\/p>\n<pre>\r\n<code>\r\n#SET WLAN TO BE HIGHER PRIORITY THAN ETH0 FOR ROUTING IF PRESENT (lower metric takes precedence)\r\ninterface wlan1\r\n    metric 200\r\n\r\ninterface wlan0\r\n    metric 201\r\n\r\ninterface eth0\r\n    metric 300\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Display current routing table route -n Discover which interface will be used for a specific IP address ip route get 8.8.8.8 Setting wlan interfaces to be high priority for routing than eth0, if present sudo nano \/etc\/dhcpcd.conf Add these lines to the end (or add &quot;metric&quot; to the existing interface definitions if you&#39;ve already specified [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-2812","post","type-post","status-publish","format-standard","hentry","category-network-settings"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=2812"}],"version-history":[{"count":5,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2812\/revisions"}],"predecessor-version":[{"id":2817,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2812\/revisions\/2817"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=2812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=2812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=2812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}