by Devin Yang

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

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

需要登入才可留言!

类似文章


laravel

加栏位同时更新Laravel

被朋友说,墨菲定律,升级总是那么不顺,当然要升给他看我有多顺,没在怕的。 我还顺便加了个栏位。

docker

关於Docker的Logging Driver

Docker内建相当多的日志机制,帮我们取得在container内运行的服务信息。 这些机制(mechanisms)我们通常称为logging drivers.

regular expression

正规式向后看(lookbehind)

随意用Laravel的tinker展示lookbehind功能他需要固定长度,我们可以抓括号后的文本原始内容为:How fast is the car moving? How far do you drive to work every day?透过正规式lookbehind,只看How fast及How far后的字