<?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>NAS &#8211; 老丁的博客</title>
	<atom:link href="https://www.laoding.me/archives/tag/nas/feed" rel="self" type="application/rss+xml" />
	<link>https://www.laoding.me</link>
	<description></description>
	<lastBuildDate>Fri, 27 Mar 2026 11:54:03 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://public-123.oss-cn-guangzhou.aliyuncs.com/2024/09/cropped-图片_20240927133356-768x768-1-32x32.jpg</url>
	<title>NAS &#8211; 老丁的博客</title>
	<link>https://www.laoding.me</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>群晖NAS用Docker安装Opnewrt教程</title>
		<link>https://www.laoding.me/archives/661</link>
					<comments>https://www.laoding.me/archives/661#respond</comments>
		
		<dc:creator><![CDATA[laoding]]></dc:creator>
		<pubDate>Mon, 07 Oct 2024 02:16:57 +0000</pubDate>
				<category><![CDATA[办公网络]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[群晖]]></category>
		<guid isPermaLink="false">https://www.laoding.me/?p=661</guid>

					<description><![CDATA[1.首先开启网卡混杂模式 sudo ip link set eth0 promisc on 虚拟机搭建的黑群晖 [&#8230;]]]></description>
										<content:encoded><![CDATA[<h2>1.首先开启网卡混杂模式</h2>
<pre class="code">sudo ip link set eth0 promisc on</pre>
<p>虚拟机搭建的黑群晖将<code>eth0</code>改成<code>ovs_eth0</code></p>
<h2>2.新建一个macnet网络</h2>
<pre class="code">docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o parent=eth0 macnet</pre>
<ul>
<li>如果你使用了VMM开启了open vSwitch的，用下面这条命令新建macnet网络</li>
</ul>
<pre class="code">docker network create -d macvlan --subnet=192.168.22.0/24 --gateway=192.168.22.1 -o parent=ovs_eth0 openwrt</pre>
<h2>3.创建启动容器</h2>
<pre class="code">docker run -d \
  --restart always \
  --name openwrt \
  --privileged \
  --network macvlan \
  sulinggg/openwrt:x86_64 \
  /sbin/init</pre>
<p>或<code>bleachwrt/mini</code></p>
<pre class="code">docker run --restart always --name bleachwrt-mini -d --network macnet --privileged --ip 192.168.22.33 bleachwrt/mini:latest /sbin/init</pre>
<h2>4.进入该容器</h2>
<p>切换至root账户权限</p>
<pre class="code">sudo -i</pre>
<pre class="code">docker exec -it openwrt bash</pre>
<h2>5.修改该容器IP配置 option ipaddr &#8216;192.168.2.233&#8217;</h2>
<pre class="code">vi /etc/config/network</pre>
<p><img decoding="async" src="https://laoding.me/wp-content/media/202404/20240408121707_1712553457.jpg" alt="" /></p>
<ul>
<li>或者修改为DHCP模式</li>
</ul>
<pre class="code">config interface 'lan' 
   option type 'bridge' 
   option ifname 'eth0' 
   option proto 'dhcp'</pre>
<h2>6.重启该容器网络配置</h2>
<pre class="code">/etc/init.d/network restart</pre>
<h2>7.退出容器</h2>
<pre class="code">exit</pre>
<h2>8.浏览器登录192.168.22.33进入OpenWrt管理后台</h2>
<p>用户名：root 密码：password</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.laoding.me/archives/661/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>群晖NAS安装Zieotier后的一些命令</title>
		<link>https://www.laoding.me/archives/657</link>
					<comments>https://www.laoding.me/archives/657#respond</comments>
		
		<dc:creator><![CDATA[laoding]]></dc:creator>
		<pubDate>Sun, 06 Oct 2024 07:51:11 +0000</pubDate>
				<category><![CDATA[办公网络]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[Zerotier]]></category>
		<category><![CDATA[异地组网]]></category>
		<category><![CDATA[群晖]]></category>
		<guid isPermaLink="false">https://www.laoding.me/?p=657</guid>

					<description><![CDATA[1、开启root运行权限 sudo sed -i 's/package/root/g' /var/packag [&#8230;]]]></description>
										<content:encoded><![CDATA[<h3>1、开启root运行权限</h3>
<pre class="code">sudo sed -i 's/package/root/g' /var/packages/zerotier/conf/privilege</pre>
<h3>2、加入组网网络</h3>
<pre class="code">cd /var/packages/zerotier/target/bin</pre>
<p>3、组网管理面板删除后重新加入网络</p>
<ul>
<li>获取zieotire的身份ID</li>
</ul>
<pre class="code">cut -d':' -f1 /var/packages/zerotier/var/identity.public</pre>
<p><img decoding="async" class="alignnone size-full wp-image-658" src="http://public-123.oss-cn-guangzhou.aliyuncs.com/2024/10/20241006074906102.jpg" alt="" width="594" height="33" /></p>
<ul>
<li>重新加入网络</li>
</ul>
<pre class="code">sudo -i
cd /var/packages/zerotier/target/bin
./zerotier-one -q join xxxxxx</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.laoding.me/archives/657/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
