NODKA诺达佳ARM整机

整机项目


LAN

<h3><strong>LAN口的使用</strong></h3> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=3a093b635a749df9ba40c4f694306d63&amp;amp;file=file.png" alt="" /> (注:效果图为LAN接口)</p> <h4>一、通过命令行设置静态 IP 地址</h4> <ol> <li> <p>打开终端,输入以下命令以使用<code>vim</code>编辑器打开网络配置文件<code>/etc/network/interfaces</code>:</p> <pre><code class="language-shell">vim /etc/network/interfaces</code></pre> </li> <li> <p>根据网络环境和需求修改IP地址、子网掩码和网关:</p> <pre><code class="language-shell">auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.2.110 netmask 255.255.255.0 gateway 192.168.2.1 auto eth1 iface eth1 inet static address 192.168.2.120 netmask 255.255.255.0 gateway 192.168.2.1</code></pre> </li> <li>保存并关闭文件。在<code>vim</code>编辑器中,按<code>Esc</code>,然后输入<code>:wq</code>保存并退出编辑器。</li> <li>重启系统,使网络IP生效。</li> </ol> <h4>二、通过图形界面设置静态IP地址</h4> <ol> <li>登录到Debian Desktop环境。</li> <li>在菜单栏中选择&quot;About NetworkManager Applet&quot;,然后选择&quot;Edit Connections...&quot;。</li> <li>在弹出的窗口中,双击&quot;Wired connection &quot;</li> <li>在&quot;IPv4 Settings&quot;选项卡中,可以看到当前的网络配置。要设置静态IP地址,需要在&quot;Method&quot;选择栏中选择&quot;Manual&quot;选项。</li> <li>在&quot;Addresses&quot;字段中输入想要设置的静态IP地址,然后在&quot;Netmask&quot;字段中输入子网掩码,在&quot;Gateway&quot;字段中输入网关地址,然后在&quot;DNS servers&quot;字段中输入DNS服务器地址。</li> <li>单机&quot;Save&quot;按钮以保存更改。</li> <li>通过切换接口,执行以上步骤完成IP地址的配置。</li> </ol> <h4>三,设置DNS域名解析</h4> <ol> <li>终端输入 vi /etc/resolv.conf, 打开文件配置对应域名 <pre><code class="language-shell">nameserver xxx.xxx.xxx.xxx</code></pre></li> </ol> <h4>四、网络优先级配置</h4> <pre><code class="language-shell">route del default gw 192.168.2.1 eth0 route add default gw 192.168.2.1 dev eth0 metric 10 (优先级为10)</code></pre>

页面列表

ITEM_HTML