<?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>TrueNAS &#8211; Simon</title>
	<atom:link href="https://www.luisimon.com/tag/truenas/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.luisimon.com</link>
	<description>blog</description>
	<lastBuildDate>Tue, 10 Dec 2024 01:43:44 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>

<image>
	<url>https://www.luisimon.com/wp-content/uploads/2019/09/cbrks-x5t4i-001.ico</url>
	<title>TrueNAS &#8211; Simon</title>
	<link>https://www.luisimon.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>TrueNAS Scale系统开启Wake On Lan（网络唤醒）功能（教程）</title>
		<link>https://www.luisimon.com/2023/07/16/727/</link>
		
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Sat, 15 Jul 2023 18:04:42 +0000</pubDate>
				<category><![CDATA[Linux日记]]></category>
		<category><![CDATA[极客记录]]></category>
		<category><![CDATA[FreeNAS]]></category>
		<category><![CDATA[TrueNAS]]></category>
		<category><![CDATA[WOL]]></category>
		<guid isPermaLink="false">https://www.luisimon.com/?p=727</guid>

					<description><![CDATA[Wake-on-LAN简称WOL或WoL，中文多译为“网路唤醒”、“远端唤醒”技术。WOL是一种技术，同时也是 ... <a title="TrueNAS Scale系统开启Wake On Lan（网络唤醒）功能（教程）" class="read-more" href="https://www.luisimon.com/2023/07/16/727/" aria-label="继续阅读TrueNAS Scale系统开启Wake On Lan（网络唤醒）功能（教程）">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<p><strong>Wake-on-LAN</strong>简称<strong>WOL</strong>或<strong>WoL</strong>，中文多译为“<strong>网路唤醒</strong>”、“<strong>远端唤醒</strong>”技术。WOL是一种技术，同时也是该技术的规范标准，它的功效在于让<a href="https://www.luisimon.com/goto/57h5" rel="nofollow">休眠</a>状态或<a href="https://www.luisimon.com/goto/csi9" rel="nofollow">关机</a>状态的电脑，透过<a href="https://www.luisimon.com/goto/jzy1" rel="nofollow">区域网路</a>的另一台电脑对其发令，使其唤醒、恢复成运作状态，或从关机状态转成<a href="https://www.luisimon.com/goto/gi4s" rel="nofollow">开机</a>状态。该消息通常由在连接到同一局域网的设备上执行的程序发送到目标计算机。也可以使用子网定向广播或 WoL 网关服务从另一个网络发起消息。<strong>——<em>维基百科</em></strong></p>



<p>我使用昂达的一款<strong>昂达B365CD4</strong>主板安装了TrueNAS Scale系统，出于节能减碳的需要，设置了晚上自动关机。清晨使用WOL唤醒机器。</p>



<p>开启WOL共功能</p>



<p>开机，在屏幕出现主板logo或者其他信息的时候按Del进入BIOS</p>



<p><strong>开启PXE功能</strong>，如下图，将<strong>Network Stack</strong>配置下的<strong>Ipv4 PXE Support</strong>设置为<strong>Enable</strong></p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.pomato.eu.org/img/20230715_102309-16893922115971.jpg" alt=""/></figure>



<p>开启网卡的WOL功能</p>



<pre class="wp-block-code"><code># 用以下命令查看网卡名称
ifconfig</code></pre>



<pre class="wp-block-code"><code># 添加WOL配置文件
# 这里的eth0需要跟wol唤醒网卡的名称
vim /etc/network/interfaces.d/eth0</code></pre>



<pre class="wp-block-code"><code># 配置文件内容
auto enp8s0
iface enp8s0 inet dhcp
    ethernet-wol g</code></pre>



<p><strong>重新系统后测试是否成功</strong></p>



<p><strong><em>注：如果网络唤醒失效，尝试重新保存eth0文件（猜测是重新保存才能令设置生效，从而系统会按当前设置去修改BIOS）。by Alan</em></strong></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
