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

需要登入才可留言!

类似文章


运行Chrome的headless模式

运行Chrome在headless模式

jenkins

如何用Gogs触发Jenkins进行Pipline的测试与部署

如何用Gogs触发Jenkins进行Pipline的测试与部署. http://{USER}:{API_TOKEN}@{JENKINS_URL}/job/{JOB}/build?token={AUTHENTICATION_TOKEN}

laravel

Laravel上的表单方法欺骗

为何Laravel需要有Form Method Spoofing呢? 因为HTML表单并不支持PUT、PATCH及DELETE等动作,因此在Laravel上 在提交HTML表单送出时,我们需要透过一个隐藏的_method输入栏,作为HTTP的请求发送。