日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網(wǎng)站首頁 編程語言 正文

NVIDIA jetson nano/ Linux/ Ubuntu18.0.4 配置固定IP靜態(tài)IP永久IP

作者:別出BUG求求了 更新時間: 2023-11-21 編程語言

1. check一下自己當前網(wǎng)絡

ifconfig

在這里插入圖片描述
分別是ip、子網(wǎng)掩碼

2. 創(chuàng)建eth0文件

cd /etc/network/interfaces.d
sudo vi eth0

在文件中加入如下內(nèi)容:

auto eth0
iface eth0 inet static
address 192.168.0.158
netmask 255.255.255.0
gateway 192.168.0.1

設置:
自己設定的ip地址
子網(wǎng)掩碼
網(wǎng)關——默認為上述

3. 修改/etc/network目錄下的interfaces文件,增加一行代碼source interfaces.d/eth0 前面三行是本來就有的,第四行是新加的。

cd ..
sudo vi interfaces

增加:

source interfaces.d/eth0

即可
在這里插入圖片描述

4. 重啟完成配置

sudo reboot -h now

——————路由器查看后,成功設置!————————

原文鏈接:https://blog.csdn.net/weixin_39589455/article/details/121512725

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新