<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Network on blog.iankulin.com</title><link>https://blog.iankulin.com/tags/network/</link><description>Recent content in Network on blog.iankulin.com</description><generator>Hugo</generator><language>en-AU</language><lastBuildDate>Thu, 06 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.iankulin.com/tags/network/index.xml" rel="self" type="application/rss+xml"/><item><title>Allowing Proxmox to use a Dynamic IP</title><link>https://blog.iankulin.com/allowing-proxmox-to-use-a-dynamic-ip/</link><pubDate>Thu, 06 Apr 2023 00:00:00 +0000</pubDate><guid>https://blog.iankulin.com/allowing-proxmox-to-use-a-dynamic-ip/</guid><description>&lt;p&gt;I&amp;rsquo;ve &lt;a href="https://blog.iankulin.com/proxmox-dynamic-ip/"&gt;discussed before&lt;/a&gt;, that when you first install Proxmox, it grabs an IP address from your DHCP server (this usually runs in your ISP modem if you haven&amp;rsquo;t created a better setup), but then it stores it as a static ip. This is a sort of compromise that makes sense and works for most circumstances.&lt;/p&gt;
&lt;p&gt;As soon as I&amp;rsquo;ve provisioned a new Proxmox server, I then usually tell the DHCP server, to always serve that address to the MAC address of the new Proxmox server. Since Proxmox does not use the DHCP server on subsequent boots, all that really does is prevent the DHCP server give the same IP address out to another device - which had happened to me prompting the earlier post. The DHCP server had given the address to a wifi lightbulb while the server was off, then when the Proxmox server booted up, the netwrok access was all messed up.&lt;/p&gt;
&lt;p&gt;In general, servers should have a static IP address - they are providing resources that other devices on the network need to access, so the combination of grabbing a DHCP address, using it statically, then me locking it in at the DHCP server makes sense.&lt;/p&gt;
&lt;p&gt;Except that I&amp;rsquo;m building a system with a couple of VM&amp;rsquo;s and a NAS that I&amp;rsquo;m going to post off, and have it set up by a non-techie at a remote site. So I really need Proxmox on that machine to look for a DHCP server when it boots and collect a dynamic IP address. Like a lot of things in Linux, this is quite a simple change if you know where to look.&lt;/p&gt;
&lt;h3 id="what-to-change"&gt;What to Change&lt;/h3&gt;
&lt;p&gt;The configuration file for the network interfaces is /&lt;code&gt;etc/network/interfaces&lt;/code&gt; the one on the Proxmox machine I&amp;rsquo;m setting up looked like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#d8dee9;background-color:#2e3440;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;iface lo inet loopback
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;iface eno1 inet manual
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;auto vmbr0
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;iface vmbr0 inet static
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	address 192.168.100.30/24
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	gateway 192.168.100.1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	bridge-ports eno1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	bridge-stp off
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	bridge-fd 0
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;iface&lt;/code&gt; is short for interface, and is followed by the interface name. These are the same names you see when you type in &lt;code&gt;ip addr&lt;/code&gt; to see the IP addresses.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://blog.iankulin.com/images/edit.jpg" alt=""&gt;&lt;/p&gt;
&lt;p&gt;So this is the bit we are interested in:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#d8dee9;background-color:#2e3440;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;iface vmbr0 inet static
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	address 192.168.100.30/24
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	gateway 192.168.100.1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	bridge-ports eno1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	bridge-stp off
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	bridge-fd 0
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;All that bridge stuff can stay the same, I&amp;rsquo;ll comment out the static bits and change it to use the DHCP. The final file looks like:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#d8dee9;background-color:#2e3440;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;auto lo
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;iface lo inet loopback
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;iface eno1 inet manual
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;auto vmbr0
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;#iface vmbr0 inet static
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;#	address 192.168.100.30/24
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;#	gateway 192.168.100.1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;iface vmbr0 inet dhcp
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	bridge-ports eno1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	bridge-stp off
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;	bridge-fd 0
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I used the mac address to tell the DCHP server to allocate it a different address, and rebooted and Proxmox picked up the new address perfectly.&lt;/p&gt;
&lt;h3 id="hosts"&gt;Hosts&lt;/h3&gt;
&lt;p&gt;Now the server had a new address, there&amp;rsquo;s one more place I need to update; /etc/hosts contains the domain information you set during the Proxmox install, and it will include that old IP address. Once the system has a new one, it needs to be edited to include that.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#d8dee9;background-color:#2e3440;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;127.0.0.1 localhost.localdomain localhost
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;192.168.100.28 pve-kr01.local pve-kr01
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;# The following lines are desirable for IPv6 capable hosts
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;::1 ip6-localhost ip6-loopback
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;fe00::0 ip6-localnet
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ff00::0 ip6-mcastprefix
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ff02::1 ip6-allnodes
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ff02::2 ip6-allrouters
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ff02::3 ip6-allhosts
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After the system is installed at the remote site and booted up, I&amp;rsquo;ll ssh in (with Tailscale) and make that change, and hopefully be able to access the DHCP server so it does not change in future.&lt;/p&gt;
&lt;h3 id="resources"&gt;Resources&lt;/h3&gt;
&lt;p&gt;I found these posts useful when figuring this out:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://forum.proxmox.com/threads/set-a-dynamic-address-to-pve.119847/"&gt;Set a dynamic address to PVE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://schoolitexpert.com/network-tools/proxmox-ve/dynamic-ip-address"&gt;Dynamic IP address&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Versions: Proxmox 7.4-3&lt;/p&gt;</description></item><item><title>No DNS on Proxmox machine</title><link>https://blog.iankulin.com/no-dns-on-proxmox-machine/</link><pubDate>Fri, 17 Mar 2023 00:00:00 +0000</pubDate><guid>https://blog.iankulin.com/no-dns-on-proxmox-machine/</guid><description>&lt;p&gt;I had some more network weirdness setting up this new Proxmox machine. When I went to run the updates it couldn&amp;rsquo;t resolve any of the addresses:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#d8dee9;background-color:#2e3440;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-gdscript3" data-lang="gdscript3"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;root&lt;span style="color:#bf616a"&gt;@&lt;/span&gt;pve&lt;span style="color:#81a1c1"&gt;-&lt;/span&gt;kr01&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#81a1c1"&gt;~&lt;/span&gt;&lt;span style="color:#616e87;font-style:italic"&gt;# apt update&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Err&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#b48ead"&gt;1&lt;/span&gt; http&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#81a1c1"&gt;//&lt;/span&gt;ftp&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;au&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;debian&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;org&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;debian bullseye InRelease
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Temporary failure resolving &lt;span style="color:#a3be8c"&gt;&amp;#39;ftp.au.debian.org&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Err&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#b48ead"&gt;2&lt;/span&gt; http&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#81a1c1"&gt;//&lt;/span&gt;download&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;proxmox&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;com&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;debian&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;pve bullseye InRelease
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Temporary failure resolving &lt;span style="color:#a3be8c"&gt;&amp;#39;download.proxmox.com&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Err&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#b48ead"&gt;3&lt;/span&gt; http&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#81a1c1"&gt;//&lt;/span&gt;security&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;debian&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;org bullseye&lt;span style="color:#81a1c1"&gt;-&lt;/span&gt;security InRelease
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Temporary failure resolving &lt;span style="color:#a3be8c"&gt;&amp;#39;security.debian.org&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Err&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#b48ead"&gt;4&lt;/span&gt; https&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#81a1c1"&gt;//&lt;/span&gt;enterprise&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;proxmox&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;com&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;debian&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;pve bullseye InRelease
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Temporary failure resolving &lt;span style="color:#a3be8c"&gt;&amp;#39;enterprise.proxmox.com&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Err&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#b48ead"&gt;5&lt;/span&gt; http&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#81a1c1"&gt;//&lt;/span&gt;ftp&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;au&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;debian&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;org&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;debian bullseye&lt;span style="color:#81a1c1"&gt;-&lt;/span&gt;updates InRelease
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Temporary failure resolving &lt;span style="color:#a3be8c"&gt;&amp;#39;ftp.au.debian.org&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Reading package lists&lt;span style="color:#81a1c1"&gt;...&lt;/span&gt; Done
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Building dependency tree&lt;span style="color:#81a1c1"&gt;...&lt;/span&gt; Done
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Reading state information&lt;span style="color:#81a1c1"&gt;...&lt;/span&gt; Done
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;All packages are up to date&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;W&lt;span style="color:#eceff4"&gt;:&lt;/span&gt; Failed to fetch http&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#81a1c1"&gt;//&lt;/span&gt;ftp&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;au&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;debian&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;org&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;debian&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;dists&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;bullseye&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;InRelease Temporary failure resolving &lt;span style="color:#a3be8c"&gt;&amp;#39;ftp.au.debian.org&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;W&lt;span style="color:#eceff4"&gt;:&lt;/span&gt; Failed to fetch http&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#81a1c1"&gt;//&lt;/span&gt;ftp&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;au&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;debian&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;org&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;debian&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;dists&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;bullseye&lt;span style="color:#81a1c1"&gt;-&lt;/span&gt;updates&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;InRelease Temporary failure resolving &lt;span style="color:#a3be8c"&gt;&amp;#39;ftp.au.debian.org&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;W&lt;span style="color:#eceff4"&gt;:&lt;/span&gt; Failed to fetch http&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#81a1c1"&gt;//&lt;/span&gt;download&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;proxmox&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;com&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;debian&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;pve&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;dists&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;bullseye&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;InRelease Temporary failure resolving &lt;span style="color:#a3be8c"&gt;&amp;#39;download.proxmox.com&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;W&lt;span style="color:#eceff4"&gt;:&lt;/span&gt; Failed to fetch http&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#81a1c1"&gt;//&lt;/span&gt;security&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;debian&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;org&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;dists&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;bullseye&lt;span style="color:#81a1c1"&gt;-&lt;/span&gt;security&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;InRelease Temporary failure resolving &lt;span style="color:#a3be8c"&gt;&amp;#39;security.debian.org&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;W&lt;span style="color:#eceff4"&gt;:&lt;/span&gt; Failed to fetch https&lt;span style="color:#eceff4"&gt;:&lt;/span&gt;&lt;span style="color:#81a1c1"&gt;//&lt;/span&gt;enterprise&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;proxmox&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;com&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;debian&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;pve&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;dists&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;bullseye&lt;span style="color:#81a1c1"&gt;/&lt;/span&gt;InRelease Temporary failure resolving &lt;span style="color:#a3be8c"&gt;&amp;#39;enterprise.proxmox.com&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;W&lt;span style="color:#eceff4"&gt;:&lt;/span&gt; Some index files failed to download&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt; They have been ignored&lt;span style="color:#eceff4"&gt;,&lt;/span&gt; &lt;span style="color:#81a1c1;font-weight:bold"&gt;or&lt;/span&gt; old ones used instead&lt;span style="color:#81a1c1"&gt;.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;So some sort of DNS problem. The entry for the DNS is in &lt;code&gt;/etc/resolv.conf&lt;/code&gt; when I looked in there, it said:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#d8dee9;background-color:#2e3440;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;search local
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;nameserver 127.0.0.1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Well, that does not seem great. I feel like it should be pointing at the DNS in my router, or even upstream at my ISP or google&amp;rsquo;s DNS server. Before I dive in and start editing, I thought I&amp;rsquo;d check my other servers. The first one has clearly been altered as part of installing TailScale, so that wasn&amp;rsquo;t much help, but on the dev machine it said:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#d8dee9;background-color:#2e3440;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;search local
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;nameserver 192.168.100.1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Which is more like what I was expecting, that&amp;rsquo;s the address given out by my DHCP server for DNS. I could just edit the new machine to this, but since this is the third lot of network related weirdness related to this install (the second was that my managed switch&amp;rsquo;s web interface was down, and I couldn&amp;rsquo;t ping it, but it was still passing traffic, &lt;a href="https://blog.iankulin.com/netgear-gs108e-switch-problem/"&gt;again&lt;/a&gt;), and the first, discussed in yesterday&amp;rsquo;s post, was that DHCP had provided a dynamic address that was already assigned to another device.&lt;/p&gt;
&lt;p&gt;I swapped out the network cable, and noticed the port lights flashing. Perhaps there is a broken pair in the other cable? It was odd that it was working sort of.&lt;/p&gt;
&lt;p&gt;I reinstalled Proxmox from scratch, and carefully watched the console messages and checked all the network settings (it correctly picked up the reserved address and correct DNS server). Then everything worked.&lt;/p&gt;</description></item><item><title>Proxmox Dynamic IP</title><link>https://blog.iankulin.com/proxmox-dynamic-ip/</link><pubDate>Thu, 16 Mar 2023 00:00:00 +0000</pubDate><guid>https://blog.iankulin.com/proxmox-dynamic-ip/</guid><description>&lt;p&gt;I ran into a little hiccup today. I&amp;rsquo;m building out a Jellyfin media server in a little HP G2 Mini PC. The config was going to be a Debian server inside Proxmox (because I love VM snapshots for backups) running Jellyfin in a container. There&amp;rsquo;ll be an external USB3 hard drive for the media storage.&lt;/p&gt;
&lt;p&gt;I was intending to build it all out and test it, then ship it to it&amp;rsquo;s final home.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve probably installed Proxmox five or six times by now since I&amp;rsquo;m always playing around with my test machine, and never really thought about the screen that comes up during the install showing the network details it&amp;rsquo;s picked up from DHCP.&lt;/p&gt;
&lt;p&gt;Today once I&amp;rsquo;d finished installing Proxmox, I couldn&amp;rsquo;t SSH into it&lt;/p&gt;
&lt;p&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-03-12-at-3.57.03-pm.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;I knew I had the right IP address since it shows that on the console at the end of the boot process. Looking in my router, it said 192.168.100.2 was connected, but by wifi on the SSID I use for IOT devices.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-03-12-at-4.01.09-pm.jpg" alt=""&gt;&lt;/p&gt;
&lt;p&gt;That ESP device name is a giveaway - it&amp;rsquo;s one of my wifi light bulbs. A quick &lt;code&gt;ip addr&lt;/code&gt; on the new Proxmox via the console shows it is convinced that it is 192.168.100.2 I can ping 8.8.8.8 from it, but DNS is not working. My conclusion is that I&amp;rsquo;ve got two devices with the same IP on my network.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m not sure how this came about. The network cable I was using is an old CAT5 with the clips broken off both ends I use for fiddling around, so perhaps there was a dodgy connection right at a crucial moment? It seems odd. usually when I encounter the &amp;rsquo;two machines with the same IP&amp;rsquo; problem, I&amp;rsquo;ve caused it somehow.&lt;/p&gt;
&lt;p&gt;No problem &lt;em&gt;I thought&lt;/em&gt;, now I&amp;rsquo;ve got the MAC address from the Proxmox machine, I&amp;rsquo;ll just reserve an available IP address for it. I did that, and rebooted Proxmox, but it was still on the old address. Then I remembered that question during the install process - it must collect an address from DHCP, then after the users has committed to it, write it into &lt;code&gt;/etc/hosts&lt;/code&gt; and &lt;code&gt;/etc/network/interfaces&lt;/code&gt; I reinstalled Proxmox, it picked up the new address and I saved it as the static IP.&lt;/p&gt;
&lt;p&gt;That&amp;rsquo;s not really problem solved though - I&amp;rsquo;m sending this off to a network where I don&amp;rsquo;t know the network configuration. I was hoping just to let it pick up a DHCP address that would remain somewhat stable since the machine is going to be on 24/7.&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s not unreasonable for Proxmox to expect a VM host machine is going to have a static IP address, but it&amp;rsquo;s inconvenient for this situation. I&amp;rsquo;ll have to discover how to make it dynamic (probably by editing those two files). I&amp;rsquo;ll have Tailscale on it, so I can remote in afterwards to make it static, although without also reserving it in their router that carries a small risk too.&lt;/p&gt;</description></item><item><title>Netgear GS108E switch problem</title><link>https://blog.iankulin.com/netgear-gs108e-switch-problem/</link><pubDate>Tue, 14 Feb 2023 00:00:00 +0000</pubDate><guid>https://blog.iankulin.com/netgear-gs108e-switch-problem/</guid><description>&lt;p&gt;I had a weird issue today that I wouldn&amp;rsquo;t have known about if I didn&amp;rsquo;t have an over-engineered home network monitoring system.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve got a new &lt;a href="https://www.netgear.com/au/business/wired/switches/plus/gs108e/"&gt;GS108E managed switch&lt;/a&gt;, purchased in anticipation of connecting a NAS to the homelab - I want to have a solid 1Gb connection between the NAS and the servers, and also in anticipation of moving to VLANs before I start to expose self-hosted services to the internet.&lt;/p&gt;
&lt;p&gt;It sat plugged into the network for 24 hours with no load, then I moved the server over on to it. I hadn&amp;rsquo;t changed any configuration on it (it comes out of the box just configured as a switch). It&amp;rsquo;s IP address was set by DHCP, and I&amp;rsquo;d reserved that in my Netgear modem.&lt;/p&gt;
&lt;p&gt;It was all working perfectly, then a day later, it suddenly stopped responding to pings and the interface was unavailable. The weird bit was that the network was still working perfectly - I could ssh to the server through it, but it didn&amp;rsquo;t appear on the network. The leds on the connected ports where flashing away happily.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.iankulin.com/images/screen-shot-2023-02-05-at-7.18.51-am.png"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-02-05-at-7.18.51-am.png" width="900" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are a couple of search results for this switch working, but the interface not reachable - but they all seem to involve complicated VLAN setups where people have locked themselves out rather than the default config suddenly having an issue.&lt;/p&gt;
&lt;p&gt;It will be disappointing if this is going to be a regular issue, but at least I&amp;rsquo;ll have good data to investigate it!&lt;/p&gt;</description></item></channel></rss>