<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://photonicat.com/index.php?action=history&amp;feed=atom&amp;title=Photonicat_2_%E5%A4%9A%E5%87%BA%E5%8F%A3%E4%B8%8E%E6%95%85%E9%9A%9C%E5%88%87%E6%8D%A2</id>
	<title>Photonicat 2 多出口与故障切换 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://photonicat.com/index.php?action=history&amp;feed=atom&amp;title=Photonicat_2_%E5%A4%9A%E5%87%BA%E5%8F%A3%E4%B8%8E%E6%95%85%E9%9A%9C%E5%88%87%E6%8D%A2"/>
	<link rel="alternate" type="text/html" href="https://photonicat.com/index.php?title=Photonicat_2_%E5%A4%9A%E5%87%BA%E5%8F%A3%E4%B8%8E%E6%95%85%E9%9A%9C%E5%88%87%E6%8D%A2&amp;action=history"/>
	<updated>2026-07-26T16:09:33Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://photonicat.com/index.php?title=Photonicat_2_%E5%A4%9A%E5%87%BA%E5%8F%A3%E4%B8%8E%E6%95%85%E9%9A%9C%E5%88%87%E6%8D%A2&amp;diff=925&amp;oldid=prev</id>
		<title>Monstercat：​/* Interaction with mwan3 */</title>
		<link rel="alternate" type="text/html" href="https://photonicat.com/index.php?title=Photonicat_2_%E5%A4%9A%E5%87%BA%E5%8F%A3%E4%B8%8E%E6%95%85%E9%9A%9C%E5%88%87%E6%8D%A2&amp;diff=925&amp;oldid=prev"/>
		<updated>2026-07-13T07:42:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Interaction with mwan3&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2026年7月13日 (一) 15:42的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l70&quot;&gt;第70行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第70行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WiFi associated but no internet&amp;#039;&amp;#039;&amp;#039; (e.g. an unauthenticated hotel portal): Smart WAN&amp;#039;s connectivity probe &amp;#039;&amp;#039;&amp;#039;temporarily demotes&amp;#039;&amp;#039;&amp;#039; wan_wifi below cellular — internet traffic uses cellular while the WiFi stays associated for you to log in; the metric is restored on recovery. See [[Photonicat 2 Smart WAN 智能上网|Smart WAN]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WiFi associated but no internet&amp;#039;&amp;#039;&amp;#039; (e.g. an unauthenticated hotel portal): Smart WAN&amp;#039;s connectivity probe &amp;#039;&amp;#039;&amp;#039;temporarily demotes&amp;#039;&amp;#039;&amp;#039; wan_wifi below cellular — internet traffic uses cellular while the WiFi stays associated for you to log in; the metric is restored on recovery. See [[Photonicat 2 Smart WAN 智能上网|Smart WAN]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Interaction with &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mwan3 &lt;/del&gt;===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Interaction with &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pcat-manager &lt;/ins&gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Stock &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mwan3 &lt;/del&gt;only tracks the wired wan (eth0): when it drops, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mwan3&#039;s &lt;/del&gt;policies would &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;shove &#039;&#039;&#039;all&#039;&#039;&#039; traffic to &lt;/del&gt;cellular, &#039;&#039;&#039;skipping WiFi relay&#039;&#039;&#039; and defeating the metric chain. So while Smart WAN is enabled, the manager automatically &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/del&gt;switches &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mwan3&#039;s &lt;/del&gt;rules to default &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;metric &lt;/del&gt;routing&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039; (backing up your policies) &lt;/del&gt;and restores them when Smart WAN is turned off&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Keep this in mind if you hand-tune mwan3&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Stock &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pcat-manager &lt;/ins&gt;only tracks the wired wan (eth0): when it drops, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pcat-manager &lt;/ins&gt;policies would &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;enable &lt;/ins&gt;cellular &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;network&lt;/ins&gt;, &#039;&#039;&#039;skipping WiFi relay&#039;&#039;&#039; and defeating the metric chain. So while Smart WAN is enabled, the manager automatically switches &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pcat-manager &lt;/ins&gt;rules to default routing &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rule &lt;/ins&gt;and restores them when Smart WAN is turned off.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Dashboard indicators ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Dashboard indicators ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key pcat_wiki:diff:1.41:old-924:rev-925:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Monstercat</name></author>
	</entry>
	<entry>
		<id>https://photonicat.com/index.php?title=Photonicat_2_%E5%A4%9A%E5%87%BA%E5%8F%A3%E4%B8%8E%E6%95%85%E9%9A%9C%E5%88%87%E6%8D%A2&amp;diff=924&amp;oldid=prev</id>
		<title>2026年7月13日 (一) 07:41 Monstercat</title>
		<link rel="alternate" type="text/html" href="https://photonicat.com/index.php?title=Photonicat_2_%E5%A4%9A%E5%87%BA%E5%8F%A3%E4%B8%8E%E6%95%85%E9%9A%9C%E5%88%87%E6%8D%A2&amp;diff=924&amp;oldid=prev"/>
		<updated>2026-07-13T07:41:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2026年7月13日 (一) 15:41的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot;&gt;第30行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第30行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WiFi 连上了但没有互联网&amp;#039;&amp;#039;&amp;#039;（如未登录的酒店门户）：Smart WAN 的联网探测会把 wan_wifi 的 metric &amp;#039;&amp;#039;&amp;#039;临时调到蜂窝之后&amp;#039;&amp;#039;&amp;#039;——上网流量走蜂窝，WiFi 链路保持连接供你登录；探测恢复后自动还原。详见 [[Photonicat 2 Smart WAN 智能上网]]。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WiFi 连上了但没有互联网&amp;#039;&amp;#039;&amp;#039;（如未登录的酒店门户）：Smart WAN 的联网探测会把 wan_wifi 的 metric &amp;#039;&amp;#039;&amp;#039;临时调到蜂窝之后&amp;#039;&amp;#039;&amp;#039;——上网流量走蜂窝，WiFi 链路保持连接供你登录；探测恢复后自动还原。详见 [[Photonicat 2 Smart WAN 智能上网]]。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== 与 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mwan3 &lt;/del&gt;的关系 ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== 与 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pcat-manager &lt;/ins&gt;的关系 ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;固件自带的 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mwan3 &lt;/del&gt;默认只跟踪有线 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wan（eth0）：有线一断，mwan3 的策略会把&#039;&#039;&#039;所有流量&#039;&#039;&#039;打到蜂窝，&lt;/del&gt;&#039;&#039;&#039;跳过 WiFi 中继&#039;&#039;&#039;，破坏上面的 metric 切换链。因此启用 Smart WAN 时，管理程序会自动把 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mwan3 的分流规则&#039;&#039;&#039;切换为默认 metric 路由&#039;&#039;&#039;（并备份原策略）；关闭 &lt;/del&gt;Smart WAN &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;时自动还原。如果你手工定制过 mwan3 策略，请注意这一行为。&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;固件自带的 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pcat-manager &lt;/ins&gt;默认只跟踪有线 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wan（eth0）：有线一断，pcat-manager 的策略会自动开启蜂窝网络，&lt;/ins&gt;&#039;&#039;&#039;跳过 WiFi 中继&#039;&#039;&#039;，破坏上面的 metric 切换链。因此启用 Smart WAN 时，管理程序会自动把 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pcat-manager 的规则切换为系统默认；关闭 &lt;/ins&gt;Smart WAN &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;时自动还原。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== 仪表盘指示 ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== 仪表盘指示 ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key pcat_wiki:diff:1.41:old-919:rev-924:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Monstercat</name></author>
	</entry>
	<entry>
		<id>https://photonicat.com/index.php?title=Photonicat_2_%E5%A4%9A%E5%87%BA%E5%8F%A3%E4%B8%8E%E6%95%85%E9%9A%9C%E5%88%87%E6%8D%A2&amp;diff=919&amp;oldid=prev</id>
		<title>C2h2：​New topic: multi-WAN failover — route metric chain (wired&gt;WiFi&gt;cellular), portal demotion, mwan3 interaction, debugging</title>
		<link rel="alternate" type="text/html" href="https://photonicat.com/index.php?title=Photonicat_2_%E5%A4%9A%E5%87%BA%E5%8F%A3%E4%B8%8E%E6%95%85%E9%9A%9C%E5%88%87%E6%8D%A2&amp;diff=919&amp;oldid=prev"/>
		<updated>2026-07-12T16:47:13Z</updated>

		<summary type="html">&lt;p&gt;New topic: multi-WAN failover — route metric chain (wired&amp;gt;WiFi&amp;gt;cellular), portal demotion, mwan3 interaction, debugging&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! 适用 / Applies to&lt;br /&gt;
