by Devin Yang

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

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

需要登入才可留言!

类似文章


fpm

在container内重启php-fpm

在container内重启php-fpm

php openssl curl

修正CA设置问题

有时可能PHP版本更新或环境变动造成找不到ca文件。 修正很简单

router,nat

我的居易防火墙NAT笔记

本篇日志我查到关於居易的NAT及DMZ相关说明,我用Goolge翻译播成中文再稍微调一下。居易的NAT有「连接埠重定向」、「开放连接埠」和 「DMZ 主机」。(There are Port Redirection, Open Ports, and DMZ Host.)