ubuntu20.04 的 jetson设备命令行设置静态ip

发布时间 2023-08-02 17:38:03作者: cc96

参考: https://github.com/f1tenth/f1tenth_doc/blob/stable/getting_started/software_setup/optional_software_nx.rst

  1. 查看网口设备
ifconfig # 查看ip 地址
nmcli d # 查看网口设备
nmcli c show # 展示网口设备对应的名字

  1. 修改 eth0 的 ip
sudo nmcli c mod Wired\ connection\ 1 ipv4.address 192.168.2.245/16 ipv4.gateway 192.168.2.1 ipv4.method manual # 设置 ip 地址  网关  以及 静态地址的方法
sudo nmcli c up Wired\ connection\ 1 # 将设置的地址生效
  1. 重新ssh连接并查看新的ip