<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>网络 on Haifei's Home</title><link>https://haifei.pro/tags/%E7%BD%91%E7%BB%9C/</link><description>Recent content in 网络 on Haifei's Home</description><generator>Hugo</generator><language>zh-CN</language><managingEditor>hfwang132@gmail.com (hfwang132)</managingEditor><webMaster>hfwang132@gmail.com (hfwang132)</webMaster><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Mon, 12 Jun 2023 23:22:42 +0800</lastBuildDate><atom:link href="https://haifei.pro/tags/%E7%BD%91%E7%BB%9C/index.xml" rel="self" type="application/rss+xml"/><item><title>开发板通过 PC 连接互联网</title><link>https://haifei.pro/post_20230612_%E5%BC%80%E5%8F%91%E6%9D%BF%E9%80%9A%E8%BF%87-pc-%E8%BF%9E%E6%8E%A5%E4%BA%92%E8%81%94%E7%BD%91/</link><pubDate>Mon, 12 Jun 2023 23:22:42 +0800</pubDate><author>hfwang132@gmail.com (hfwang132)</author><guid>https://haifei.pro/post_20230612_%E5%BC%80%E5%8F%91%E6%9D%BF%E9%80%9A%E8%BF%87-pc-%E8%BF%9E%E6%8E%A5%E4%BA%92%E8%81%94%E7%BD%91/</guid><description>&lt;h3 id="windows"&gt;Windows&lt;/h3&gt;
&lt;p&gt;在控制面板中设置能上网的网卡，共享给以太网。此时以太网的 IP 会变成 &lt;code&gt;192.168.137.1&lt;/code&gt;。&lt;/p&gt;
&lt;p&gt;然后在开发板终端中设置网关为 &lt;code&gt;192.168.137.1&lt;/code&gt; 即可：&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo route add default gw 192.168.137.1&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;IP 设置为 &lt;code&gt;192.168.137.x&lt;/code&gt;，x 不是 1 和 255（网关地址和广播地址）就行：&lt;/p&gt;</description></item></channel></rss>