by Devin Yang

建立于: 4年前 ( 更新: 4年前 )

ubuntu网卡固定及浮动IP笔记,这是我在Nvidia TX2上的设置。
其他版本的ubuntu Linux应该也可以用
修改
/etc/network/interfaces

浮动IP设置方式

iface eth0 inet dhcp

固定IP设置方式

# The primary network interface
auto eth0
iface eth0 inet static
    address 192.168.0.108
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1
    dns-nameservers 168.95.1.1 8.8.8.8
    dns-domain ccc.tc
    dns-search ccc.tc

重启网络

 /etc/init.d/networking restart

 

Tags:

Devin Yang

文章内容无法一一说明,如果您有什么不了解处,欢印提问哦:)

No Comment

Post your comment

需要登入才可留言!

类似文章


config

3C Tech Center转移至GCP了

我受不了Bulehost的龟速,已将DNS拉回由networksolutions直接管理啦, 调整DNS设置TTL到两小时,或许会再转换到其他地方.. 以下是Bulehost我个人无法接受的几点。 一、主机应该在美国,速度太慢。 二、无http/2。 三、mysql的时区无法调整。 所以决定移到Google Cloud Platform...

dlaravel

D-Laravel v1.5.0新版本了。

一、变更fpm的image生成方式,优化dockerfiles/fpm/php7.x/Dockerfiles,更容易设置及调整扩展包。 二、调整docker-compose-build.yml,并在D-Laravel的Project目录下, 可透过./console build快速创建自己的image罗。 还有更多的变更....

raspberry,wifi

树莓派接移动电源连iPhone这样算笔电吗?

Raspberry接移动电源连iPhone这样算笔电吗? :p