{"id":2113,"date":"2015-06-25T15:13:38","date_gmt":"2015-06-25T15:13:38","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=2113"},"modified":"2015-06-25T15:14:35","modified_gmt":"2015-06-25T15:14:35","slug":"adding-a-2nd-fixed-ip-address-to-the-ethernet-port","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/pi-operating-systems\/raspbian\/network-settings\/adding-a-2nd-fixed-ip-address-to-the-ethernet-port","title":{"rendered":"Adding A 2nd Fixed IP Address To The Ethernet Port"},"content":{"rendered":"<p>\nFor example, say you want the RPi Ethernet port to use DHCP, but to also have a fixed IP address so you can connect to it using a direct cable connection from a laptop.\n<\/p>\n<pre>\r\n<code>\r\nsudo nano \/etc\/network\/interfaces\r\n<\/code><\/pre>\n<p>\nUse this for the eth0 adaptor:\n<\/p>\n<pre>\r\n<code>\r\nauto eth0\r\nallow-hotplug eth0\r\niface eth0 inet dhcp\r\n\r\nauto eth0:1\r\niface eth0:1 inet static\r\n       address 192.168.1.123\r\n       netmask 255.255.255.0\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For example, say you want the RPi Ethernet port to use DHCP, but to also have a fixed IP address so you can connect to it using a direct cable connection from a laptop. sudo nano \/etc\/network\/interfaces Use this for the eth0 adaptor: auto eth0 allow-hotplug eth0 iface eth0 inet dhcp auto eth0:1 iface eth0:1 [&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-2113","post","type-post","status-publish","format-standard","hentry","category-network-settings"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2113","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=2113"}],"version-history":[{"count":2,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2113\/revisions"}],"predecessor-version":[{"id":2115,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2113\/revisions\/2115"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=2113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=2113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=2113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}