{"id":16,"date":"2020-01-27T12:29:02","date_gmt":"2020-01-27T12:29:02","guid":{"rendered":"https:\/\/tech.mobilitio.com\/?p=16"},"modified":"2020-02-03T11:26:32","modified_gmt":"2020-02-03T11:26:32","slug":"usb-printer-wifi-rpi-part-3","status":"publish","type":"post","link":"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/","title":{"rendered":"How to add WiFi to a multifunction printer with USB using Raspberry Pi &#8211; Part 3, Set Fixed IP Address"},"content":{"rendered":"<h2><span style=\"font-weight: 400;\">PART 3: SET FIXED IP ADDRESS<\/span><\/h2>\n<p>In the <strong><a href=\"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/26\/usb-printer-wifi-rpi-part-2\/\">previous part<\/a><\/strong>, we configured the printer server, now we may want to set a fixed IP address, which makes configuring the scanner software easier, and also facilitates printer search too. The IP address range used by router&#8217;s DHCP should not be used for fixed addresses, but you may be able to set a fixed DHCP address for the raspberry in the router&#8217;s config, so that the DHCP always gives the same address to the device (which it reconginzes in WLAN by its MAC address).<\/p>\n<h3><span style=\"font-weight: 400;\">21) Plan the place of the Raspberry Pi in your Local Area Network<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Let&#8217;s think about configuring your RPi to have a fixed IP address in the WLAN. <\/span><span style=\"font-weight: 400;\">You can either program your WLAN router to always give the same IP address to the RPi:s WLAN adapter, or select an address within the subnet and out of the DHCP range in use. In this writing, we take the latter route, i.e. setting the IP address out of the DHCP range; assuming that DHCP is giving addresses starting from 192.168.1.10 and ending to 192.168.1.200, we pick an address in range 201-254, say, 192.168.1.245. This depends of course of your subnet configuration. If you have router management IP in 192.168.1.1 and the IP V4 net mask is 255.255.255.0, and you have nothing in your net with IP address 192.168.1.245, you&#8217;re good to go with my settings.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">22) Configure the IP V4 address via DHCP<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Configure the <a href=\"https:\/\/fi.wikipedia.org\/wiki\/DHCP\"><strong>dhcp<\/strong><\/a> daemon to make the IP address a static one; consult <\/span><a href=\"https:\/\/linux.die.net\/man\/8\/iwconfig\"><b>iwconfig<\/b> <\/a><span style=\"font-weight: 400;\">to get the name of your connected wlan interface. In the system configuration step, <em>raspi-config<\/em> , section Network &#8211; 2, you should have\u00a0 set &#8220;Enable Predictable names&#8221; to get wlan0 instead of something like <span style=\"color: #808080;\">wlx01234678ABCD<\/span>. Now, edit <a href=\"https:\/\/linux.die.net\/man\/5\/dhcpd.conf\">dhcp configuration<\/a> file:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">sudo nano \/etc\/dhcpcd.conf<\/span><\/pre>\n<p><i><span style=\"font-weight: 400;\">#Add to beginning:<\/span><\/i><\/p>\n<pre><span style=\"font-weight: 400;\">nohook lookup-hostname<\/span>\r\n<span style=\"font-weight: 400;\">interface wlan0 # wlan0 is the typical name for the wireless lan (wifi) interface, but it may be also longer<\/span>\r\n<span style=\"font-weight: 400;\">static ip_address=192.168.1.245\/24<\/span>\r\n<span style=\"font-weight: 400;\">static routers=192.168.1.1<\/span>\r\n<span style=\"font-weight: 400;\">static domain_name_servers=1.1.1.1 # of whichever DNS you want, for example, 192.168.1.1, 8.8.8.8 will also do.<\/span><\/pre>\n<p>Save and then restart DHCPD, or just reboot.<\/p>\n<p>Now we have set fixed IP address for the Raspberry Pi. Please note that if you configured the printer in the PC using IP address, you may want to reconfigure the address now.<\/p>\n<p>In the <a href=\"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/28\/usb-printer-wifi-rpi-part-4\/\"><strong>next part<\/strong><\/a> we will configure the scanner server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PART 3: SET FIXED IP ADDRESS In the previous part, we configured the printer server, now we may want to set a fixed IP address, which makes configuring the scanner software easier, and also facilitates printer search too. The IP address range used by router&#8217;s DHCP should not be used for fixed addresses, but you [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6,7],"tags":[4,2,3],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-howto","category-raspberry-pi","tag-printer","tag-raspberry","tag-rpi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to add WiFi to a multifunction printer with USB using Raspberry Pi - Part 3, Set Fixed IP Address : Technology Adventures<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to add WiFi to a multifunction printer with USB using Raspberry Pi - Part 3, Set Fixed IP Address : Technology Adventures\" \/>\n<meta property=\"og:description\" content=\"PART 3: SET FIXED IP ADDRESS In the previous part, we configured the printer server, now we may want to set a fixed IP address, which makes configuring the scanner software easier, and also facilitates printer search too. The IP address range used by router&#8217;s DHCP should not be used for fixed addresses, but you [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/\" \/>\n<meta property=\"og:site_name\" content=\"Technology Adventures\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-27T12:29:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-03T11:26:32+00:00\" \/>\n<meta name=\"author\" content=\"Antti Ketola\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Antti Ketola\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/01\\\/27\\\/usb-printer-wifi-rpi-part-3\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/01\\\/27\\\/usb-printer-wifi-rpi-part-3\\\/\"},\"author\":{\"name\":\"Antti Ketola\",\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/#\\\/schema\\\/person\\\/77afbe65748de776da8ba057a1309ddc\"},\"headline\":\"How to add WiFi to a multifunction printer with USB using Raspberry Pi &#8211; Part 3, Set Fixed IP Address\",\"datePublished\":\"2020-01-27T12:29:02+00:00\",\"dateModified\":\"2020-02-03T11:26:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/01\\\/27\\\/usb-printer-wifi-rpi-part-3\\\/\"},\"wordCount\":367,\"commentCount\":0,\"keywords\":[\"printer\",\"raspberry\",\"rpi\"],\"articleSection\":[\"Howto\",\"Raspberry pi\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/01\\\/27\\\/usb-printer-wifi-rpi-part-3\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/01\\\/27\\\/usb-printer-wifi-rpi-part-3\\\/\",\"url\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/01\\\/27\\\/usb-printer-wifi-rpi-part-3\\\/\",\"name\":\"How to add WiFi to a multifunction printer with USB using Raspberry Pi - Part 3, Set Fixed IP Address : Technology Adventures\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/#website\"},\"datePublished\":\"2020-01-27T12:29:02+00:00\",\"dateModified\":\"2020-02-03T11:26:32+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/#\\\/schema\\\/person\\\/77afbe65748de776da8ba057a1309ddc\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/01\\\/27\\\/usb-printer-wifi-rpi-part-3\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/01\\\/27\\\/usb-printer-wifi-rpi-part-3\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/01\\\/27\\\/usb-printer-wifi-rpi-part-3\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/tech.mobilitio.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to add WiFi to a multifunction printer with USB using Raspberry Pi &#8211; Part 3, Set Fixed IP Address\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/#website\",\"url\":\"https:\\\/\\\/tech.mobilitio.com\\\/\",\"name\":\"Technology Adventures of a Mobile Guy\",\"description\":\"By Antti Ketola\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/tech.mobilitio.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/#\\\/schema\\\/person\\\/77afbe65748de776da8ba057a1309ddc\",\"name\":\"Antti Ketola\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/71ed3864841062b7e0bb8e83af2772ed22df062d96408ebed3ae733f4e5a9d97?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/71ed3864841062b7e0bb8e83af2772ed22df062d96408ebed3ae733f4e5a9d97?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/71ed3864841062b7e0bb8e83af2772ed22df062d96408ebed3ae733f4e5a9d97?s=96&d=mm&r=g\",\"caption\":\"Antti Ketola\"},\"sameAs\":[\"http:\\\/\\\/mobilitio.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to add WiFi to a multifunction printer with USB using Raspberry Pi - Part 3, Set Fixed IP Address : Technology Adventures","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/","og_locale":"en_GB","og_type":"article","og_title":"How to add WiFi to a multifunction printer with USB using Raspberry Pi - Part 3, Set Fixed IP Address : Technology Adventures","og_description":"PART 3: SET FIXED IP ADDRESS In the previous part, we configured the printer server, now we may want to set a fixed IP address, which makes configuring the scanner software easier, and also facilitates printer search too. The IP address range used by router&#8217;s DHCP should not be used for fixed addresses, but you [&hellip;]","og_url":"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/","og_site_name":"Technology Adventures","article_published_time":"2020-01-27T12:29:02+00:00","article_modified_time":"2020-02-03T11:26:32+00:00","author":"Antti Ketola","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Antti Ketola","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/#article","isPartOf":{"@id":"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/"},"author":{"name":"Antti Ketola","@id":"https:\/\/tech.mobilitio.com\/#\/schema\/person\/77afbe65748de776da8ba057a1309ddc"},"headline":"How to add WiFi to a multifunction printer with USB using Raspberry Pi &#8211; Part 3, Set Fixed IP Address","datePublished":"2020-01-27T12:29:02+00:00","dateModified":"2020-02-03T11:26:32+00:00","mainEntityOfPage":{"@id":"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/"},"wordCount":367,"commentCount":0,"keywords":["printer","raspberry","rpi"],"articleSection":["Howto","Raspberry pi"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/","url":"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/","name":"How to add WiFi to a multifunction printer with USB using Raspberry Pi - Part 3, Set Fixed IP Address : Technology Adventures","isPartOf":{"@id":"https:\/\/tech.mobilitio.com\/#website"},"datePublished":"2020-01-27T12:29:02+00:00","dateModified":"2020-02-03T11:26:32+00:00","author":{"@id":"https:\/\/tech.mobilitio.com\/#\/schema\/person\/77afbe65748de776da8ba057a1309ddc"},"breadcrumb":{"@id":"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/tech.mobilitio.com\/index.php\/2020\/01\/27\/usb-printer-wifi-rpi-part-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tech.mobilitio.com\/"},{"@type":"ListItem","position":2,"name":"How to add WiFi to a multifunction printer with USB using Raspberry Pi &#8211; Part 3, Set Fixed IP Address"}]},{"@type":"WebSite","@id":"https:\/\/tech.mobilitio.com\/#website","url":"https:\/\/tech.mobilitio.com\/","name":"Technology Adventures of a Mobile Guy","description":"By Antti Ketola","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tech.mobilitio.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/tech.mobilitio.com\/#\/schema\/person\/77afbe65748de776da8ba057a1309ddc","name":"Antti Ketola","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/71ed3864841062b7e0bb8e83af2772ed22df062d96408ebed3ae733f4e5a9d97?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/71ed3864841062b7e0bb8e83af2772ed22df062d96408ebed3ae733f4e5a9d97?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/71ed3864841062b7e0bb8e83af2772ed22df062d96408ebed3ae733f4e5a9d97?s=96&d=mm&r=g","caption":"Antti Ketola"},"sameAs":["http:\/\/mobilitio.com"]}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":13,"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":105,"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/posts\/16\/revisions\/105"}],"wp:attachment":[{"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}