{"id":75,"date":"2021-01-20T16:45:06","date_gmt":"2021-01-20T16:45:06","guid":{"rendered":"https:\/\/tekweis.com\/?p=75"},"modified":"2023-03-10T10:28:42","modified_gmt":"2023-03-10T16:28:42","slug":"configure-fog-to-pxe-boot-with-asus-rt-ac86u-router","status":"publish","type":"post","link":"https:\/\/tekweis.com\/index.php\/2021\/01\/20\/configure-fog-to-pxe-boot-with-asus-rt-ac86u-router\/","title":{"rendered":"Configure FOG to PXE boot with Asus RT-AC86U router"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"alignleft size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"222\" height=\"359\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/ASUSRouter.jpeg\" alt=\"\" class=\"wp-image-86\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/ASUSRouter.jpeg 222w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/ASUSRouter-186x300.jpeg 186w\" sizes=\"auto, (max-width: 222px) 100vw, 222px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-text-align-left\">I have been wanting to stand up a <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/fogproject.org\/\" target=\"_blank\">FOG Imaging server<\/a><\/strong> for quite some time on my home network. I have an Asus RT-AC86U router at home with the <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.asuswrt-merlin.net\/\" target=\"_blank\">AsusWRT-Merlin<\/a><\/strong> firmware installed. If you have an Asus router, the Merlin firmware is a must regardless since an improved version of the default firmware the Asus routers come with.<\/p>\n\n\n\n<p>To learn how to install a FOG Server VM, I follow the tutorials on the <a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/channel\/UC6Q0WH_RAsls1UU1l2heo4Q\" target=\"_blank\">Practical IT Youtube channel<\/a>. These videos have been my favorite reference for setting up and using FOG.<\/p>\n\n\n\n<p>You can watch the first video in the series <a href=\"https:\/\/www.youtube.com\/watch?v=LMuwkJsjlOo\">HERE<\/a>.<\/p>\n\n\n\n<p>During the FOG setup, you will see a summary of your FOG-Master setup. It is important to note the FOG Server IP addressed you have assigned and the bootfile name as seen in the example below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"523\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-setup-pxe-info.png\" alt=\"\" class=\"wp-image-76\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-setup-pxe-info.png 795w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-setup-pxe-info-300x197.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-setup-pxe-info-768x505.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-setup-pxe-info-660x434.png 660w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><figcaption>On my setup, the bootfile is name: udionly.kpxe and the IP address is 192.168.1.29<\/figcaption><\/figure>\n\n\n\n<p>Now, you will need to sign into the Asus router to enable and configure DNSMASQ.  Once signed into the Asus router, go to <strong>LAN \/ DHCP Server<\/strong>. Make sure that <strong>DNS Server 1<\/strong> is set to the IP address of your Asus router (In my case it is 192.168.1.1).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"758\" height=\"908\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-dns1-setting.png\" alt=\"\" class=\"wp-image-77\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-dns1-setting.png 758w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-dns1-setting-250x300.png 250w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-dns1-setting-660x791.png 660w\" sizes=\"auto, (max-width: 758px) 100vw, 758px\" \/><\/figure>\n\n\n\n<p>Now go into <strong>ADMINISTRATION \/ SYSTEM<\/strong> . Look for, &#8220;<strong>Enable JFFS custom scripts and configs<\/strong>&#8220;. Enable this option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"592\" height=\"144\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-jffs.png\" alt=\"\" class=\"wp-image-79\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-jffs.png 592w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-jffs-300x73.png 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/figure>\n\n\n\n<p>You will need to enable SSH on the router so that you can configure DNSMASQ. These settings are on the same page as the JFFS setting.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1005\" height=\"293\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/FOG-Asus-Enable-SSH.png\" alt=\"\" class=\"wp-image-80\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/FOG-Asus-Enable-SSH.png 1005w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/FOG-Asus-Enable-SSH-300x87.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/FOG-Asus-Enable-SSH-768x224.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/FOG-Asus-Enable-SSH-660x192.png 660w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/figure>\n\n\n\n<p>Now SSH into your Asus router. go to the <strong>\/jffs\/configs<\/strong> directory. I then run nano to create a file dnsmasq.conf.add<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"843\" height=\"211\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-ssh-dnsmasq.png\" alt=\"\" class=\"wp-image-82\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-ssh-dnsmasq.png 843w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-ssh-dnsmasq-300x75.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-ssh-dnsmasq-768x192.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-ssh-dnsmasq-660x165.png 660w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/figure>\n\n\n\n<p>Enter the following line in the dnsmasq.conf.add. Be sure to use replace the IP address to your router and use the bootfile name you saw in the fog setup screen that I noted earlier. For my setup, I entered the line:<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>dhcp-boot=undionly.kpxe,,192.168.1.29<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"607\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-nano-dnsmasq-1024x607.png\" alt=\"\" class=\"wp-image-83\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-nano-dnsmasq-1024x607.png 1024w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-nano-dnsmasq-300x178.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-nano-dnsmasq-768x456.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-nano-dnsmasq-660x392.png 660w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-nano-dnsmasq.png 1089w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Save the file and exit nano. Now restart the DNSMasq service on the router using the command: <strong>service restart_dnsmasq<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"308\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-restart-dnsmasq.png\" alt=\"\" class=\"wp-image-84\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-restart-dnsmasq.png 692w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-restart-dnsmasq-300x134.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-asus-restart-dnsmasq-660x294.png 660w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><\/figure>\n\n\n\n<p>Now, I booted a PC and had it boot from the network adapter (PXE), and the FOG boot menu appeared. Everything is working!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"613\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-pxe-success.png\" alt=\"\" class=\"wp-image-85\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-pxe-success.png 819w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-pxe-success-300x225.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-pxe-success-768x575.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2021\/01\/fog-pxe-success-660x494.png 660w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/figure>\n\n\n\n<p>Check out the other videos on the <strong><a href=\"https:\/\/www.youtube.com\/channel\/UC6Q0WH_RAsls1UU1l2heo4Q\">Practical IT with Jeremy Leik <\/a><\/strong>channel for further configuring and using FOG to create and restore FOG images. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been wanting to stand up a FOG Imaging server for quite some time on my home network. I have an Asus RT-AC86U router at home with the AsusWRT-Merlin firmware installed. If you have an Asus router, the Merlin firmware is a must regardless since an improved version of the default firmware the Asus\u2026 <span class=\"read-more\"><a href=\"https:\/\/tekweis.com\/index.php\/2021\/01\/20\/configure-fog-to-pxe-boot-with-asus-rt-ac86u-router\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-75","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":8,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":229,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/75\/revisions\/229"}],"wp:attachment":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}