| Photonicat 2, photonicatWrt 26.04.x + pcat-manager-web 2026-06 及以后版本 / Photonicat 2, photonicatWrt 26.04.x with pcat-manager-web builds from 2026-06 onward&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Photonicat 2 同时拥有&amp;#039;&amp;#039;&amp;#039;有线 WAN、WiFi 中继（Smart WAN）和 4G/5G 蜂窝&amp;#039;&amp;#039;&amp;#039;三类出口。本页解释它们如何排定优先级、断线时如何自动切换、仪表盘指示灯的含义，以及排障方法。&lt;br /&gt;
&lt;br /&gt;
The photonicat 2 has three egress classes at once: &amp;#039;&amp;#039;&amp;#039;wired WAN, WiFi relay (Smart WAN), and 4G/5G cellular&amp;#039;&amp;#039;&amp;#039;. This page explains how they&amp;#039;re prioritized, how failover works, what the dashboard indicators mean, and how to debug it.&lt;br /&gt;
&lt;br /&gt;
== 中文说明 ==&lt;br /&gt;
&lt;br /&gt;
=== 优先级：路由 metric 链 ===&lt;br /&gt;
故障切换完全由&amp;#039;&amp;#039;&amp;#039;路由 metric&amp;#039;&amp;#039;&amp;#039;（数值越小优先级越高）决定——所有出口可以同时在线，流量始终走 metric 最小的可用出口：&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! 出口 !! 接口 !! metric !! 说明&lt;br /&gt;
|-&lt;br /&gt;
| 有线宽带 || wan (eth0 / pppoe-wan) || &amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039;（IPv6 别名 wan_6 随主接口） || 最高优先级&lt;br /&gt;
|-&lt;br /&gt;
| WiFi 中继 (Smart WAN) || wan_wifi / wan_wifi_v6 || &amp;#039;&amp;#039;&amp;#039;5 / 6&amp;#039;&amp;#039;&amp;#039; || 次优先&lt;br /&gt;
|-&lt;br /&gt;
| 5G 蜂窝 || wwan_5g / wwan_5g_v6 || &amp;#039;&amp;#039;&amp;#039;10 / 11&amp;#039;&amp;#039;&amp;#039; || 兜底&lt;br /&gt;
|-&lt;br /&gt;
| LTE 蜂窝 || wwan_lte / wwan_lte_v6 || &amp;#039;&amp;#039;&amp;#039;12 / 13&amp;#039;&amp;#039;&amp;#039; || 兜底（LTE 模组）&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;插上网线&amp;#039;&amp;#039;&amp;#039; → 有线立即接管（metric 1 最小）。&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;拔掉网线&amp;#039;&amp;#039;&amp;#039; → 有线路由消失，流量自动落到 WiFi 中继；WiFi 也没有 → 蜂窝。全程无需人工干预。&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;WiFi 连上了但没有互联网&amp;#039;&amp;#039;&amp;#039;（如未登录的酒店门户）：Smart WAN 的联网探测会把 wan_wifi 的 metric &amp;#039;&amp;#039;&amp;#039;临时调到蜂窝之后&amp;#039;&amp;#039;&amp;#039;——上网流量走蜂窝，WiFi 链路保持连接供你登录；探测恢复后自动还原。详见 [[Photonicat 2 Smart WAN 智能上网]]。&lt;br /&gt;
&lt;br /&gt;
=== 与 mwan3 的关系 ===&lt;br /&gt;
固件自带的 mwan3 默认只跟踪有线 wan（eth0）：有线一断，mwan3 的策略会把&amp;#039;&amp;#039;&amp;#039;所有流量&amp;#039;&amp;#039;&amp;#039;打到蜂窝，&amp;#039;&amp;#039;&amp;#039;跳过 WiFi 中继&amp;#039;&amp;#039;&amp;#039;，破坏上面的 metric 切换链。因此启用 Smart WAN 时，管理程序会自动把 mwan3 的分流规则&amp;#039;&amp;#039;&amp;#039;切换为默认 metric 路由&amp;#039;&amp;#039;&amp;#039;（并备份原策略）；关闭 Smart WAN 时自动还原。如果你手工定制过 mwan3 策略，请注意这一行为。&lt;br /&gt;
&lt;br /&gt;
=== 仪表盘指示 ===&lt;br /&gt;
* 首页拓扑图&amp;#039;&amp;#039;&amp;#039;只点亮当前真正承载流量的出口&amp;#039;&amp;#039;&amp;#039;（而不是&amp;quot;接口在线&amp;quot;）——有线/WiFi 中继/蜂窝一目了然。&lt;br /&gt;
* 同时显示 WiFi 信号强度与当前网络模式；多出口在线时 WAN 图标为组合图标。&lt;br /&gt;
* LAN 绿点只在存在可用出口时点亮。&lt;br /&gt;
&lt;br /&gt;
=== 排障 ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ip route show default          # IPv4 默认路由及 metric（可能有多条，走 metric 最小者）&lt;br /&gt;
ip -6 route show default       # IPv6 同理&lt;br /&gt;
ip route get 1.1.1.1           # 当前实际选择的出口&lt;br /&gt;
ifstatus wan_wifi | head       # Smart WAN 接口状态&lt;br /&gt;
logread | grep -i wifi_wan     # Smart WAN 巡检/切换日志&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* 流量走了蜂窝但 WiFi 明明在线 → 查 &amp;lt;code&amp;gt;ip route show default&amp;lt;/code&amp;gt;：若 wan_wifi 的 metric 被调高，说明门户探测判定该 WiFi 无法上网。&lt;br /&gt;
* 切换后个别应用卡住 → 长连接（VPN、SSH）绑定旧出口地址是正常现象，重连即可。&lt;br /&gt;
&lt;br /&gt;
== English ==&lt;br /&gt;
&lt;br /&gt;
=== Priority: the route-metric chain ===&lt;br /&gt;
Failover is driven purely by &amp;#039;&amp;#039;&amp;#039;route metrics&amp;#039;&amp;#039;&amp;#039; (lower wins). All uplinks can be up simultaneously; traffic always takes the lowest-metric available route:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Egress !! Interface !! Metric !! Role&lt;br /&gt;
|-&lt;br /&gt;
| Wired broadband || wan (eth0 / pppoe-wan) || &amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; (IPv6 alias wan_6 follows) || top priority&lt;br /&gt;
|-&lt;br /&gt;
| WiFi relay (Smart WAN) || wan_wifi / wan_wifi_v6 || &amp;#039;&amp;#039;&amp;#039;5 / 6&amp;#039;&amp;#039;&amp;#039; || second&lt;br /&gt;
|-&lt;br /&gt;
| 5G cellular || wwan_5g / wwan_5g_v6 || &amp;#039;&amp;#039;&amp;#039;10 / 11&amp;#039;&amp;#039;&amp;#039; || fallback&lt;br /&gt;
|-&lt;br /&gt;
| LTE cellular || wwan_lte / wwan_lte_v6 || &amp;#039;&amp;#039;&amp;#039;12 / 13&amp;#039;&amp;#039;&amp;#039; || fallback (LTE modems)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Plug in ethernet&amp;#039;&amp;#039;&amp;#039; → wired takes over instantly (metric 1).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Unplug it&amp;#039;&amp;#039;&amp;#039; → the wired route vanishes; traffic falls to WiFi relay, then to cellular if no saved WiFi is reachable. No manual action.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;WiFi associated but no internet&amp;#039;&amp;#039;&amp;#039; (e.g. an unauthenticated hotel portal): Smart WAN&amp;#039;s connectivity probe &amp;#039;&amp;#039;&amp;#039;temporarily demotes&amp;#039;&amp;#039;&amp;#039; wan_wifi below cellular — internet traffic uses cellular while the WiFi stays associated for you to log in; the metric is restored on recovery. See [[Photonicat 2 Smart WAN 智能上网|Smart WAN]].&lt;br /&gt;
&lt;br /&gt;
=== Interaction with mwan3 ===&lt;br /&gt;
Stock mwan3 only tracks the wired wan (eth0): when it drops, mwan3&amp;#039;s policies would shove &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; traffic to cellular, &amp;#039;&amp;#039;&amp;#039;skipping WiFi relay&amp;#039;&amp;#039;&amp;#039; and defeating the metric chain. So while Smart WAN is enabled, the manager automatically &amp;#039;&amp;#039;&amp;#039;switches mwan3&amp;#039;s rules to default metric routing&amp;#039;&amp;#039;&amp;#039; (backing up your policies) and restores them when Smart WAN is turned off. Keep this in mind if you hand-tune mwan3.&lt;br /&gt;
&lt;br /&gt;
=== Dashboard indicators ===&lt;br /&gt;
* The topology lights &amp;#039;&amp;#039;&amp;#039;only the egress actually carrying traffic&amp;#039;&amp;#039;&amp;#039; (not merely &amp;quot;interface up&amp;quot;) — wired / WiFi relay / cellular at a glance.&lt;br /&gt;
* WiFi signal strength and the current network mode are shown; WAN icons composite when several uplinks are up.&lt;br /&gt;
* The LAN green dot requires a live egress.&lt;br /&gt;
&lt;br /&gt;
=== Debugging ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ip route show default          # IPv4 default routes and metrics (lowest wins)&lt;br /&gt;
ip -6 route show default       # same for IPv6&lt;br /&gt;
ip route get 1.1.1.1           # which egress is actually selected right now&lt;br /&gt;
ifstatus wan_wifi | head       # Smart WAN interface state&lt;br /&gt;
logread | grep -i wifi_wan     # Smart WAN reconcile/failover logs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Traffic on cellular while WiFi looks fine → check &amp;lt;code&amp;gt;ip route show default&amp;lt;/code&amp;gt;: a raised wan_wifi metric means the portal probe judged that WiFi offline.&lt;br /&gt;
* An app hangs right after failover → long-lived connections (VPN, SSH) pinned to the old egress address must reconnect; that&amp;#039;s expected.&lt;br /&gt;
&lt;br /&gt;
[[Photonicat 2 Smart WAN 智能上网]] ｜ [[Photonicat 4G/5G 家庭网络备份]] ｜ [[Photoincat 2 IPv6 PPPoE]]&lt;/div&gt;</summary>
		<author><name>C2h2</name></author>
	</entry>
</feed>