当前位置 博文首页 > cumtchw:NVIDIA Jetson 设置固定IP地址

    cumtchw:NVIDIA Jetson 设置固定IP地址

    作者:[db:作者] 时间:2021-07-28 15:13

    1.在/etc/network/interfaces.d目录下创建eth0文件,在文件中加入如下内容:

    auto eth0
    iface eth0 inet static
    address 172.31.8.77
    netmask 255.255.255.0
    gateway 172.31.8.254
    

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

    # interfaces(5) file used by ifup(8) and ifdown(8)
    # Include files from /etc/network/interfaces.d:
    source-directory /etc/network/interfaces.d   
    source interfaces.d/eth0
    

    3.重启jetson设备

    重启可以用下面两个中的任何一个命令。

    init 6 #重启命令
    reboot -h now #重启命令

    ?

    cs