{"id":553,"date":"2025-01-12T12:00:08","date_gmt":"2025-01-12T10:00:08","guid":{"rendered":"https:\/\/it4home.dk\/?p=553"},"modified":"2025-01-12T12:00:08","modified_gmt":"2025-01-12T10:00:08","slug":"troubleshooting-network-issues-on-a-raspberry-pi-with-pfsense","status":"publish","type":"post","link":"https:\/\/it4home.dk\/index.php\/2025\/01\/12\/troubleshooting-network-issues-on-a-raspberry-pi-with-pfsense\/","title":{"rendered":"Troubleshooting Network Issues on a Raspberry Pi with pfSense"},"content":{"rendered":"<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-top-right\"><a href=\"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/553?print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\" ><\/a><a href=\"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/553?print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\" ><img decoding=\"async\" src=\"https:\/\/it4home.dk\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>\n<h2 class=\"wp-block-heading\">Troubleshooting Network Issues on a Raspberry Pi with pfSense<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Recently, I encountered a network connectivity issue with my Raspberry Pi running Raspberry Pi OS Bookworm, where the device was not receiving an IP address from my pfSense router&#8217;s DHCP server. After some investigation and adjustments, I was able to resolve the problem successfully. Here\u2019s a detailed blog post to help others facing similar challenges.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Initial Symptoms<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The issue was that my Raspberry Pi, connected via a wired Ethernet connection, was not receiving an IP address from my pfSense DHCP server. The default DHCP client, <code>dhcpcd<\/code>, was active and causing conflicts. Although NetworkManager was installed, it was not active, leading to further issues.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Diagnosing the Issue<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1: Check Network Interface Status<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">I began by checking the network interface status using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nmcli device status\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The output revealed that <code>eth0<\/code> was connected but not receiving an IP address.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Verify IP Assignment<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To verify whether the Raspberry Pi was assigned an IP address, I used:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ip a show eth0\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The result showed an IP address (<code>192.168.0.224<\/code>) and a valid lease from the pfSense DHCP server.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3: Confirm the Default Gateway<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Next, I checked the default gateway configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ip route\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The default route correctly pointed to the pfSense router at <code>192.168.0.1<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Changing DHCP Client to NetworkManager<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The default DHCP client on Raspberry Pi OS Bookworm is <code>dhcpcd<\/code>, which can cause conflicts. To switch to NetworkManager, I used:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo raspi-config\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I navigated to <strong>Advanced Options &gt; Network Config &gt; NetworkManager<\/strong>, selected it, and rebooted the Raspberry Pi. This change resolved the DHCP conflict and allowed the device to obtain an IP address correctly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Testing Network Connectivity<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Ping Test<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">I ran a basic connectivity test:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ping 8.8.8.8\nping google.com\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Both tests were successful, indicating no connectivity issues.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Resolving the Issue<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The issue was resolved by disabling <code>dhcpcd<\/code> and enabling NetworkManager using <code>sudo raspi-config<\/code>. No further DNS changes were required as the default settings pointed correctly to the pfSense router.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After switching to NetworkManager using <code>sudo raspi-config<\/code>, my Raspberry Pi successfully received a DHCP lease from the pfSense router, and the network connectivity was fully restored. If you&#8217;re experiencing similar issues, following these steps can help identify and resolve the problem effectively.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to share your own network troubleshooting experiences or reach out for further assistance!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Troubleshooting Network Issues on a Raspberry Pi with pfSense Recently, I encountered a network connectivity issue with my Raspberry Pi running Raspberry Pi OS Bookworm, where the device was not receiving an IP address&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":554,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[9,1,7],"tags":[],"class_list":["post-553","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-network","category-pfsense","category-raspberry"],"_links":{"self":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/comments?post=553"}],"version-history":[{"count":1,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/553\/revisions"}],"predecessor-version":[{"id":555,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/553\/revisions\/555"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/media\/554"}],"wp:attachment":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/media?parent=553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/categories?post=553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/tags?post=553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}