<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IP地址 &#8211; mylogs.cn</title>
	<atom:link href="https://mylogs.cn/tag/ip%e5%9c%b0%e5%9d%80/feed/" rel="self" type="application/rss+xml" />
	<link>https://mylogs.cn</link>
	<description>发现、记录、分享</description>
	<lastBuildDate>Fri, 14 Aug 2026 20:37:11 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>路由器总认错设备？固定 IP 让排障不再抓瞎</title>
		<link>https://mylogs.cn/%e8%b7%af%e7%94%b1%e5%99%a8%e6%80%bb%e8%ae%a4%e9%94%99%e8%ae%be%e5%a4%87%ef%bc%9f%e5%9b%ba%e5%ae%9a-ip-%e8%ae%a9%e6%8e%92%e9%9a%9c%e4%b8%8d%e5%86%8d%e6%8a%93%e7%9e%8e/</link>
		
		<dc:creator><![CDATA[steve, zhang]]></dc:creator>
		<pubDate>Fri, 14 Aug 2026 20:37:11 +0000</pubDate>
				<category><![CDATA[经验与技巧]]></category>
		<category><![CDATA[IP地址]]></category>
		<category><![CDATA[家庭网络]]></category>
		<category><![CDATA[网络排障]]></category>
		<category><![CDATA[路由器]]></category>
		<guid isPermaLink="false">https://mylogs.cn/%e8%b7%af%e7%94%b1%e5%99%a8%e6%80%bb%e8%ae%a4%e9%94%99%e8%ae%be%e5%a4%87%ef%bc%9f%e5%9b%ba%e5%ae%9a-ip-%e8%ae%a9%e6%8e%92%e9%9a%9c%e4%b8%8d%e5%86%8d%e6%8a%93%e7%9e%8e/</guid>

					<description><![CDATA[家里设备一多——台式机、游戏机、电视盒子、NAS、智能音箱——IP 地址常常变来变去。设备一「失联」，你根本分 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">家里设备一多——台式机、游戏机、电视盒子、NAS、智能音箱——IP 地址常常变来变去。设备一「失联」，你根本分不清是它真死机，还是只是主机名解析失败；路由器日志里一串跳来跳去的地址，也完全对不上谁是谁。像 Home Assistant 这类常驻服务，地址一变就显示「不可用」，其实设备好好的，白白折腾半天。其实只要给常用设备分配固定 IP（DHCP 保留），并按用途划好网段，排障立刻有章法。</p>



<figure data-wp-context="{&quot;imageId&quot;:&quot;6a7f880675904&quot;}" data-wp-interactive="core/image" data-wp-key="6a7f880675904" class="wp-block-image size-large aligncenter wp-lightbox-container"><img fetchpriority="high" decoding="async" width="1200" height="675" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on--pointerdown="actions.preloadImage" data-wp-on--pointerenter="actions.preloadImageWithDelay" data-wp-on--pointerleave="actions.cancelPreload" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://mylogs.cn/wp-content/uploads/2026/08/9af7cf3c3a8ca779e657042ecb5550d4_header.webp" alt="路由器总认错设备？固定 IP 让排障不再抓瞎" class="wp-image-4882" style="max-width:100%;height:auto;" srcset="https://mylogs.cn/wp-content/uploads/2026/08/9af7cf3c3a8ca779e657042ecb5550d4_header.webp 1200w, https://mylogs.cn/wp-content/uploads/2026/08/9af7cf3c3a8ca779e657042ecb5550d4_header-300x169.webp 300w, https://mylogs.cn/wp-content/uploads/2026/08/9af7cf3c3a8ca779e657042ecb5550d4_header-1024x576.webp 1024w, https://mylogs.cn/wp-content/uploads/2026/08/9af7cf3c3a8ca779e657042ecb5550d4_header-768x432.webp 768w" sizes="(max-width: 1200px) 100vw, 1200px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			data-wp-bind--aria-label="state.thisImage.triggerButtonAriaLabel"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.thisImage.buttonRight"
			data-wp-style--top="state.thisImage.buttonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button><figcaption class="wp-element-caption">图片来源：XDA Developers</figcaption></figure>





<h2 class="wp-block-heading">一、在路由器上做 DHCP 保留（最省心）</h2>



<ol class="wp-block-list"><li>浏览器登录路由器管理页（常见地址 192.168.1.1 或 192.168.0.1），找到「DHCP 服务器 / 地址保留」页面。</li><li>把常用设备的 MAC 地址和想固定的 IP 绑定。例如把基础设施设备（软路由、树莓派）放在 192.168.1.2–10，主力设备（台式机、电视盒子）放在 192.168.1.11–20。</li><li>保存后重启对应设备，让它重新获取已保留的地址。</li></ol>



<p class="wp-block-paragraph">这样地址由路由器统一发放，设备端不用改任何设置。</p>



<h2 class="wp-block-heading">二、在设备端手动设静态 IP（备选）</h2>



<p class="wp-block-paragraph">对不支持保留的老设备，可在它的网络设置里手动填写 IP、子网掩码（255.255.255.0）、网关（路由器地址）和 DNS。地址务必落在路由器自动分配区间之外，避免冲突。</p>



<h2 class="wp-block-heading">三、排障时怎么用固定 IP</h2>



<ol class="wp-block-list"><li>设备「失联」先 ping 它的固定 IP：能通说明设备在线，问题多半出在主机名或 DNS 解析（去查 mDNS、路由器 DNS），别急着修设备本身。</li><li>看路由器流量图和日志，按固定 IP 对号入座，一眼看出哪台在偷跑下载、哪条端口转发悄悄失效。</li><li>不在你规划网段里的陌生地址，立刻重点排查，多半是异常设备。</li></ol>



<p class="wp-block-paragraph">注意：固定 IP 能让你设的端口转发、VPN 回连稳得住，不会因为地址一变就悄悄失效；但固定 IP 要避开路由器自动分配的区间，否则会撞车。手机、笔记本建议保持普通 DHCP，方便随时漫游。</p>



<p class="wp-block-paragraph">来源：XDA Developers</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
